public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [bcain:bcain/boot_qemu 26/38] arch/hexagon/kernel/devtree.c:107:16: warning: variable 'dt_root' set but not used
@ 2026-01-28 11:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-28 11:36 UTC (permalink / raw)
  To: Richard Kuo; +Cc: llvm, oe-kbuild-all, Brian Cain

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git bcain/boot_qemu
head:   6dd00eeb9163d38cdab8b12c40702a711f04a9ab
commit: c03d45c08b8a1046b1502fc07d0a7145fc2fb5b8 [26/38] hexagon: add memory management enhancements
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260128/202601281908.ysa4xy7M-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260128/202601281908.ysa4xy7M-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/202601281908.ysa4xy7M-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/hexagon/kernel/devtree.c:50:44: error: incompatible pointer types passing 'unsigned long *' to parameter of type 'int *' [-Werror,-Wincompatible-pointer-types]
      50 |         p = of_get_flat_dt_prop(node, "bootargs", &l);
         |                                                   ^~
   include/linux/of_fdt.h:57:17: note: passing argument to parameter 'size' here
      57 |                                        int *size);
         |                                             ^
   arch/hexagon/kernel/devtree.c:50:4: error: assigning to 'char *' from 'const void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
      50 |         p = of_get_flat_dt_prop(node, "bootargs", &l);
         |           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/hexagon/kernel/devtree.c:107:16: warning: variable 'dt_root' set but not used [-Wunused-but-set-variable]
     107 |         unsigned long dt_root;
         |                       ^
   1 warning and 2 errors generated.


vim +/dt_root +107 arch/hexagon/kernel/devtree.c

1732d55bf9016e Brian Cain  2026-01-24   89  
57d9a292755c80 Richard Kuo 2025-08-18   90  /*
57d9a292755c80 Richard Kuo 2025-08-18   91   * setup_machine_fdt - set up machine based on dtb passed to kernel
57d9a292755c80 Richard Kuo 2025-08-18   92   * @dt_phys: physical address of dtb
57d9a292755c80 Richard Kuo 2025-08-18   93   *
57d9a292755c80 Richard Kuo 2025-08-18   94   * Sets up some of the earliest stuff -- setting the machine type,
57d9a292755c80 Richard Kuo 2025-08-18   95   * pulling the command line options, and finding the memory.
57d9a292755c80 Richard Kuo 2025-08-18   96   *
57d9a292755c80 Richard Kuo 2025-08-18   97   * Since we're calling this from setup_arch, this is going to happen
57d9a292755c80 Richard Kuo 2025-08-18   98   * very, very early.  Prior to even the bootmem being set up in the
57d9a292755c80 Richard Kuo 2025-08-18   99   * old scheme I think.
57d9a292755c80 Richard Kuo 2025-08-18  100   *
57d9a292755c80 Richard Kuo 2025-08-18  101   * Also since we're always being fired up by the hypervisor, then
57d9a292755c80 Richard Kuo 2025-08-18  102   * we are already running with the MMU on with an init segtable.
57d9a292755c80 Richard Kuo 2025-08-18  103   */
1732d55bf9016e Brian Cain  2026-01-24  104  const struct machine_desc * __init setup_machine_fdt(void *dt_phys)
57d9a292755c80 Richard Kuo 2025-08-18  105  {
1732d55bf9016e Brian Cain  2026-01-24  106  	const struct machine_desc *mdesc_best = NULL;
57d9a292755c80 Richard Kuo 2025-08-18 @107  	unsigned long dt_root;
57d9a292755c80 Richard Kuo 2025-08-18  108  

:::::: The code at line 107 was first introduced by commit
:::::: 57d9a292755c8023e31bdefe25e21f0c9837db51 hexagon: add device tree support

:::::: TO: Richard Kuo <rkuo@quicinc.com>
:::::: CC: Brian Cain <brian.cain@oss.qualcomm.com>

-- 
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-01-28 11:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-28 11:36 [bcain:bcain/boot_qemu 26/38] arch/hexagon/kernel/devtree.c:107:16: warning: variable 'dt_root' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox