* [mhiramat:bootconfig/core 1/3] init/main.c:471:36: error: too many arguments to function call, expected single argument '_size', have 2 arguments
@ 2022-03-13 11:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-13 11:09 UTC (permalink / raw)
To: Masami Hiramatsu; +Cc: llvm, kbuild-all, linux-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git bootconfig/core
head: 851eb04a13868ed61bd973f38e4fa9d741eef92e
commit: 5698b97b8004472839e402af5b4abbbf73755772 [1/3] bootconfig: Check the checksum before removing the bootconfig from initrd
config: hexagon-randconfig-r041-20220313 (https://download.01.org/0day-ci/archive/20220313/202203131946.cvmwTGeZ-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0467eb2cb7654c15ae366967ef35093c5724c416)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git/commit/?id=5698b97b8004472839e402af5b4abbbf73755772
git remote add mhiramat https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git
git fetch --no-tags mhiramat bootconfig/core
git checkout 5698b97b8004472839e402af5b4abbbf73755772
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> init/main.c:471:36: error: too many arguments to function call, expected single argument '_size', have 2 arguments
get_boot_config_from_initrd(NULL, NULL);
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
init/main.c:315:22: note: 'get_boot_config_from_initrd' declared here
static void * __init get_boot_config_from_initrd(u32 *_size)
^
init/main.c:766:20: warning: no previous prototype for function 'arch_post_acpi_subsys_init' [-Wmissing-prototypes]
void __init __weak arch_post_acpi_subsys_init(void) { }
^
init/main.c:766:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init __weak arch_post_acpi_subsys_init(void) { }
^
static
init/main.c:778:20: warning: no previous prototype for function 'mem_encrypt_init' [-Wmissing-prototypes]
void __init __weak mem_encrypt_init(void) { }
^
init/main.c:778:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init __weak mem_encrypt_init(void) { }
^
static
init/main.c:780:20: warning: no previous prototype for function 'poking_init' [-Wmissing-prototypes]
void __init __weak poking_init(void) { }
^
init/main.c:780:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init __weak poking_init(void) { }
^
static
3 warnings and 1 error generated.
vim +/_size +471 init/main.c
de462e5f107185 Masami Hiramatsu 2020-04-26 467
2b7d2fe76f9c84 Cao jin 2021-03-11 468 static void __init setup_boot_config(void)
de462e5f107185 Masami Hiramatsu 2020-04-26 469 {
de462e5f107185 Masami Hiramatsu 2020-04-26 470 /* Remove bootconfig data from initrd */
de462e5f107185 Masami Hiramatsu 2020-04-26 @471 get_boot_config_from_initrd(NULL, NULL);
de462e5f107185 Masami Hiramatsu 2020-04-26 472 }
d8a953ddde5ec3 Masami Hiramatsu 2020-02-20 473
:::::: The code at line 471 was first introduced by commit
:::::: de462e5f10718517bacf2f84c8aa2804567ef7df bootconfig: Fix to remove bootconfig data from initrd while boot
:::::: TO: Masami Hiramatsu <mhiramat@kernel.org>
:::::: CC: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-13 11:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-13 11:09 [mhiramat:bootconfig/core 1/3] init/main.c:471:36: error: too many arguments to function call, expected single argument '_size', have 2 arguments kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.