diff options
author | Finn Thain <fthain@linux-m68k.org> | 2021-08-19 10:46:54 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-08-20 17:00:53 +1000 |
commit | 6cd717fe9b3a787f8e8f9d0bc9b7634a9c104b3e (patch) | |
tree | 915cd3d4aa1d74ec13cf86a178f4483ec57611d7 | |
parent | c26d4c5d4f0df7207da3975458261927f9305465 (diff) | |
download | linux-stable-6cd717fe9b3a787f8e8f9d0bc9b7634a9c104b3e.tar.gz linux-stable-6cd717fe9b3a787f8e8f9d0bc9b7634a9c104b3e.tar.bz2 linux-stable-6cd717fe9b3a787f8e8f9d0bc9b7634a9c104b3e.zip |
powerpc/tau: Add 'static' storage qualifier to 'tau_work' definition
This patch prevents the following sparse warning.
arch/powerpc/kernel/tau_6xx.c:199:1: sparse: sparse: symbol 'tau_work'
was not declared. Should it be static?
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/44ab381741916a51e783c4a50d0b186abdd8f280.1629334014.git.fthain@linux-m68k.org
-rw-r--r-- | arch/powerpc/kernel/tau_6xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/tau_6xx.c b/arch/powerpc/kernel/tau_6xx.c index b9a047d92ec0..8e83d19fe8fa 100644 --- a/arch/powerpc/kernel/tau_6xx.c +++ b/arch/powerpc/kernel/tau_6xx.c @@ -164,7 +164,7 @@ static void tau_work_func(struct work_struct *work) queue_work(tau_workq, work); } -DECLARE_WORK(tau_work, tau_work_func); +static DECLARE_WORK(tau_work, tau_work_func); /* * setup the TAU |