Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7018371rwb; Mon, 5 Dec 2022 23:13:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4WTvHTLrJ+UaPCtzYYE1RuNDnZMBg8zQ1MVR88xR413YWdXXANyOXSWszrNgXLe3JV30GC X-Received: by 2002:a63:5254:0:b0:477:6195:34f8 with SMTP id s20-20020a635254000000b00477619534f8mr62061350pgl.286.1670310823366; Mon, 05 Dec 2022 23:13:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670310823; cv=none; d=google.com; s=arc-20160816; b=h/4bI7V2tlYTBpPzW3pIUwbfyLzoNpGvIi4DyRXxXv6cDC5OPyKdlTh3AiA6o8+6AL Dsf+eROvXtQA0rRNLw6tdaaeYp4hQG10PXU5n8SvX+5j3b9KvFG231CbnYtbqJE17qtW Pfuc59p9/wYdO3iHca0K8b0neNkA6JpC59TuN3n+gTP4A+tpE1/Ks0WDqz1vRkOUUCQS d9zu8ilIyU9kkdsgwxo9kMSX7TVJ4o1CmtS/7PyRpYq9K+2yxHv6DJooo7Kv/w9PBZsK cRi/Q6sS3qZS7R/GVYjdy34dxPVBLkMxThS86OlGktErxkCprULvBEreW7BTWIW8w5zx Iimg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8G9a8FJkoFYDtrEEzDdXvIlaMTn/fOhbXGF9LE/rIaI=; b=pwLMMYsxdq0he2huogfO2ZI15Qfb+4ise3h772a/v+yRYkNDIO/M/HCDjye8MBSBmN X0xIhusIuwKjBGWb67zjQOm1Zki6FC5qpDawlvyR/8//ShFa9jgvl8oplDbckrSZ6+Ia 1MkG7QfDcdbxvL03BHvK9QQeya15I86tNpMeaJEhvnKIu+k1BxqfQ/WjL5e+WEi1GTje AwDy5dRiIoEuIPYWVXJSDszULwRM10swkKomeoQ59tvO/ylheS9wbPk8sh1LEIkbu5HG f7sTpLLkI59GG0unV9TrzuHh4nT3w5Xbt3HiGSFzAF4j9ra1+eenz7skH0JnSO2UOQM+ Kg7A== 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 k190-20020a6384c7000000b00478b771fa14si6012529pgd.245.2022.12.05.23.13.32; Mon, 05 Dec 2022 23:13:43 -0800 (PST) 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 S233884AbiLFGby (ORCPT + 79 others); Tue, 6 Dec 2022 01:31:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbiLFGbv (ORCPT ); Tue, 6 Dec 2022 01:31:51 -0500 Received: from out30-1.freemail.mail.aliyun.com (out30-1.freemail.mail.aliyun.com [115.124.30.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A63CC275F7 for ; Mon, 5 Dec 2022 22:31:50 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VWdsB9s_1670308306; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VWdsB9s_1670308306) by smtp.aliyun-inc.com; Tue, 06 Dec 2022 14:31:47 +0800 From: Yang Li 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, Yang Li , Abaci Robot Subject: [PATCH -next] nvdimm: make security_show() static Date: Tue, 6 Dec 2022 14:31:42 +0800 Message-Id: <20221206063142.52876-2-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20221206063142.52876-1-yang.lee@linux.alibaba.com> References: <20221206063142.52876-1-yang.lee@linux.alibaba.com> 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_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 dimm_devs.c, so marks it static to silence missing prototype warning drivers/nvdimm/dimm_devs.c:352:9: warning: no previous prototype for function 'security_show' Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3362 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/nvdimm/dimm_devs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvdimm/dimm_devs.c b/drivers/nvdimm/dimm_devs.c index 17b56171c2c2..71fef964c5bc 100644 --- a/drivers/nvdimm/dimm_devs.c +++ b/drivers/nvdimm/dimm_devs.c @@ -349,7 +349,7 @@ static ssize_t available_slots_show(struct device *dev, } static DEVICE_ATTR_RO(available_slots); -ssize_t security_show(struct device *dev, +static ssize_t security_show(struct device *dev, struct device_attribute *attr, char *buf) { struct nvdimm *nvdimm = to_nvdimm(dev); -- 2.20.1.7.g153144c