Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp356913pxx; Thu, 29 Oct 2020 04:29:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj1P28oQez+g6WROaawbbW2D4LbkblOOVC0RIc0bbTIUa3LsSWP/Td2nm0EcCI3r3RqcHF X-Received: by 2002:a50:8245:: with SMTP id 63mr3451961edf.133.1603970991750; Thu, 29 Oct 2020 04:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603970991; cv=none; d=google.com; s=arc-20160816; b=VYTFOZexS9KYzp49suBMYCVz5A3Edlr4bSeS0hE0kFb9pSpODPKhPzop4y9k/VoNPQ mRgDgpaP3NSAMe5bJfbfve91Hka7YbsVS0QWqO73LfV7XqIw7NcuPXzsuxOWJmOe++3S FaXKGq23TS7WFeXMsESyvHFy1iO5EmVJwl4DR+Ph94NEE0lM87oX7EDobt9Z1LL7sHAI 6Qm/X9JB1V9uBpOEOAPokCTcrt/CJAYzWRwmMCoaq6ByWi+4yIX0Co+MLmWbtAFi3UXB clQeu+8ROQVGEVNMEiY5scYTkJV8eYFZ7v80p3x9g0eHURXJMwYXkNeWSUU6lpl/r3by 0BqA== 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=YFYIWrMTBkT60oHbrODLOSTlTnS/iu6LBktCinVYRJ8=; b=HucZqFX/cZXUlqaLfjpN+LjLag2JnZSa4GWYcnsSTy+iYmQqizKoaGT5sOOAWRfL8v NhG4hSh1NbbRrj6wNJ8Umw0mahrz42EVLP97JVKI7JgO04ORiUDdLPMoVaU/OVqCv7ap KyfODUyLyAqa+gHJ3yrdPAFYbc97iXvHq/g1zgIAsnLrDWrqU0BpZKxTLLFTiqgn4ldc J3Cw+gweRK8T7AnEFmtwxAlnYeM8HUkIZb5scsS/f6Mwyem0fF3Cnd87wWhFuj6tJLyJ F5PiYuTs83BRpR1394NPg5pi8XAnnsga+hGl2ov7EhAr5osnCdzB6dkA5a2v/YgEeXQQ 8Zbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si1763546edm.299.2020.10.29.04.29.28; Thu, 29 Oct 2020 04:29:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726793AbgJ2L14 (ORCPT + 99 others); Thu, 29 Oct 2020 07:27:56 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6667 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbgJ2L1z (ORCPT ); Thu, 29 Oct 2020 07:27:55 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CMNTk4LMRz15NVr; Thu, 29 Oct 2020 19:27:54 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 29 Oct 2020 19:27:41 +0800 From: Zou Wei To: , CC: , , "Zou Wei" Subject: [PATCH -next] platform/x86/dell-wmi-sysman: Make wmi_sysman_kobj_sysfs_ops static Date: Thu, 29 Oct 2020 19:39:41 +0800 Message-ID: <1603971581-64135-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: drivers/platform/x86/dell-wmi-sysman/sysman.c:258:24: warning: symbol 'wmi_sysman_kobj_sysfs_ops' was not declared. Should it be static? wmi_sysman_kobj_sysfs_ops has only call within sysman.c It should be static Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/platform/x86/dell-wmi-sysman/sysman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/dell-wmi-sysman/sysman.c b/drivers/platform/x86/dell-wmi-sysman/sysman.c index 3842575..c6862c3 100644 --- a/drivers/platform/x86/dell-wmi-sysman/sysman.c +++ b/drivers/platform/x86/dell-wmi-sysman/sysman.c @@ -255,7 +255,7 @@ static ssize_t wmi_sysman_attr_store(struct kobject *kobj, struct attribute *att return ret; } -const struct sysfs_ops wmi_sysman_kobj_sysfs_ops = { +static const struct sysfs_ops wmi_sysman_kobj_sysfs_ops = { .show = wmi_sysman_attr_show, .store = wmi_sysman_attr_store, }; -- 2.6.2