All of lore.kernel.org
 help / color / mirror / Atom feed
* [morse:mpam/snapshot/v5.15 46/139] arch/x86/kernel/cpu/resctrl/core.c:34:1: sparse: sparse: symbol 'domain_list_lock' was not declared. Should it be static?
@ 2021-11-18  0:24 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-11-18  0:24 UTC (permalink / raw)
  To: James Morse; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1397 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.15
head:   ce3629841262f725a5f3a327403fcaf0e604a85e
commit: 63dc771f72401f998123fca77456c2ef652f1fa6 [46/139] x86/resctrl: Split arch and fs resctrl locks
config: i386-randconfig-s002-20211116 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?id=63dc771f72401f998123fca77456c2ef652f1fa6
        git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
        git fetch --no-tags morse mpam/snapshot/v5.15
        git checkout 63dc771f72401f998123fca77456c2ef652f1fa6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/resctrl/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> arch/x86/kernel/cpu/resctrl/core.c:34:1: sparse: sparse: symbol 'domain_list_lock' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35176 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [morse:mpam/snapshot/v5.15 46/139] arch/x86/kernel/cpu/resctrl/core.c:34:1: sparse: sparse: symbol 'domain_list_lock' was not declared. Should it be static?
@ 2021-11-18  0:24 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-11-18  0:24 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.15
head:   ce3629841262f725a5f3a327403fcaf0e604a85e
commit: 63dc771f72401f998123fca77456c2ef652f1fa6 [46/139] x86/resctrl: Split arch and fs resctrl locks
config: i386-randconfig-s002-20211116 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?id=63dc771f72401f998123fca77456c2ef652f1fa6
        git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
        git fetch --no-tags morse mpam/snapshot/v5.15
        git checkout 63dc771f72401f998123fca77456c2ef652f1fa6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/resctrl/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> arch/x86/kernel/cpu/resctrl/core.c:34:1: sparse: sparse: symbol 'domain_list_lock' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35176 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [RFC PATCH morse] x86/resctrl: domain_list_lock can be static
  2021-11-18  0:24 ` kernel test robot
@ 2021-11-18  0:25   ` kernel test robot
  -1 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-11-18  0:25 UTC (permalink / raw)
  To: James Morse; +Cc: kbuild-all, linux-kernel

arch/x86/kernel/cpu/resctrl/core.c:34:1: warning: symbol 'domain_list_lock' was not declared. Should it be static?

Fixes: 63dc771f7240 ("x86/resctrl: Split arch and fs resctrl locks")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
 core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c
index ae5d9e2d20b3b2..439078c4a676b3 100644
--- a/arch/x86/kernel/cpu/resctrl/core.c
+++ b/arch/x86/kernel/cpu/resctrl/core.c
@@ -31,7 +31,7 @@
  * The rdt_resource's domain list is updated when this happens. The domain
  * list is protected by cpuhp as a rwlock, writers also take this mutex.
  */
-DEFINE_MUTEX(domain_list_lock);
+static DEFINE_MUTEX(domain_list_lock);
 
 /*
  * The cached resctrl_pqr_state is strictly per CPU and can never be

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [RFC PATCH morse] x86/resctrl: domain_list_lock can be static
@ 2021-11-18  0:25   ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-11-18  0:25 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 904 bytes --]

arch/x86/kernel/cpu/resctrl/core.c:34:1: warning: symbol 'domain_list_lock' was not declared. Should it be static?

Fixes: 63dc771f7240 ("x86/resctrl: Split arch and fs resctrl locks")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
 core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c
index ae5d9e2d20b3b2..439078c4a676b3 100644
--- a/arch/x86/kernel/cpu/resctrl/core.c
+++ b/arch/x86/kernel/cpu/resctrl/core.c
@@ -31,7 +31,7 @@
  * The rdt_resource's domain list is updated when this happens. The domain
  * list is protected by cpuhp as a rwlock, writers also take this mutex.
  */
-DEFINE_MUTEX(domain_list_lock);
+static DEFINE_MUTEX(domain_list_lock);
 
 /*
  * The cached resctrl_pqr_state is strictly per CPU and can never be

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-18  0:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-18  0:24 [morse:mpam/snapshot/v5.15 46/139] arch/x86/kernel/cpu/resctrl/core.c:34:1: sparse: sparse: symbol 'domain_list_lock' was not declared. Should it be static? kernel test robot
2021-11-18  0:24 ` kernel test robot
2021-11-18  0:25 ` [RFC PATCH morse] x86/resctrl: domain_list_lock can be static kernel test robot
2021-11-18  0:25   ` kernel test robot

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.