[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202401252355.5NfsqG3G-lkp@intel.com>
Date: Thu, 25 Jan 2024 23:21:22 +0800
From: kernel test robot <lkp@...el.com>
To: Alexey Brodkin <abrodkin@...opsys.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-snps-arc@...ts.infradead.org,
Vineet Gupta <vgupta@...opsys.com>
Subject: arch/arc/kernel/devtree.c:64:23: warning: variable 'dt_root' set but
not used
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6098d87eaf31f48153c984e2adadf14762520a87
commit: 6e9318d1be83714e004a0ac795a936df4d2bed3e ARC: RIP arc_{get|set}_core_freq() clk API
date: 8 years ago
config: arc-allnoconfig (https://download.01.org/0day-ci/archive/20240125/202401252355.5NfsqG3G-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240125/202401252355.5NfsqG3G-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401252355.5NfsqG3G-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:11,
from include/asm-generic/bug.h:13,
from arch/arc/include/asm/bug.h:31,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from include/asm-generic/current.h:4,
from arch/arc/include/asm/current.h:23,
from include/linux/mutex.h:13,
from include/linux/notifier.h:13,
from include/linux/reboot.h:5,
from arch/arc/kernel/devtree.c:13:
include/linux/log2.h:22:1: warning: ignoring attribute 'noreturn' because it conflicts with attribute 'const' [-Wattributes]
22 | int ____ilog2_NaN(void);
| ^~~
arch/arc/kernel/devtree.c: In function 'setup_machine_fdt':
>> arch/arc/kernel/devtree.c:64:23: warning: variable 'dt_root' set but not used [-Wunused-but-set-variable]
64 | unsigned long dt_root;
| ^~~~~~~
vim +/dt_root +64 arch/arc/kernel/devtree.c
880beb8807814c Rob Herring 2013-08-27 53
999159a5381bff Vineet Gupta 2013-01-22 54 /**
999159a5381bff Vineet Gupta 2013-01-22 55 * setup_machine_fdt - Machine setup when an dtb was passed to the kernel
999159a5381bff Vineet Gupta 2013-01-22 56 * @dt: virtual address pointer to dt blob
999159a5381bff Vineet Gupta 2013-01-22 57 *
999159a5381bff Vineet Gupta 2013-01-22 58 * If a dtb was passed to the kernel, then use it to choose the correct
999159a5381bff Vineet Gupta 2013-01-22 59 * machine_desc and to setup the system.
999159a5381bff Vineet Gupta 2013-01-22 60 */
880beb8807814c Rob Herring 2013-08-27 61 const struct machine_desc * __init setup_machine_fdt(void *dt)
999159a5381bff Vineet Gupta 2013-01-22 62 {
880beb8807814c Rob Herring 2013-08-27 63 const struct machine_desc *mdesc;
999159a5381bff Vineet Gupta 2013-01-22 @64 unsigned long dt_root;
:::::: The code at line 64 was first introduced by commit
:::::: 999159a5381bff3bd6f688c5d20fbec9d8789e53 ARC: [DeviceTree] Basic support
:::::: TO: Vineet Gupta <vgupta@...opsys.com>
:::::: CC: Vineet Gupta <vgupta@...opsys.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists