]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/tau: Add 'static' storage qualifier to 'tau_work' definition
authorFinn Thain <fthain@linux-m68k.org>
Thu, 19 Aug 2021 00:46:54 +0000 (10:46 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 20 Aug 2021 07:00:53 +0000 (17:00 +1000)
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
arch/powerpc/kernel/tau_6xx.c

index b9a047d92ec08fc75f0b4238d3f7a75d5a147da5..8e83d19fe8fa70b55657d3a6e874eb51b8cb3a2f 100644 (file)
@@ -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