* [djiang:cxl-qtg 7/30] include/linux/acpi.h:1535:49: error: declaration of 'struct acpi_subtable_proc' will not be visible outside of this function
@ 2023-05-12 2:38 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-12 2:38 UTC (permalink / raw)
To: Dave Jiang; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git cxl-qtg
head: fd35584ec7147f575dcdc65239bc8ac7fe340ab4
commit: 216b67abb7e235c9a13ddf78f428cccf11a089f4 [7/30] acpi: move common tables helper functions to common lib
config: powerpc-buildonly-randconfig-r003-20230509 (https://download.01.org/0day-ci/archive/20230512/202305121056.ixgdRdsG-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)
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
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git/commit/?id=216b67abb7e235c9a13ddf78f428cccf11a089f4
git remote add djiang https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git
git fetch --no-tags djiang cxl-qtg
git checkout 216b67abb7e235c9a13ddf78f428cccf11a089f4
# 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=powerpc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/kernel/ drivers/hid/i2c-hid/
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/202305121056.ixgdRdsG-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from arch/powerpc/kernel/traps.c:32:
In file included from include/linux/backlight.h:13:
In file included from include/linux/fb.h:7:
In file included from include/uapi/linux/fb.h:6:
In file included from include/linux/i2c.h:13:
>> include/linux/acpi.h:1535:49: error: declaration of 'struct acpi_subtable_proc' will not be visible outside of this function [-Werror,-Wvisibility]
struct acpi_table_header *table_header, struct acpi_subtable_proc *proc,
^
arch/powerpc/kernel/traps.c:1440:5: error: no previous prototype for function 'is_valid_bugaddr' [-Werror,-Wmissing-prototypes]
int is_valid_bugaddr(unsigned long addr)
^
arch/powerpc/kernel/traps.c:1440:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int is_valid_bugaddr(unsigned long addr)
^
static
2 errors generated.
--
In file included from drivers/hid/i2c-hid/i2c-hid-core.c:22:
In file included from include/linux/i2c.h:13:
>> include/linux/acpi.h:1535:49: warning: declaration of 'struct acpi_subtable_proc' will not be visible outside of this function [-Wvisibility]
struct acpi_table_header *table_header, struct acpi_subtable_proc *proc,
^
1 warning generated.
vim +1535 include/linux/acpi.h
1526
1527 #ifdef CONFIG_ACPI_TABLES_LIB
1528 int __init_or_acpilib acpi_parse_entries_array(
1529 char *id, unsigned long table_size,
1530 struct acpi_table_header *table_header, struct acpi_subtable_proc *proc,
1531 int proc_num, unsigned int max_entries);
1532 #else
1533 static inline int acpi_parse_entries_array(
1534 char *id, unsigned long table_size,
> 1535 struct acpi_table_header *table_header, struct acpi_subtable_proc *proc,
1536 int proc_num, unsigned int max_entries)
1537 {
1538 return -EOPNOTSUPP;
1539 }
1540 #endif
1541
--
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-05-12 2:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-12 2:38 [djiang:cxl-qtg 7/30] include/linux/acpi.h:1535:49: error: declaration of 'struct acpi_subtable_proc' will not be visible outside of this function 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.