Message ID | 20230724144717.23660-1-yuehaibing@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1871826vqg; Mon, 24 Jul 2023 08:23:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlG6aGBQE1g2wsd6IqkliKupQV3HwCOWBzZ1MzEOUPP4LVi3xVB1d/dcIvdsA7RANF+dVsKP X-Received: by 2002:a17:902:ba88:b0:1b8:944a:a932 with SMTP id k8-20020a170902ba8800b001b8944aa932mr6420536pls.2.1690212198301; Mon, 24 Jul 2023 08:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690212198; cv=none; d=google.com; s=arc-20160816; b=uP7CqU3ES6vkX9SR05ICRgVtRMZpC4bFyW5D5sq0RFuJg49BIl2FqWzMRm7tdjKhUl 95N116+5PJmpWN6zUq3ttG6epfgqYmigbEor04Q50jm/o8VZKBTi3exNkCfy77nQqTrR 33WTv+MmJ6XJqkiMRSL7KPBdA40F+qvHv5AWhzwt1QxFuoyO6xqp77mORPvx05BtVLHm iX+IEoLzNyfLgbb1HwMaBNLgEIqJiAkLbzfNZRCiMqHRQSJoso+ltrtGfZYXesIATXKo jNYKjjH2oiPTHlXv9J7mvJcSyE9Uo4HDiXw93M29fp25YyHh/H/KlluXmijKMcC+37tw GF1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=xp2UYvYv5RljQE1rYb4S5hg11XwwXWpcksJAGFY3Wkk=; fh=7XyPSfJaZKrofd7weJWQkokGKvHp+gXMNrwGstJ1wMs=; b=gTEXMZ/jME4YHOljhJFC7dKeykhhLarw03TXOEWfxonSO5AhUn1S1SvWflYn6vM1fu KRJG6v5keuYLZ+/2nD/OQG7Mw3QOE47HOr0lF+wuOG2u51eNUqIXN9HGUZLpA4GvjIoc Zy63iwsT8FRlY6LNu89iy+ws3at7GbEzJEmloOAAMsnROd0anIm6mtBKzFuPwyb7oefI xQwGuCWg5Lpm0YPSCL1XFR2/d7gy8bI4UuZdf4NCB8hZHMMIJTTU4DXNYtoiZrJo9Nvo A18G4R46+qkNnH/9uD5o4nFqZ9aUjwWU2TVnGLcQWEl4bkuwK2H1ZxtoKIw08Hc0iwUG xCNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020a170903018600b001b864d88d85si9726178plg.636.2023.07.24.08.23.00; Mon, 24 Jul 2023 08:23:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231538AbjGXOrt (ORCPT <rfc822;kautuk.consul.80@gmail.com> + 99 others); Mon, 24 Jul 2023 10:47:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjGXOrs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Jul 2023 10:47:48 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD3CF1A1; Mon, 24 Jul 2023 07:47:46 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R8jds3xRzzVjqC; Mon, 24 Jul 2023 22:46:09 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 24 Jul 2023 22:47:40 +0800 From: YueHaibing <yuehaibing@huawei.com> To: <dhowells@redhat.com>, <jarkko@kernel.org>, <paul@paul-moore.com>, <jmorris@namei.org>, <serge@hallyn.com>, <yuehaibing@huawei.com> CC: <keyrings@vger.kernel.org>, <linux-security-module@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v2 -next] keys: Remove unused extern declarations Date: Mon, 24 Jul 2023 22:47:17 +0800 Message-ID: <20230724144717.23660-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772315945845347636 X-GMAIL-MSGID: 1772315945845347636 |
Series |
[v2,-next] keys: Remove unused extern declarations
|
|
Commit Message
Yue Haibing
July 24, 2023, 2:47 p.m. UTC
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 instantiate keys")
left behind keyring_search_instkey().
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
v2: Also remove keyring_search_instkey()
---
security/keys/internal.h | 7 -------
1 file changed, 7 deletions(-)
Comments
On Mon Jul 24, 2023 at 2:47 PM UTC, YueHaibing wrote: > 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 instantiate keys") > left behind keyring_search_instkey(). > > Signed-off-by: YueHaibing <yuehaibing@huawei.com> Please use the fixes tag properly. > --- > v2: Also remove keyring_search_instkey() > --- > security/keys/internal.h | 7 ------- > 1 file changed, 7 deletions(-) > > 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 *index_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 BR, Jarkko
On 2023/7/29 2:55, Jarkko Sakkinen wrote: > On Mon Jul 24, 2023 at 2:47 PM UTC, YueHaibing wrote: >> 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 instantiate keys") >> left behind keyring_search_instkey(). >> >> Signed-off-by: YueHaibing <yuehaibing@huawei.com> > > Please use the fixes tag properly. OK, will add fixes tag in v3. > >> --- >> v2: Also remove keyring_search_instkey() >> --- >> security/keys/internal.h | 7 ------- >> 1 file changed, 7 deletions(-) >> >> 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 *index_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 > > > BR, Jarkko > . >
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 *index_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;