All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:ksyms-tune 5/6] scripts/kallsyms.c:49:27: warning: variable '_text' set but not used
@ 2026-09-14 10:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-14 10:55 UTC (permalink / raw)
  To: Jim Cromie,  Łukasz Bartosik; +Cc: oe-kbuild-all

tree:   https://github.com/jimc/linux.git ksyms-tune
head:   bc5ee628d6230f6c491f1b868aa7a201bf2ee513
commit: 06196ddaa223ca1846bf133c6c24e1db2a82a962 [5/6] kallsyms: Pack symbols into fixed-length buckets to drop length prefixes
config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20260914/202609141829.cQCchGgp-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 148ee2b266b73a49f1f31d0bd17d4818b91bee9f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260914/202609141829.cQCchGgp-lkp@intel.com/reproduce)

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/202609141829.cQCchGgp-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> scripts/kallsyms.c:49:27: warning: variable '_text' set but not used [-Wunused-but-set-global]
      49 | static unsigned long long _text;
         |                           ^
   1 warning generated.
   arch/riscv/kernel/vdso/vdso.so.dbg: dynamic relocations are not supported
   make[3]: *** [arch/riscv/kernel/vdso/Makefile:78: arch/riscv/kernel/vdso/vdso.so.dbg] Error 1
   make[3]: Target 'include/generated/vdso-offsets.h' not remade because of errors.
   make[2]: *** [arch/riscv/Makefile:156: vdso_prepare] Error 2
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:248: __sub-make] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:248: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/_text +49 scripts/kallsyms.c

17b1f0de79dbdf Mike Frysinger 2009-06-08  48  
17b1f0de79dbdf Mike Frysinger 2009-06-08 @49  static unsigned long long _text;
78eb71594b3265 Kees Cook      2014-03-17  50  static struct addr_range text_ranges[] = {
17b1f0de79dbdf Mike Frysinger 2009-06-08  51  	{ "_stext",     "_etext"     },
17b1f0de79dbdf Mike Frysinger 2009-06-08  52  	{ "_sinittext", "_einittext" },
17b1f0de79dbdf Mike Frysinger 2009-06-08  53  };
17b1f0de79dbdf Mike Frysinger 2009-06-08  54  #define text_range_text     (&text_ranges[0])
17b1f0de79dbdf Mike Frysinger 2009-06-08  55  #define text_range_inittext (&text_ranges[1])
17b1f0de79dbdf Mike Frysinger 2009-06-08  56  

:::::: The code at line 49 was first introduced by commit
:::::: 17b1f0de79dbdf5cfb2686b63a7fb9ecc440da7c kallsyms: generalize text region handling

:::::: TO: Mike Frysinger <vapier@gentoo.org>
:::::: CC: Sam Ravnborg <sam@ravnborg.org>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-14 10:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-14 10:55 [jimc:ksyms-tune 5/6] scripts/kallsyms.c:49:27: warning: variable '_text' set but not used 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.