From: YueHaibing <yuehaibing@huawei.com> To: Benjamin Herrenschmidt <benh@kernel.crashing.org>, Paul Mackerras <paulus@samba.org>, Michael Ellerman <mpe@ellerman.id.au>, Masahiro Yamada <yamada.masahiro@socionext.com>, Aravinda Prasad <aravinda@linux.vnet.ibm.com>, Alexey Kardashevskiy <aik@ozlabs.ru>, "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>, Laurent Dufour <ldufour@linux.vnet.ibm.com> Cc: YueHaibing <yuehaibing@huawei.com>, <linuxppc-dev@lists.ozlabs.org>, <linux-kernel@vger.kernel.org>, <kernel-janitors@vger.kernel.org> Subject: [PATCH -next] powerpc/pseries: Drop pointless static qualifier in vpa_debugfs_init() Date: Mon, 18 Feb 2019 12:56:44 +0000 [thread overview] Message-ID: <20190218125644.87448-1-yuehaibing@huawei.com> (raw) There is no need to have the 'struct dentry *vpa_dir' variable static since new value always be assigned before use it. Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- arch/powerpc/platforms/pseries/lpar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index f2a9f0adc2d3..f649c1b652eb 100644 --- a/arch/powerpc/platforms/pseries/lpar.c +++ b/arch/powerpc/platforms/pseries/lpar.c @@ -1263,7 +1263,7 @@ static int __init vpa_debugfs_init(void) { char name[16]; long i; - static struct dentry *vpa_dir; + struct dentry *vpa_dir; if (!firmware_has_feature(FW_FEATURE_SPLPAR)) return 0;
WARNING: multiple messages have this Message-ID (diff)
From: YueHaibing <yuehaibing@huawei.com> To: Benjamin Herrenschmidt <benh@kernel.crashing.org>, Paul Mackerras <paulus@samba.org>, Michael Ellerman <mpe@ellerman.id.au>, Masahiro Yamada <yamada.masahiro@socionext.com>, Aravinda Prasad <aravinda@linux.vnet.ibm.com>, Alexey Kardashevskiy <aik@ozlabs.ru>, "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>, Laurent Dufour <ldufour@linux.vnet.ibm.com> Cc: linuxppc-dev@lists.ozlabs.org, kernel-janitors@vger.kernel.org, YueHaibing <yuehaibing@huawei.com>, linux-kernel@vger.kernel.org Subject: [PATCH -next] powerpc/pseries: Drop pointless static qualifier in vpa_debugfs_init() Date: Mon, 18 Feb 2019 12:56:44 +0000 [thread overview] Message-ID: <20190218125644.87448-1-yuehaibing@huawei.com> (raw) There is no need to have the 'struct dentry *vpa_dir' variable static since new value always be assigned before use it. Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- arch/powerpc/platforms/pseries/lpar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index f2a9f0adc2d3..f649c1b652eb 100644 --- a/arch/powerpc/platforms/pseries/lpar.c +++ b/arch/powerpc/platforms/pseries/lpar.c @@ -1263,7 +1263,7 @@ static int __init vpa_debugfs_init(void) { char name[16]; long i; - static struct dentry *vpa_dir; + struct dentry *vpa_dir; if (!firmware_has_feature(FW_FEATURE_SPLPAR)) return 0;
next reply other threads:[~2019-02-18 12:43 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-02-18 12:56 YueHaibing [this message] 2019-02-18 12:56 ` [PATCH -next] powerpc/pseries: Drop pointless static qualifier in vpa_debugfs_init() YueHaibing 2019-02-19 3:47 ` Daniel Axtens 2019-02-19 3:47 ` Daniel Axtens 2019-02-19 3:47 ` Daniel Axtens 2019-11-14 9:08 ` Michael Ellerman 2019-11-14 9:08 ` Michael Ellerman 2019-11-14 9:08 ` Michael Ellerman
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190218125644.87448-1-yuehaibing@huawei.com \ --to=yuehaibing@huawei.com \ --cc=aik@ozlabs.ru \ --cc=aneesh.kumar@linux.ibm.com \ --cc=aravinda@linux.vnet.ibm.com \ --cc=benh@kernel.crashing.org \ --cc=kernel-janitors@vger.kernel.org \ --cc=ldufour@linux.vnet.ibm.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linuxppc-dev@lists.ozlabs.org \ --cc=mpe@ellerman.id.au \ --cc=paulus@samba.org \ --cc=yamada.masahiro@socionext.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.