* arch/arc/kernel/devtree.c:64:23: warning: variable 'dt_root' set but not used
@ 2024-01-25 15:21 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-25 15:21 UTC (permalink / raw)
To: Alexey Brodkin; +Cc: oe-kbuild-all, linux-kernel, linux-snps-arc, Vineet Gupta
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@intel.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@synopsys.com>
:::::: CC: Vineet Gupta <vgupta@synopsys.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-25 15:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-25 15:21 arch/arc/kernel/devtree.c:64:23: 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;
as well as URLs for NNTP newsgroup(s).