Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1536977rwn; Thu, 8 Sep 2022 23:07:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR5RiKOuTFGpeieGEpdW578P38qTW8cQz6z03rTgZH0ZbO4kFq2W0qGYNZ4GiZuo81OkJO8z X-Received: by 2002:a2e:380b:0:b0:261:d39c:737c with SMTP id f11-20020a2e380b000000b00261d39c737cmr3403876lja.499.1662703676638; Thu, 08 Sep 2022 23:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662703676; cv=none; d=google.com; s=arc-20160816; b=JIaLIWnGjDs6E2STA+F8oBUIfnLYKsFFEHOK/T/fOaedTX8iv5PTDnkQaHu9MlC8IK aIgvP4q5Ge2lX2PCpELN9HLeFo6sE3UWfx/lylODTNwh6gCx0GsekVF6dHv9WoE0qihd LBxqz/W5Ua+EyHs84vC5Bf86qW3GGAQt6leZWw8ru1/CVlu5+0kYhb4XJcJHCDTpGcQn +O1bfgCFPns+VddP2IJteF895NfsNk+28lcC7HGilJhq7U8u25itO10QOiQOIe/fsssi GxGNGIg50M6rIFgi1MRc4Ieo8a/zrC8ti6O9ktNoU3M5/Or3HpSt8A+XQ9rppuZejgVJ 4WAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=vc8BCHKUcxPID/LxrlNUx0olGkxCskLEPipohF6umJs=; b=o2ovHHuXvJwV+dDS37rAGz/lDsKXoEvfE1ysR1d9m16gQ8UXamgPsZhaDdK8XYQ6dy azJbCsZ1ek6OHK74zmjzDf9QCElSc00pHy1FSO8kHATn7bDTSCa97Zs8QnwN5lSPRuBn a4GVgvvxnGDXZwpbMXQRtu+mYR5u69mG1bjYss5Vrb8DWWb1h7p4eDiKuh3jzs5JbFEA mq9VzxDWTTDgdPVSQuUvbty1xx1fmrwZBe6i+UZnLXUbi2JzGOcRy8FbS7uytfPB3fjL QTwt3BTokp4obUixjCsLNfjuE7IJlUk/gje5WQGGNP671LIGz1rl9a2PTM6CyoZknjYd CBgw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z26-20020a056512371a00b00491a72996cdsi390662lfr.363.2022.09.08.23.07.27; Thu, 08 Sep 2022 23:07:56 -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 S230129AbiIIGE6 (ORCPT + 99 others); Fri, 9 Sep 2022 02:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbiIIGE5 (ORCPT ); Fri, 9 Sep 2022 02:04:57 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9D8633A1E; Thu, 8 Sep 2022 23:04:55 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MP54w5xqYzHnVL; Fri, 9 Sep 2022 14:02:56 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 9 Sep 2022 14:04:53 +0800 From: Gaosheng Cui To: , , , , , CC: , , Subject: [PATCH] security/keys: remove request_key_conswq and keyring_search_instkey() declarations Date: Fri, 9 Sep 2022 14:04:52 +0800 Message-ID: <20220909060452.1121620-1-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 request_key_conswq has been removed since commit 76181c134f87 ("KEYS: Make request_key() and co fundamentally asynchronous"). keyring_search_instkey() has been removed since commit b5f545c880a2 ("[PATCH] keys: Permit running process to instantiate keys"). so remove the declare for them from header file. Signed-off-by: Gaosheng Cui --- security/keys/internal.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/security/keys/internal.h b/security/keys/internal.h index 9b9cf3b6fcbb..6a2fb45c22f8 100644 --- a/security/keys/internal.h +++ b/security/keys/internal.h @@ -86,7 +86,6 @@ extern struct kmem_cache *key_jar; extern struct rb_root key_serial_tree; extern spinlock_t key_serial_lock; extern struct mutex key_construction_mutex; -extern wait_queue_head_t request_key_conswq; extern void key_set_index_key(struct keyring_index_key *index_key); extern struct key_type *key_type_lookup(const char *type); @@ -109,9 +108,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); -- 2.25.1