All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Jim Cromie" <jim.cromie@gmail.com>,
	" Łukasz Bartosik" <ukaszb@chromium.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jimc:ksyms-tune 5/6] scripts/kallsyms.c:49:27: warning: variable '_text' set but not used
Date: Mon, 14 Sep 2026 18:55:10 +0800	[thread overview]
Message-ID: <202609141829.cQCchGgp-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-09-14 10:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202609141829.cQCchGgp-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jim.cromie@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ukaszb@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.