Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3089804rwd; Mon, 22 May 2023 08:30:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Bb/Y8V10Di9627d/aKmi6XFJNgm3qbKEQTd1lYsKtsuNTGFJ/hroG7nwEqrV7Slcold7R X-Received: by 2002:a17:90a:1b42:b0:252:89bc:1cd9 with SMTP id q60-20020a17090a1b4200b0025289bc1cd9mr15485879pjq.20.1684769431573; Mon, 22 May 2023 08:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684769431; cv=none; d=google.com; s=arc-20160816; b=k8Hog0qps8/9zTyTtGKZO7axy+Zc+caxRmhyqdwJaguRQo033Bw4CSmu2iUQwmkVlp yA4pgGMsvZImW6LsanSP8PUmChcHyrE6nvIjc+5BouWZj6xpolTIq0aEHw3/T+5uQ1zz W2UtEUsWXj6OFco+qzHafzeBEp37QOKzTyhzj70DCPjcXX8WWDNUkV2Zp8n20160YJp4 s8D4D1TqUsCvD3zf/JoKkqugKqo6PZ17LkcuiYtTT0UK3MHCKiGBSrfABQ5goYBf4CfH UIrWz2n36RlZJAPRQJwi8SnYqd0vjqpE/l9Qt9P+8WId1TCrb2ZslKidjSgT8WoVr8/y J16A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jWfeBUbLcUeiOXhLTDZFm7Lrrb458xWCspttrK4QB0M=; b=uWXpRkiOxOT2GR3EHRVkb3qXkx4nj2iwcc6vk3odDErT/tk8Nbs51mRME9bIcQdGp5 6IkWZnWW2d2qvdz/myKVChm6NZ+j6ahJ8OoZftuT/F8wmrSNAZGWXC73iiS2PvB9wNAc 5O/rFVPS/U4Dc2IV6xz9pMvYvrC3mkywSwQmXnTBW9jflB51qj2R9K0Yhdzs3wteJoZV Cnj6D2WXw1HkgUlfms9x8D7E8eOVDBbocMoXiLXn9YMD1MBRhWQGcZtGH1w1i/1NjX9q WagjW/R+XJ2N8r67mb72UUytM55h/j5fjbrbda3tKrmafaR9dl++uMqyhv2IqHa71Ubh ehLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jjEyX5oW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a17090a024d00b0023b481b8dcesi6784396pje.102.2023.05.22.08.30.15; Mon, 22 May 2023 08:30:31 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=jjEyX5oW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234498AbjEVPXB (ORCPT + 99 others); Mon, 22 May 2023 11:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234499AbjEVPW4 (ORCPT ); Mon, 22 May 2023 11:22:56 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEF151A7 for ; Mon, 22 May 2023 08:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684768968; x=1716304968; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=B+VCFjsrJW/lh7B61VjWVRHmyHm6MpEB6o9V7PhypQQ=; b=jjEyX5oWuigriSSKx+p09Jlnm3ncVZb1U6SYicRkY1SW3zRSAQ+a7o+N iUgGg7GuOrzNyEqXZyvBLT9X/9qTRojlm9VxwG5UZefbYQGnFdj1fG28K bvhH2+9t+8ILXXqYmEnSM39dhY5yq5dMh1vqHMBLUyNyaslsnEM+ZAN8A jWGKGSA+lBDc8+8nAf4TIdQ2jCqr+ummft7l2ReeEWU/7Gd2yszmBSfgC B1Rk8aOBdqStLNSD9HpZhvsIVJDUv65my+JzXXojAWncwd29GtaE3pP6Q wz/OhKHnxol+WXs4YLyvqesIhHb+dWZsDlIvQu8V6uuz+EGYlGftGjoDU Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="381182210" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="381182210" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 08:22:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="703554971" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="703554971" Received: from djiang5-mobl3.amr.corp.intel.com (HELO [10.213.173.219]) ([10.213.173.219]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 08:22:45 -0700 Message-ID: <67717c6d-de28-795a-74f8-e1fed71e627a@intel.com> Date: Mon, 22 May 2023 08:22:44 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.10.0 Subject: Re: [PATCH 3/3] libnvdimm: mark 'security_show' static again Content-Language: en-US To: Arnd Bergmann , Dan Williams , Vishal Verma , Ira Weiny , Jonathan Cameron Cc: Arnd Bergmann , Greg Kroah-Hartman , Hans de Goede , nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org References: <20230516201415.556858-1-arnd@kernel.org> <20230516201415.556858-3-arnd@kernel.org> From: Dave Jiang In-Reply-To: <20230516201415.556858-3-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,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 On 5/16/23 1:14 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > The security_show() function was made global and __weak at some > point to allow overriding it. The override was removed later, but > it remains global, which causes a warning about the missing > declaration: > > drivers/nvdimm/dimm_devs.c:352:9: error: no previous prototype for 'security_show' > > This is also not an appropriate name for a global symbol in the > kernel, so just make it static again. > > Fixes: 15a8348707ff ("libnvdimm: Introduce CONFIG_NVDIMM_SECURITY_TEST flag") > Signed-off-by: Arnd Bergmann Reviewed-by: Dave Jiang > --- > 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 957f7c3d17ba..10c3cb6a574a 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);