From patchwork Wed Aug 16 13:11:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 136230 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp2354403vqi; Sun, 20 Aug 2023 00:08:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9mHvN4aDY033o7uBHiT8tJpSg7zD9UYJNpEcwc69dhaEqqeGPgE4gCW4LcVbqrwueQx+J X-Received: by 2002:a05:6358:724a:b0:134:e41a:9227 with SMTP id i10-20020a056358724a00b00134e41a9227mr3517975rwa.5.1692515302739; Sun, 20 Aug 2023 00:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692515302; cv=none; d=google.com; s=arc-20160816; b=X3fKWgbS2J6M24bfQc1E//mqPW3qgHj1TiD9ZnSwXV6if1arJufRQtPs3GomYN5lA8 CLLXE+EoEkv5x7Jwmq9rJMBf5V2i2h7T2Gdmb9itgWvlVNP49rb3y0aznn9xgtWOpXJk W0fN+Vc1JjL/G/r42QLQ78wy6SlhHnHiqatXtnbO1mpEKPE+VFi+mzn3x6s9PiQUQDfn 3KmdcHfcuxEH0Qb4J/qjYVREl6JnynRZAi4iL/ik8qudAeDEY744J8SY8eY6/sQfqY5b t2Q5ObfBDoagbM+c04onPqW0JVRyCbg77u1NQwe8rX8H4nyhS+dFmmjS1LTCBBdbYWN1 eDtw== 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=+BTqG3Y8hqGpbTZE5bcfi3wejq7rsrADoCtqLxvljCE=; fh=0bWuSQfLivGoleg53cmRcC06zJHMFyAPHMqJsMjp+lw=; b=FXoCK9ARXavxgkNXC/YsYQGVjonWBximPUmKu+paS0ZzD1P9CT0NsagrXdGpx9l7Sh 4MellFzqrjz2ycyrYfh+ymxEYyVHdRFBNA24bgrJ8O4lS4Ys4bzASmf9OKTS6rnzOBku fZt5Gj2XIX//aV1eUOOewdS1UTcsra8zCAGdmn1yaoG45Q97A2lhY9D6oMlfPlbKnals LtRag0j4WDcGNnpD3rjKQtF8O8AdxLKj9wWCVG0AZqVV8j8s/yg4tD71oHpPm1d//v1P pHfdZHjZqSL38v9RiCXZBrBE76jyLkQ10art8+kSIYIvDFPfX4YD2lvlFsAe8NA+vC2d x3eA== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n11-20020a654ccb000000b00565f5f197adsi4602154pgt.316.2023.08.20.00.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 00:08:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 257B22B153C; Sat, 19 Aug 2023 11:47:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245402AbjHPNMG (ORCPT + 99 others); Wed, 16 Aug 2023 09:12:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245386AbjHPNL6 (ORCPT ); Wed, 16 Aug 2023 09:11:58 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 013AE1FF3; Wed, 16 Aug 2023 06:11:56 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RQpQ36Y4fzVjyX; Wed, 16 Aug 2023 21:09:47 +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.31; Wed, 16 Aug 2023 21:11:53 +0800 From: Yue Haibing To: , , CC: , Subject: [PATCH -next] KEYS: Remove unused declarations Date: Wed, 16 Aug 2023 21:11:22 +0800 Message-ID: <20230816131122.43240-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: dggems706-chm.china.huawei.com (10.3.19.183) 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_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS 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: 1774730926059115940 X-GMAIL-MSGID: 1774730926059115940 These declarations are never implemented, remove it. Signed-off-by: Yue Haibing Acked-by: Jarkko Sakkinen --- include/keys/dns_resolver-type.h | 4 ---- include/linux/key.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/include/keys/dns_resolver-type.h b/include/keys/dns_resolver-type.h index 218ca22fb056..1b89088a2837 100644 --- a/include/keys/dns_resolver-type.h +++ b/include/keys/dns_resolver-type.h @@ -12,8 +12,4 @@ extern struct key_type key_type_dns_resolver; -extern int request_dns_resolver_key(const char *description, - const char *callout_info, - char **data); - #endif /* _KEYS_DNS_RESOLVER_TYPE_H */ diff --git a/include/linux/key.h b/include/linux/key.h index 938d7ecfb495..f16deadebca9 100644 --- a/include/linux/key.h +++ b/include/linux/key.h @@ -436,9 +436,6 @@ extern key_ref_t keyring_search(key_ref_t keyring, const char *description, bool recurse); -extern int keyring_add_key(struct key *keyring, - struct key *key); - extern int keyring_restrict(key_ref_t keyring, const char *type, const char *restriction);