thermal_nl.h:6:10: fatal error: netlink/netlink.h: No such file or directory

From: kernel test robot
Date: Fri Dec 01 2023 - 11:40:35 EST


Hi Daniel,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 994d5c58e50e91bb02c7be4a91d5186292a895c8
commit: 47c4b0de080adc125526aa80221c4e3ffbf97b6d tools/lib/thermal: Add a thermal library
date: 1 year, 6 months ago
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231202/202312020048.s8WRhwlF-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312020048.s8WRhwlF-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from events.c:10:
>> thermal_nl.h:6:10: fatal error: netlink/netlink.h: No such file or directory
6 | #include <netlink/netlink.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [tools/build/Makefile.build:97: tools/lib/thermal/events.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from thermal_nl.c:9:
>> thermal_nl.h:6:10: fatal error: netlink/netlink.h: No such file or directory
6 | #include <netlink/netlink.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [tools/build/Makefile.build:97: tools/lib/thermal/thermal_nl.o] Error 1
In file included from commands.c:10:
>> thermal_nl.h:6:10: fatal error: netlink/netlink.h: No such file or directory
6 | #include <netlink/netlink.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [tools/build/Makefile.build:97: tools/lib/thermal/commands.o] Error 1
make[3]: *** [Makefile:105: tools/lib/thermal/libthermal-in.o] Error 2
make[2]: *** [Makefile:120: all] Error 2

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