[openeuler:OLK-5.10 2954/2954] fs/proc/base.c:1454:6: sparse: sparse: symbol 'pbha_bit0_hide_file' was not declared. Should it be static?

tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 90ff3e07cc268a8e40bd578dcc4907a3db419c52 commit: bea38841945a52bd03004240eb0da6a5115bae21 [2954/2954] arm64: mm: Hide pbha_bit0 in procfs if pbha is not enabled config: arm64-randconfig-r133-20250610 (https://download.01.org/0day-ci/archive/20250611/202506111322.Edx0vIZW-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.3.0 reproduce: (https://download.01.org/0day-ci/archive/20250611/202506111322.Edx0vIZW-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202506111322.Edx0vIZW-lkp@intel.com/ sparse warnings: (new ones prefixed by >>)
fs/proc/base.c:1454:6: sparse: sparse: symbol 'pbha_bit0_hide_file' was not declared. Should it be static? fs/proc/base.c:2471:25: sparse: sparse: cast to restricted fmode_t fs/proc/base.c:2528:42: sparse: sparse: cast from restricted fmode_t fs/proc/base.c:2625:48: sparse: sparse: cast from restricted fmode_t fs/proc/base.c: note: in included file (through include/linux/rcuwait.h, include/linux/percpu-rwsem.h, include/linux/fs.h, ...): include/linux/sched/signal.h:719:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@ include/linux/sched/signal.h:719:37: sparse: expected struct spinlock [usertype] *lock include/linux/sched/signal.h:719:37: sparse: got struct spinlock [noderef] __rcu * fs/proc/base.c:1126:36: sparse: sparse: context imbalance in '__set_oom_adj' - unexpected unlock
vim +/pbha_bit0_hide_file +1454 fs/proc/base.c 1453
1454 bool pbha_bit0_hide_file(const char *name) 1455 { 1456 if (!system_support_pbha_bit0() && !strncmp("pbha_bit0", name, 9)) 1457 return true; 1458 1459 return false; 1460 } 1461 #else 1462 static bool pbha_bit0_hide_file(const char *name) { return false; } 1463 #endif 1464
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot