[tip:x86/cleanups 1/2] arch/arm/include/asm/efi.h:70:20: error: static declaration of 'efifb_setup_from_dmi' follows non-static declaration

From: kbuild test robot
Date: Thu Nov 22 2018 - 07:33:47 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cleanups
head: c382986fe178d02abdfcd6f4e7b9783c2922872c
commit: d37904c5b14317a2c76efec6b9e4dbcaa17380e5 [1/2] x86/headers: Fix -Wmissing-prototypes warning
config: arm-multi_v4t_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d37904c5b14317a2c76efec6b9e4dbcaa17380e5
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm

All errors (new ones prefixed by >>):

In file included from arch/arm/kernel/setup.c:39:0:
>> arch/arm/include/asm/efi.h:70:20: error: static declaration of 'efifb_setup_from_dmi' follows non-static declaration
static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt)
^~~~~~~~~~~~~~~~~~~~
In file included from arch/arm/kernel/setup.c:10:0:
include/linux/efi.h:1056:13: note: previous declaration of 'efifb_setup_from_dmi' was here
extern void efifb_setup_from_dmi(struct screen_info *si, const char *opt);
^~~~~~~~~~~~~~~~~~~~

vim +/efifb_setup_from_dmi +70 arch/arm/include/asm/efi.h

801820be Ard Biesheuvel 2016-04-25 69
9822504c Ard Biesheuvel 2016-04-25 @70 static inline void efifb_setup_from_dmi(struct screen_info *si, const char *opt)
9822504c Ard Biesheuvel 2016-04-25 71 {
9822504c Ard Biesheuvel 2016-04-25 72 }
9822504c Ard Biesheuvel 2016-04-25 73

:::::: The code at line 70 was first introduced by commit
:::::: 9822504c1fa5c557ea8776765f03fd16eb4de4c9 efifb: Enable the efi-framebuffer platform driver for ARM and arm64

:::::: TO: Ard Biesheuvel <ard.biesheuvel@xxxxxxxxxx>
:::::: CC: Ingo Molnar <mingo@xxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip