Re: [PATCH v2 35/35] include: remove lots of unnecessary <linux/kernel.h> includes

From: kernel test robot
Date: Sat Feb 10 2024 - 07:27:30 EST


Hi Max,

kernel test robot noticed the following build errors:

[auto build test ERROR on next-20240209]
[cannot apply to drm-misc/drm-misc-next media-tree/master mkp-scsi/for-next linus/master v6.8-rc3 v6.8-rc2 v6.8-rc1 v6.8-rc3]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Max-Kellermann/include-add-missing-includes/20240210-005417
base: next-20240209
patch link: https://lore.kernel.org/r/20240209164027.2582906-36-max.kellermann%40ionos.com
patch subject: [PATCH v2 35/35] include: remove lots of unnecessary <linux/kernel.h> includes
config: alpha-allnoconfig (https://download.01.org/0day-ci/archive/20240210/202402102041.qUqvmKVs-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240210/202402102041.qUqvmKVs-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/202402102041.qUqvmKVs-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

lib/flex_proportions.c: In function 'fprop_reflect_period_percpu':
>> lib/flex_proportions.c:92:26: error: implicit declaration of function 'ilog2' [-Werror=implicit-function-declaration]
92 | #define PROP_BATCH (8*(1+ilog2(nr_cpu_ids)))
| ^~~~~
lib/flex_proportions.c:130:41: note: in expansion of macro 'PROP_BATCH'
130 | if (val < (nr_cpu_ids * PROP_BATCH))
| ^~~~~~~~~~
cc1: some warnings being treated as errors


vim +/ilog2 +92 lib/flex_proportions.c

f3109a51f8dc88 Jan Kara 2012-05-24 88
f3109a51f8dc88 Jan Kara 2012-05-24 89 /*
f3109a51f8dc88 Jan Kara 2012-05-24 90 * ---- PERCPU ----
f3109a51f8dc88 Jan Kara 2012-05-24 91 */
f3109a51f8dc88 Jan Kara 2012-05-24 @92 #define PROP_BATCH (8*(1+ilog2(nr_cpu_ids)))
f3109a51f8dc88 Jan Kara 2012-05-24 93

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