Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp353379pxx; Thu, 29 Oct 2020 04:24:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydtqBXhDhWGyUJ2TrdTxuJNasuTQy+M/l8ZQVgFT2UdQQuSjpsujjdxx6n4THfNffLEsnh X-Received: by 2002:a17:906:12c1:: with SMTP id l1mr1897485ejb.528.1603970659047; Thu, 29 Oct 2020 04:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603970659; cv=none; d=google.com; s=arc-20160816; b=BO5IKNT3DMGcP2dfJRJR/u9Klw8SWl+GRZvWW3Vl6ok+oQJt/xyt+o0ewGcAyiHffg on6GJiWXJdzZHqxkBBh8oEcHYLtP8VtnCQ5T/lBrI38vD190cUPXBPCP0JvxF3RWiHtY TnUPMx+AGtgXB4ZscREPN1+/HDXAGDQMrdX+KahC6L8PJNl49WcgqW21rhiYNuvo235X mmLDHSdZ2ctyFSWBn2cCqVK1wLhZlZ24FlmMbUbuIyGl5DqHe+142PlONOVhm6E5mz9u EJe6TfsZX5dk9ifgVkl2xsWg4q/14McQ28aYvgwtoXmEQ68dHjHO2+FXrT6kQlf/59GZ NqJQ== 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=4kXnwOmDBe1cVBrGoUl0HQWPWC9N4/MKE+BjeY97JFA=; b=u6OuexjuQFIbKvULO5IhymH+FWlWU6Ed6fSj2QgidDdNyHLVguyevDFcJHFP61K1Bq Vilflh4FVSjqT7yDwMtx3/2+H2B+F9YQ7YY385cTYCbbF/rMKFRpGAP9W7mG0zFCYR9n NuHfmozuL31MT+w5sCyzx83QKd8VTzmGCYoTeEvrnQsS+hTC6z9owRln1heJL9TO0z28 Igm9aEQ55vClU/kxTUdnek/H2W9oAfTxAiFKkUlqG99hsF7LbkgZbrVjWRLF0U15AQuc LcWMjFSNh7nfR/0CUJuKZllVS9SAU0/qaF4E4WBZBdlmXfXSJDFoJmnWdSDniOeANrGH 2+Og== 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 g18si1623571ejr.152.2020.10.29.04.23.54; Thu, 29 Oct 2020 04:24:19 -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 S1727417AbgJ2LWe (ORCPT + 99 others); Thu, 29 Oct 2020 07:22:34 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7098 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726803AbgJ2LWc (ORCPT ); Thu, 29 Oct 2020 07:22:32 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CMNMG226MzLn2f; Thu, 29 Oct 2020 19:22:18 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 29 Oct 2020 19:22:10 +0800 From: Zou Wei To: , CC: , , "Zou Wei" Subject: [PATCH -next] platform/x86/dell-wmi-sysman: Make some symbols static Date: Thu, 29 Oct 2020 19:34:09 +0800 Message-ID: <1603971249-64044-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 warnings: drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c:38:23: warning: symbol 'po_is_pass_set' was not declared. Should it be static? drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c:70:23: warning: symbol 'po_current_password' was not declared. Should it be static? drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c:99:23: warning: symbol 'po_new_password' was not declared. Should it be static? drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c:103:23: warning: symbol 'po_min_pass_length' was not declared. Should it be static? drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c:107:23: warning: symbol 'po_max_pass_length' was not declared. Should it be static? drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c:116:23: warning: symbol 'po_mechanism' was not declared. Should it be static? drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c:129:23: warning: symbol 'po_role' was not declared. Should it be static? po_is_pass_set, po_current_password, po_new_password, po_min_pass_length, po_max_pass_length, po_mechanism and po_role have only call within passobj-attributes.c They should be static Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c b/drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c index e6199fb..81562b1 100644 --- a/drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c +++ b/drivers/platform/x86/dell-wmi-sysman/passobj-attributes.c @@ -35,7 +35,7 @@ static ssize_t is_enabled_show(struct kobject *kobj, struct kobj_attribute *attr return ret; } -struct kobj_attribute po_is_pass_set = +static struct kobj_attribute po_is_pass_set = __ATTR_RO(is_enabled); static ssize_t current_password_store(struct kobject *kobj, @@ -67,7 +67,7 @@ static ssize_t current_password_store(struct kobject *kobj, return count; } -struct kobj_attribute po_current_password = +static struct kobj_attribute po_current_password = __ATTR_WO(current_password); static ssize_t new_password_store(struct kobject *kobj, @@ -96,15 +96,15 @@ static ssize_t new_password_store(struct kobject *kobj, return ret ? ret : count; } -struct kobj_attribute po_new_password = +static struct kobj_attribute po_new_password = __ATTR_WO(new_password); attribute_n_property_show(min_password_length, po); -struct kobj_attribute po_min_pass_length = +static struct kobj_attribute po_min_pass_length = __ATTR_RO(min_password_length); attribute_n_property_show(max_password_length, po); -struct kobj_attribute po_max_pass_length = +static struct kobj_attribute po_max_pass_length = __ATTR_RO(max_password_length); static ssize_t mechanism_show(struct kobject *kobj, struct kobj_attribute *attr, @@ -113,7 +113,7 @@ static ssize_t mechanism_show(struct kobject *kobj, struct kobj_attribute *attr, return sprintf(buf, "password\n"); } -struct kobj_attribute po_mechanism = +static struct kobj_attribute po_mechanism = __ATTR_RO(mechanism); static ssize_t role_show(struct kobject *kobj, struct kobj_attribute *attr, @@ -126,7 +126,7 @@ static ssize_t role_show(struct kobject *kobj, struct kobj_attribute *attr, return -EIO; } -struct kobj_attribute po_role = +static struct kobj_attribute po_role = __ATTR_RO(role); static struct attribute *po_attrs[] = { -- 2.6.2