Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp372060pxb; Tue, 3 Nov 2020 01:38:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzupUMx3z2R/1nepH0aj75vzrPad2UZz7MzxmbMjdmUcsMBaRfHe/8vjgJdfTmArATo5jPm X-Received: by 2002:a17:906:280a:: with SMTP id r10mr19082033ejc.45.1604396325216; Tue, 03 Nov 2020 01:38:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604396325; cv=none; d=google.com; s=arc-20160816; b=fp7pe0RMYsPJNqDUhT5l/CqsblOLWF9wOly4jVl0D+tSHsxPP8fBDZt3/j4doC9xTT WfFinxj7AECIHdAEPnlv83o/miimDCjXvNZQGxXfiYqoltrNazka1X4XDWzIDx3oBh6C iaB6iGF/hbsE0FvC+xIhA7JeGvpnViNWfqvM72zh0MyQ5kReTaRUVe6yg33YK8lblUpE G+0QmjiBanNiwcLz6BxgQrAAFI60q9+trBqTMo49fhkbBPQTHexzbH7P5i6IULmchBVg fYwSpCsUibiUVjEnvLlrMMbLBozVINq4AhQB92KfsVIwcaPefIQVeuInle+XXA99FtmI Yh+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=+Gl0ptbYswA0KSXaaDb5Y6vXfOjH6GyR9R+tI2Uu7Ko=; b=YTq1bU8xeOiAG+XIThDBCW6WEOV9grlMi/6CK5JC1nVeAWaGeQSnC1AYkz0GxDVnR2 hWUvPNxgFBPQMxm86O1D0nwz33xzVUyai3nxXrqosgTf3+vXAoQ6zo3DkaV1fTFxQ4wG uayj47iGmv5XUSPJBiJp3Hwp/Iqdfd/mpjb0JFjZ+lAwuIvaIXzqM6epdjMDmvcgX0hP 65i1nHmQ4M/pXtfaz3WVlX8ptgl1pN+Eyd/lbfIKy7dZCwktvI8OQP2p0zeDGB1Vv+MI DU+zQ380OO2IavsQhx95/0RQnuCXELen5QkX6OGmRopUPbc87orS09JKR0QZVSvH+zty n85A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TqujgPcE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s22si13239274edu.360.2020.11.03.01.38.23; Tue, 03 Nov 2020 01:38:45 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TqujgPcE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727883AbgKCJf4 (ORCPT + 99 others); Tue, 3 Nov 2020 04:35:56 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:31961 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727857AbgKCJfz (ORCPT ); Tue, 3 Nov 2020 04:35:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604396153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+Gl0ptbYswA0KSXaaDb5Y6vXfOjH6GyR9R+tI2Uu7Ko=; b=TqujgPcEJ1QNPfp0YORNQV6cf+QJSbJ2dU01iMpX3ALFWXY19g2KL84QUTkkKIUWulFbe0 Kfsny85b8du6+71DUej0yqq2Dr521fdDElawznLWyQFHmke1TgpC2AN90we7d7A2PZuIIa jTIKMeKZCMDO54uXzNJfI+iGbpDreqs= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-28-u-mZfERmPa2nvsmj8Naf6A-1; Tue, 03 Nov 2020 04:35:51 -0500 X-MC-Unique: u-mZfERmPa2nvsmj8Naf6A-1 Received: by mail-ed1-f71.google.com with SMTP id f20so3453552edx.23 for ; Tue, 03 Nov 2020 01:35:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+Gl0ptbYswA0KSXaaDb5Y6vXfOjH6GyR9R+tI2Uu7Ko=; b=T/j8KF2fTnrlaBKBw7+QsQlBnaAEx/L9EViJ+MReA7rqdjmO5poJfs9xIcMGef74jf ubjYKDGdaXgN9rQVeUELFwEsYhQXr2irHBD5jgaP9wWIPhQTbf+D6iigyQYQVqACTeeN VGuNKaq9OtAhq9P/2zglmONT+wxQ19xnsBRdVY4/ewglO2Gd8ctmnlKkPnE/X9eD4Xz8 n+jlKhOE73nW/JY8XZH+5o/fPxj/hysp7cZGzCC5m9LmIT+Lio8zHGriNWZyGWa0vyK+ +QlmMSo2M/qNalKVyErXtJwSZLKAFav4ebXv5+7pv8z16P06CvJzdUO+kOlJjcGYDdq0 dARA== X-Gm-Message-State: AOAM530SJJWxMBOjoAEnRCeUyNOGxHK+UYyRiscoUEjBH8KYKzBuRrTB xMX9n8QXhngUpwZoJIy+e1pBLLUWjvnF/M9k6NTFUFTwdi1GMB3WKlu/Fw7VHApxEGNYT8Yxek5 Azsp++aKSENOw2iHroa5O3uyq X-Received: by 2002:a17:907:2175:: with SMTP id rl21mr15999955ejb.59.1604396148698; Tue, 03 Nov 2020 01:35:48 -0800 (PST) X-Received: by 2002:a17:907:2175:: with SMTP id rl21mr15999938ejb.59.1604396148490; Tue, 03 Nov 2020 01:35:48 -0800 (PST) Received: from x1.localdomain (2001-1c00-0c0c-fe00-6c10-fbf3-14c4-884c.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:6c10:fbf3:14c4:884c]) by smtp.gmail.com with ESMTPSA id nd5sm10286179ejb.37.2020.11.03.01.35.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Nov 2020 01:35:47 -0800 (PST) Subject: Re: [PATCH -next] platform/x86/dell-wmi-sysman: Make wmi_sysman_kobj_sysfs_ops static To: Zou Wei , mgross@linux.intel.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <1603971581-64135-1-git-send-email-zou_wei@huawei.com> From: Hans de Goede Message-ID: Date: Tue, 3 Nov 2020 10:35:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <1603971581-64135-1-git-send-email-zou_wei@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10/29/20 12:39 PM, Zou Wei wrote: > 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 Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > 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, > }; >