* [palmer:for-next 71/73] drivers/firmware/efi/libstub/efi-stub-helper.c:825:23: warning: implicit declaration of function 'efi_get_kimg_min_align' is invalid in C99
@ 2023-04-28 1:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-28 1:26 UTC (permalink / raw)
To: Alexandre Ghiti; +Cc: llvm, oe-kbuild-all, Palmer Dabbelt
tree: https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git for-next
head: 6ea13757cbd6077ce0a7f54c80f9a75ec16e14d1
commit: 17e3193214a13b77e1ce3ec38d819904da2ab7a8 [71/73] arm64: libstub: Move KASLR handling functions to efi-stub-helper.c
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20230428/202304280914.JoGEqII1-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/palmer/linux.git/commit/?id=17e3193214a13b77e1ce3ec38d819904da2ab7a8
git remote add palmer https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git
git fetch --no-tags palmer for-next
git checkout 17e3193214a13b77e1ce3ec38d819904da2ab7a8
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/firmware/efi/libstub/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304280914.JoGEqII1-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/firmware/efi/libstub/efi-stub-helper.c:825:23: warning: implicit declaration of function 'efi_get_kimg_min_align' is invalid in C99 [-Wimplicit-function-declaration]
u64 min_kimg_align = efi_get_kimg_min_align();
^
drivers/firmware/efi/libstub/efi-stub-helper.c:868:2: warning: implicit declaration of function 'caches_clean_inval_pou' is invalid in C99 [-Wimplicit-function-declaration]
caches_clean_inval_pou(*image_addr, *image_addr + kernel_codesize);
^
2 warnings generated.
vim +/efi_get_kimg_min_align +825 drivers/firmware/efi/libstub/efi-stub-helper.c
799
800 /**
801 * efi_kaslr_relocate_kernel() - Relocate the kernel (random if KASLR enabled)
802 * @image_addr: Pointer to the current kernel location
803 * @reserve_addr: Pointer to the relocated kernel location
804 * @reserve_size: Size of the relocated kernel
805 * @kernel_size: Size of the text + data
806 * @kernel_codesize: Size of the text
807 * @kernel_memsize: Size of the text + data + bss
808 * @phys_seed: Random seed used for the relocation
809 *
810 * If KASLR is not enabled, this function relocates the kernel to a fixed
811 * address (or leave it as its current location). If KASLR is enabled, the
812 * kernel physical location is randomized using the seed in parameter.
813 *
814 * Return: status code, EFI_SUCCESS if relocation is successful
815 */
816 efi_status_t efi_kaslr_relocate_kernel(unsigned long *image_addr,
817 unsigned long *reserve_addr,
818 unsigned long *reserve_size,
819 unsigned long kernel_size,
820 unsigned long kernel_codesize,
821 unsigned long kernel_memsize,
822 u32 phys_seed)
823 {
824 efi_status_t status;
> 825 u64 min_kimg_align = efi_get_kimg_min_align();
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-28 1:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-28 1:26 [palmer:for-next 71/73] drivers/firmware/efi/libstub/efi-stub-helper.c:825:23: warning: implicit declaration of function 'efi_get_kimg_min_align' is invalid in C99 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).