Re: [PATCH] x86/boot/compressed: make error() take const char *

From: kernel test robot

Date: Wed Feb 18 2026 - 17:00:17 EST


Hi Reda,

kernel test robot noticed the following build errors:

[auto build test ERROR on tip/x86/core]
[also build test ERROR on tip/master linus/master v6.19 next-20260218]
[cannot apply to tip/auto-latest]
[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/Reda-CHERKAOUI/x86-boot-compressed-make-error-take-const-char/20260219-000605
base: tip/x86/core
patch link: https://lore.kernel.org/r/20260218160319.31884-1-redacherkaoui67%40gmail.com
patch subject: [PATCH] x86/boot/compressed: make error() take const char *
config: i386-allnoconfig (https://download.01.org/0day-ci/archive/20260219/202602190529.eucRnnqd-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260219/202602190529.eucRnnqd-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/202602190529.eucRnnqd-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

arch/x86/boot/compressed/misc.c: In function 'extract_kernel':
>> arch/x86/boot/compressed/misc.c:521:61: error: passing argument 3 of 'decompress_kernel' from incompatible pointer type [-Wincompatible-pointer-types]
521 | entry_offset = decompress_kernel(output, virt_addr, error);
| ^~~~~
| |
| __attribute__((noreturn)) void (*)(const char *)
arch/x86/boot/compressed/misc.c:345:40: note: expected 'void (*)(char *)' but argument is of type '__attribute__((noreturn)) void (*)(const char *)'
345 | void (*error)(char *x))
| ~~~~~~~^~~~~~~~~~~~~~~


vim +/decompress_kernel +521 arch/x86/boot/compressed/misc.c

^1da177e4c3f41 arch/i386/boot/compressed/misc.c Linus Torvalds 2005-04-16 513
e605a425975b07 arch/x86/boot/compressed/misc.c Joe Millenbach 2012-07-19 514 debug_putstr("\nDecompressing Linux... ");
3fd1239a783522 arch/x86/boot/compressed/misc.c Kiryl Shutsemau 2023-06-06 515
3fd1239a783522 arch/x86/boot/compressed/misc.c Kiryl Shutsemau 2023-06-06 516 if (init_unaccepted_memory()) {
3fd1239a783522 arch/x86/boot/compressed/misc.c Kiryl Shutsemau 2023-06-06 517 debug_putstr("Accepting memory... ");
5adfeaecc487e7 arch/x86/boot/compressed/misc.c Kiryl Shutsemau 2024-08-09 518 accept_memory(__pa(output), needed_size);
3fd1239a783522 arch/x86/boot/compressed/misc.c Kiryl Shutsemau 2023-06-06 519 }
3fd1239a783522 arch/x86/boot/compressed/misc.c Kiryl Shutsemau 2023-06-06 520
83381519352d6b arch/x86/boot/compressed/misc.c Ard Biesheuvel 2023-08-07 @521 entry_offset = decompress_kernel(output, virt_addr, error);

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