From patchwork Sat Jul 22 03:08:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 124199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp613430vqg; Fri, 21 Jul 2023 21:25:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlEMDie0Y79B5EH3oOvT+3/Cu+aEqu+n7nRk/y19ij67dYtw7dAqO9nnJUg+d7EJMiArptTS X-Received: by 2002:a17:906:2250:b0:977:ecff:3367 with SMTP id 16-20020a170906225000b00977ecff3367mr3777823ejr.40.1689999925343; Fri, 21 Jul 2023 21:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689999925; cv=none; d=google.com; s=arc-20160816; b=iP7oM314u2vXqRAqZAf93sPJesQY0e/81t/de0hm+AIHqpXmvqcBFycq08SoeEAXo7 7QNP2bxL6xAZUuOCmzNkMoifOEx/fzZj06BXqNhj0CI08DSEoE8ZvNstH2DhjSovoif8 /tAbiOMvD9xNSLcnhYWGSKPYK1WU5wHpIwBI5PBwRJWHykhQ1rVt/dJBmPC9IQwz/uG1 ihv/TDWpIVtl34sw9+rIO3GREmrb37NZECTrU8Vl4Wc/7bXIvyWIL1yxXxfl48qR1Ef9 MyHKImI8HYeXh18nafJqMcKZoN+lOxdtDAqkJB/qv6zAPs6mLa+o7Q8OhlBNG+1icpqL E34A== 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=Hktp5s0MUHmck3qRVkZQbQiBVaZr//KbpNEzlCTmOYg=; fh=fcI6JBbrf7AZQx8CyGt0kWkMQGMStLlD+l68LIZwW50=; b=Ofb/Ib/GiSZrCSc4Us8M3QbMdS/K5GYrL1m/WVHFvuv7kV3F3tiRxIJ9nL52BGKCBk 6tL1xURj0S9RWWZ+VWHIk53zFfcQxvaSpG+i9YwChlpfSyzaLmRXuPlJNUjWd+K+P6lN GmFTqL1DmKoGi0PhWZ37mqf0Tl0q24pr2vHfOsQZwJjKWEo5Oh5KsnE+GBOPC0R5M8P2 RD3TXCMNLpaMKpKGKAOZAOEgTX41hiFi0vfeHrREXvsaI84MlQQ3YJh0yIWiNy3Gcljz bGpY1s2O2W70wXyHxoHTFVDlZ74SgF7piu2ovQZFJGf44xFrwqY51itw8NqbOJFp7BTE F6fA== 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 rn21-20020a170906d93500b00982a6e33d3esi3112857ejb.1046.2023.07.21.21.25.00; Fri, 21 Jul 2023 21:25:25 -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 S229644AbjGVDJ3 (ORCPT + 99 others); Fri, 21 Jul 2023 23:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjGVDJ0 (ORCPT ); Fri, 21 Jul 2023 23:09:26 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 181FF3A9C; Fri, 21 Jul 2023 20:09:23 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4R7BFt3Stkz18LhY; Sat, 22 Jul 2023 11:08:34 +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; Sat, 22 Jul 2023 11:09:21 +0800 From: YueHaibing To: , , , , CC: , , , YueHaibing Subject: [PATCH -next] keys: Remove unused extern declaration iterate_over_keyring() Date: Sat, 22 Jul 2023 11:08:32 +0800 Message-ID: <20230722030832.33680-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772093361750052303 X-GMAIL-MSGID: 1772093361750052303 Since commit b2a4df200d57 ("KEYS: Expand the capacity of a keyring") this is never used, so can be removed. Signed-off-by: YueHaibing --- security/keys/internal.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/security/keys/internal.h b/security/keys/internal.h index 3c1e7122076b..95a82eec1816 100644 --- a/security/keys/internal.h +++ b/security/keys/internal.h @@ -112,10 +112,6 @@ extern key_ref_t find_key_to_update(key_ref_t keyring_ref, 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;