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]

base: next-20240209
patch link:
patch subject: [PATCH v2 35/35] include: remove lots of unnecessary <linux/kernel.h> includes
config: alpha-allnoconfig (
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (

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:

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