From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751341AbdH2Gbd (ORCPT ); Tue, 29 Aug 2017 02:31:33 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:15009 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbdH2Gbc (ORCPT ); Tue, 29 Aug 2017 02:31:32 -0400 Subject: Re: [PATCH] misc: pci_endpoint_test: make boolean no_msi static To: Colin King , Arnd Bergmann , Greg Kroah-Hartman , , Bjorn Helgaas References: <20170823094752.26962-1-colin.king@canonical.com> CC: , From: Kishon Vijay Abraham I Message-ID: Date: Tue, 29 Aug 2017 12:01:22 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170823094752.26962-1-colin.king@canonical.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On Wednesday 23 August 2017 03:17 PM, Colin King wrote: > From: Colin Ian King > > The boolean no_msi is local to the source and does not need to be in > global scope, so make it static. > > Cleans up sparse warning: > symbol 'no_msi' was not declared. Should it be static? > > Signed-off-by: Colin Ian King Can you pick this one also? Acked-by: Kishon Vijay Abraham I Thanks Kishon > --- > drivers/misc/pci_endpoint_test.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c > index 1f64d943794d..deb203026496 100644 > --- a/drivers/misc/pci_endpoint_test.c > +++ b/drivers/misc/pci_endpoint_test.c > @@ -73,7 +73,7 @@ static DEFINE_IDA(pci_endpoint_test_ida); > #define to_endpoint_test(priv) container_of((priv), struct pci_endpoint_test, \ > miscdev) > > -bool no_msi; > +static bool no_msi; > module_param(no_msi, bool, 0444); > MODULE_PARM_DESC(no_msi, "Disable MSI interrupt in pci_endpoint_test"); > >