Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3485463rdb; Wed, 13 Sep 2023 13:34:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFscsaAZgfSdOKvHj5x9yoPzieNesRCP8DGWQ2sdTrfTSuzNpW0awtJo/rpkkdlAJaFq4sA X-Received: by 2002:a17:90b:1811:b0:26f:91b9:572f with SMTP id lw17-20020a17090b181100b0026f91b9572fmr3347785pjb.43.1694637282791; Wed, 13 Sep 2023 13:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694637282; cv=none; d=google.com; s=arc-20160816; b=JPBb/8QFj5N0eJq1zQglryXh1fOGcMYruUGJ9CqpzhbXQzGtCjaPDfmKMkKvXHDLr6 Krwrk2dY9Hbk65fFL4eowUIFvuzI4xYbk0DvH6F+kYoo6EkSJVDOS5QmdGSDvmz0krOI g122w7Xg1qAo+eW0x9P7cnObTov5GGKkcE+Gvkpf+oY0HWFD2M/qjfxrbZxHOq7gFtCE YjXVslzf8lXYMpLKGL0kUxfNBHw0KoR/9ntuy4ao8IIUFn7DekuHlsVIYNZ5e/X6nFeA E6sye5WWBedkjbMbqitUSDo8AZdyILQeUGwIfHt/CCzzw6A+eBVrgnncMCuYkvnYB0bL oiHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+vAzLmGMAp2tLkE5jF8uMDyOlDhTRpufcEG/UTA0iE4=; fh=OMuFOPgpo/DBXFlBXSt41ZGfdIenCZuP8XGmBlU5q0M=; b=ZOTZE3q/+j7jT0uMCUAmaCwkX6FVogXRnIpJ2I3rAreV4KORZFjNfA4Uf3i7XDhdwz RiWBwPhuAOAS4Uype2bfH+1MZ5JPJbjqH843suJrPrnNBq+qSjsxUaChlnpmPkZ1xvWg NDxUpf5n1QREv6AaNAEQV8KQ0p1ILkA450XVuMQwLmBC+0Zg3rzTdZI087RX+tHFH3wr 4vs0SwNbdmusD7TZoYBdvYRz6KPwczXgAuTfv86KpJmjzFcoqxaE2UkxBQYgXJAnFlpx S/BSTlMgt0+Fm58EhvvjF/kMw9FDbJHWhcUJa36XROVnL/2iykx0DE7UL2x/hvotAoh5 sm0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=Lqk+6Mhe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id x3-20020a17090aa38300b0025c219a68e3si77139pjp.45.2023.09.13.13.34.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 13:34:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=Lqk+6Mhe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 220048028F82; Wed, 13 Sep 2023 11:01:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229552AbjIMSBK (ORCPT + 99 others); Wed, 13 Sep 2023 14:01:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230496AbjIMSBI (ORCPT ); Wed, 13 Sep 2023 14:01:08 -0400 Received: from mail-vs1-xe35.google.com (mail-vs1-xe35.google.com [IPv6:2607:f8b0:4864:20::e35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC6F319B6 for ; Wed, 13 Sep 2023 11:01:04 -0700 (PDT) Received: by mail-vs1-xe35.google.com with SMTP id ada2fe7eead31-44d4c3fa5beso70471137.3 for ; Wed, 13 Sep 2023 11:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1694628064; x=1695232864; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+vAzLmGMAp2tLkE5jF8uMDyOlDhTRpufcEG/UTA0iE4=; b=Lqk+6MhewheZV/HnSCFxNfB+Cv5CQtLIZ4jL6mXZFRAjMOg0KrI5DNoIowWRXMJslV 0z7a5sF5SAVrINSzQTtTIcwJ98fQQ9eHJ0yEjMsq0p/IqRoozr+9OgHafqdJHWaw9qoJ 06NySlexI1bwxuh0Wsb6RcIUgXvYYBMTa2TWTdBQwbQhUvwBvW+Lv0T2KLPcgLmYbMmi v3vZON5li/didHu7yNvEnb5QfejnHTSXdsv7kezdJv11uJUHMhbUCE7ngUWjJi3wa/Ri FaXHy9ob4IzN8CVbK8Ib0nYAqutiGfqRsal8BnHS4n2hbVqCu5QkWPUXqoGsFznjY5Jp Q/Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694628064; x=1695232864; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+vAzLmGMAp2tLkE5jF8uMDyOlDhTRpufcEG/UTA0iE4=; b=SEe1+MJT/VSgRl/5JCRXXuzml1HD751GKjY7ifPvbgH0LJLKKCwHsBCsdGJUyCFEMA ZPUIj1PRMzNbhpus26KtRH44FsAP0GN3vbJfEbc3HXP0nOxTW9I0RcimfG+oIL81+wvA FEO5qDqOlk+gt28KexfLz0Kv/VkwpEhjzrlUlELIjnuFicw+vIxomabsmF5nSLUNTiQc +C8mebHTEXdB2pQ0XB1VyHJnnyyY3WU71FHu3APIq5yzPvI8yzmElObtUEAaSnIYElU5 3znLdnPHyzKDsIbyFF5Kdzl8wcSpfnoICliVmogzpDIflJOZFJwKWcMJsx8aE4xpdEiO zTlQ== X-Gm-Message-State: AOJu0YxoEeAYbLnckIaEk2nNS6zh1mRmvNj6qbHIEk2N2W0Toz8GrDzP VOI6D6zFx7aQSi4YwDsilpJI0sJeXX0qnvwnboR4 X-Received: by 2002:a67:e8ca:0:b0:44d:626b:94da with SMTP id y10-20020a67e8ca000000b0044d626b94damr3287173vsn.32.1694628063809; Wed, 13 Sep 2023 11:01:03 -0700 (PDT) MIME-Version: 1.0 References: <20230729024026.32228-1-yuehaibing@huawei.com> In-Reply-To: From: Paul Moore Date: Wed, 13 Sep 2023 14:00:53 -0400 Message-ID: Subject: Re: [PATCH v3 -next] keys: Remove unused extern declarations To: dhowells@redhat.com, jarkko@kernel.org Cc: Yue Haibing , jmorris@namei.org, serge@hallyn.com, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Sep 2023 11:01:32 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email On Mon, Aug 7, 2023 at 5:46=E2=80=AFPM Paul Moore wro= te: > On Fri, Jul 28, 2023 at 10:40=E2=80=AFPM Yue Haibing wrote: > > > > From: YueHaibing > > > > Since commit b2a4df200d57 ("KEYS: Expand the capacity of a keyring") > > iterate_over_keyring() is never used, so can be removed. > > > > And commit b5f545c880a2 ("[PATCH] keys: Permit running process to insta= ntiate keys") > > left behind keyring_search_instkey(). > > > > Fixes: b2a4df200d57 ("KEYS: Expand the capacity of a keyring") > > Fixes: b5f545c880a2 ("[PATCH] keys: Permit running process to instantia= te keys") > > Signed-off-by: YueHaibing > > --- > > v3: Add Fixes tag > > v2: Also remove keyring_search_instkey() > > --- > > security/keys/internal.h | 7 ------- > > 1 file changed, 7 deletions(-) > > Reviewed-by: Paul Moore Jarkko or David, please merge this or explain what is wrong with this patch= . > > diff --git a/security/keys/internal.h b/security/keys/internal.h > > index 3c1e7122076b..471cf36dedc0 100644 > > --- a/security/keys/internal.h > > +++ b/security/keys/internal.h > > @@ -109,13 +109,6 @@ extern void __key_link_end(struct key *keyring, > > extern key_ref_t find_key_to_update(key_ref_t keyring_ref, > > const struct keyring_index_key *ind= ex_key); > > > > -extern struct key *keyring_search_instkey(struct key *keyring, > > - key_serial_t target_id); > > - > > -extern int iterate_over_keyring(const struct key *keyring, > > - int (*func)(const struct key *key, void= *data), > > - void *data); > > - > > struct keyring_search_context { > > struct keyring_index_key index_key; > > const struct cred *cred; > > -- > > 2.34.1 --=20 paul-moore.com