Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1180114pxx; Fri, 30 Oct 2020 04:15:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT+bXkxx31tLJQF/kRTlzKjr8m6ik+aJD6iEVXIqm0ai4ne3W4kFd51bOY1oIID+lR04FD X-Received: by 2002:a05:6402:22f8:: with SMTP id dn24mr1752413edb.128.1604056554397; Fri, 30 Oct 2020 04:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604056554; cv=none; d=google.com; s=arc-20160816; b=RLeBfePHZiS3CjWUp5tEDzOaOh9afh23i1IjlSR0hliyysV5LKrimAlEE5tZMRqM8y aJtW5DejFZP6LJT2qfBQB/+TMB61dW9RJm85GBYsBG5rdYKaALLf4Lu+vXltFM7sUbZr 6B/yW5gX+f1C2DL4PjFPhlzpdymkrp2sBo8C3qvpkGP/7654z3T7fcyH6dibyqG2twxB t0vryCrH1/k8WnRfkqbnhoKGekNJFCompMMG0OwXwIuMoiTi7kbVqQF2xC4YYvxOS6b2 zuN1cDSGfm4P8L+VeQtAn8pXpOSbD9wgmhK8+dxEv5TKNdyeQtR1imlsisr/ZGKGXEf+ ZXdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uUTBDFmOSWVlaKR+HYll/Mm2JTPEYK62zLmX9e2jIkw=; b=uKJ3Flk8AL7qOxZQswX8FkpoSL31EgDcJunwn/t/mjoWLDMmhbdSKhLArYJKJEPCBB SGOfG35CxvlE5PoH0GD/kwLditE6j1zcT6eylMzUE+bfxBKiRftvUQdM/IlsKeYAquvd k/62I5HZuurD02eN4ctFQrPMNJ23xLWBXVMHy/5Qg4r8pIHeQSfwCsjTKJWV33eJFkW4 6G47EgqHFoKr8ykHQti35qBUZrg4/KIn+c7uSMbIl/U9T/zAcvqlcBUK9nUcX5Yyu/8c gSJPViLkvCVkqz8bC2obYxjaLJZ+NArpRAPueTWP9QVxBKU3gNWt5wseG0LZdRdNFpnN L2AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=be3SGxKp; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 22si4048901edw.368.2020.10.30.04.15.32; Fri, 30 Oct 2020 04:15:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=be3SGxKp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726285AbgJ3LOS (ORCPT + 99 others); Fri, 30 Oct 2020 07:14:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbgJ3LOS (ORCPT ); Fri, 30 Oct 2020 07:14:18 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3485C0613D2; Fri, 30 Oct 2020 04:14:17 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id f38so4930876pgm.2; Fri, 30 Oct 2020 04:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uUTBDFmOSWVlaKR+HYll/Mm2JTPEYK62zLmX9e2jIkw=; b=be3SGxKphXCXjE/yixOIsSlam3IWe8pBDVli09iAQX0Xx7vvbuZvYA1MwUVSuuGAG2 ReqpGcjZLmvo7LCWtD7A3iLpxBgQXikQPcZ/VKJyDDXVmsXgl4pwSOfSwos0iIWIrn8l qH+i7FddMselQ+WhQ2KBJa+RQYBClT6ECNL0d69DnC2I59yPTwjVXclb04aJvvsuV89m dueqRk5wHQkBFAl5ElFh81Shmel/0EP56iU0GVSKModJv8XTXx8JpbW62ugPSDDoodNx xqT+bRxqcnZbJHvMVokTgetjEAfRbemAGolOg4uUrigw4Zgz3OL1Otto7KbhNPH9udAm K35w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uUTBDFmOSWVlaKR+HYll/Mm2JTPEYK62zLmX9e2jIkw=; b=N7vfglf68Qhsjqug52xBlUG39agjp6wWxTwdH9N54Lulb3oz6QmPyBLfTpmhXkUU4r gePrtdUHA8mzxfRHjDXedqfQAXRcrV7UyeRENyfN1CJVqJ/HxS15eutVJWNeSwMH75et EfjDpiOzwz+7ppRz1/hHn9SELjEjFXj/v+e83/zRFTf6K3pmnY34aBGjzSU/hWg7zGix kS5YmtGqTrhIQzJN/qMSOzk2ZetV45PrmDjVtz5GY8vpgDrNMpXe2P7SdtkcDWPPvS62 cN8tCwkBKjqNP7/HksFRKNKfmLdLkbVmiwNps4SxcKwhQbqLevQB7YY6jH3L5aadk1GE 2Jjg== X-Gm-Message-State: AOAM53011BLwFsHz0zR/rsL1ucAjVfqJr+ibY8ZNwn84XCWcbBMFtVBG qDbzYQ3DyaiKEPxXPCKzTP99S7lcX76hzsY0TNwfeKNwXk6vyw== X-Received: by 2002:a63:1e02:: with SMTP id e2mr1710264pge.74.1604056457509; Fri, 30 Oct 2020 04:14:17 -0700 (PDT) MIME-Version: 1.0 References: <1604026114-9038-1-git-send-email-zou_wei@huawei.com> In-Reply-To: <1604026114-9038-1-git-send-email-zou_wei@huawei.com> From: Andy Shevchenko Date: Fri, 30 Oct 2020 13:15:05 +0200 Message-ID: Subject: Re: [PATCH -next v2] platform/x86/dell-wmi-sysman: Make some symbols static To: Zou Wei Cc: Hans de Goede , Mark Gross , Platform Driver , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 30, 2020 at 4:38 AM Zou Wei wrote: > > 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? Above can be shrinked by removing the path. > Reported-by: Hulk Robot > Signed-off-by: Zou Wei > --- > v2: > - put all of them in a way that each occupies only a single line I meant the code, like > -struct kobj_attribute po_is_pass_set = > +static struct kobj_attribute po_is_pass_set = > __ATTR_RO(is_enabled); ==> static struct kobj_attribute po_is_pass_set = __ATTR_RO(is_enabled); -- With Best Regards, Andy Shevchenko