Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7549039rwn; Tue, 13 Sep 2022 23:55:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR5RcNEK52wCoui9XSpybSuA1Xv5IFWLfmYk0xfGuogITIMVkAtmMzD2jAzzKixNvgJjOh94 X-Received: by 2002:a17:907:7f04:b0:77d:5bad:46d7 with SMTP id qf4-20020a1709077f0400b0077d5bad46d7mr9377140ejc.663.1663138501310; Tue, 13 Sep 2022 23:55:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663138501; cv=none; d=google.com; s=arc-20160816; b=FemX/WTu4Lc0/V50Lns97Xz13xdz1FdyTHZfohYwzF3AonHkKvm4wOU2g609i3FWXs feFuquqN/w1jWsA3thDdjsHv2PyFZJ0FH+DtejAkv8iJ+FCAUha5pFA4pd0QVHIeJ+dD 1mLL7odUaYtzL2grXTWfjSUOmMG7zZWuCYDvy54QRBHdLBQnOIJGE6Yc2vQMk4c3ueLO u81WXfeppQnlxKBU4STe0dGKpFB08Kq4J11d6yt6NA3nEF7qKdZrSwq4BQiTK5nythaO DvNmv8HrYBfEq3rtklt6/CLromuB9ynIQGGx8sdYzs2fqOe0grN4/gn0UfJv1z8kV5p6 mMBQ== 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=urK904zflXfQS9xzv3xD5IlC+FNUswOonD4UTth/OYE=; b=wVuTNXnBrWVK1A0TwSjJAsElygTw/oIsl0DWrh4+0qcpWQt89JlMXsG8w1Kk+/Xt7c ZbCt8zjlZhv4UEoxUyxsjIaUSd6MrEyhnzRSkenhD0cV047OgmlzSKrsXwPm79qLe95d OhIKG5mg8chZBnWJGGgw+u/sU/yf6zaiEysDfD99+11mphC2bi+EtWpmvOv1VxMFdL2b AjKDHNdj+zuDuPZMBY8xvgbmzEVPV3anwldTI8w/cBDG002SFYbDIvd0JWrOn5zUl8p2 ht3hOYy94Ys/nNsNgqszOx/tLj8hVxd1hwl9lAzjplXBsVajP5FnJvTjYUZczy/y+T1j O3FA== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ww12-20020a170907084c00b0073306ff26besi13451981ejb.969.2022.09.13.23.54.35; Tue, 13 Sep 2022 23:55:01 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229728AbiINGNt (ORCPT + 99 others); Wed, 14 Sep 2022 02:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230059AbiINGNN (ORCPT ); Wed, 14 Sep 2022 02:13:13 -0400 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6452B719B4 for ; Tue, 13 Sep 2022 23:13:10 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VPlxrJZ_1663135974; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VPlxrJZ_1663135974) by smtp.aliyun-inc.com; Wed, 14 Sep 2022 14:13:08 +0800 From: Jiapeng Chong To: dan.j.williams@intel.com Cc: vishal.l.verma@intel.com, dave.jiang@intel.com, ira.weiny@intel.com, nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] nvdimm: make __nvdimm_security_overwrite_query static Date: Wed, 14 Sep 2022 14:12:51 +0800 Message-Id: <20220914061251.42052-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 This symbol is not used outside of security.c, so marks it static. drivers/nvdimm/security.c:411:6: warning: no previous prototype for function '__nvdimm_security_overwrite_query'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2148 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/nvdimm/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvdimm/security.c b/drivers/nvdimm/security.c index b5aa55c61461..8aefb60c42ff 100644 --- a/drivers/nvdimm/security.c +++ b/drivers/nvdimm/security.c @@ -408,7 +408,7 @@ static int security_overwrite(struct nvdimm *nvdimm, unsigned int keyid) return rc; } -void __nvdimm_security_overwrite_query(struct nvdimm *nvdimm) +static void __nvdimm_security_overwrite_query(struct nvdimm *nvdimm) { struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&nvdimm->dev); int rc; -- 2.20.1.7.g153144c