tree:
https://github.com/mchinth/linux sep_socwatch_linux_5_9
head: 7296486889985b9d9895a39f551764a4b0425bea
commit: e65547c5a9bb37e907edecece4da7cb12dadea96 [19/41] platform/x86: Use $(srctree)
instead of $(src) to adapt to kbuild regression
config: x86_64-randconfig-r016-20210413 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
9829f5e6b1bca9b61efc629770d28bb9014dec45)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://github.com/mchinth/linux/commit/e65547c5a9bb37e907edecece4da7cb12...
git remote add mchinth
https://github.com/mchinth/linux
git fetch --no-tags mchinth sep_socwatch_linux_5_9
git checkout e65547c5a9bb37e907edecece4da7cb12dadea96
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/platform/x86/socwatch/sw_output_buffer.c:398:6: warning:
no previous prototype for function 'reset_output_buffers' [-Wmissing-prototypes]
void reset_output_buffers(void)
^
drivers/platform/x86/socwatch/sw_output_buffer.c:398:1: note: declare 'static'
if the function is not intended to be used outside of this translation unit
void reset_output_buffers(void)
^
static
1 warning generated.
--
> drivers/platform/x86/socwatch/sw_collector.c:86:1: warning: no
previous prototype for function 'sw_copy_driver_interface_info_i'
[-Wmissing-prototypes]
sw_copy_driver_interface_info_i(const struct
sw_driver_interface_info *info)
^
drivers/platform/x86/socwatch/sw_collector.c:85:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
struct sw_driver_interface_info *
^
static
> drivers/platform/x86/socwatch/sw_collector.c:116:5: warning: no
previous prototype for function 'sw_init_driver_interface_info_i'
[-Wmissing-prototypes]
int sw_init_driver_interface_info_i(struct
sw_driver_interface_info *info)
^
drivers/platform/x86/socwatch/sw_collector.c:116:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
int sw_init_driver_interface_info_i(struct sw_driver_interface_info *info)
^
static
> drivers/platform/x86/socwatch/sw_collector.c:138:5: warning: no
previous prototype for function 'sw_init_ops_i' [-Wmissing-prototypes]
int sw_init_ops_i(const struct sw_hw_ops **ops,
^
drivers/platform/x86/socwatch/sw_collector.c:138:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
int sw_init_ops_i(const struct sw_hw_ops **ops,
^
static
> drivers/platform/x86/socwatch/sw_collector.c:157:8: warning: no
previous prototype for function 'sw_get_payload_size_i' [-Wmissing-prototypes]
size_t sw_get_payload_size_i(const struct sw_driver_interface_info *info)
^
drivers/platform/x86/socwatch/sw_collector.c:157:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
size_t sw_get_payload_size_i(const struct sw_driver_interface_info *info)
^
static
> drivers/platform/x86/socwatch/sw_collector.c:175:1: warning: no
previous prototype for function 'sw_alloc_collector_msg_i' [-Wmissing-prototypes]
sw_alloc_collector_msg_i(const struct sw_driver_interface_info *info,
^
drivers/platform/x86/socwatch/sw_collector.c:174:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
sw_driver_msg_t *
^
static
> drivers/platform/x86/socwatch/sw_collector.c:211:26: warning: no
previous prototype for function 'sw_alloc_ops_i' [-Wmissing-prototypes]
const struct sw_hw_ops **sw_alloc_ops_i(pw_u16_t num_io_descriptors)
^
drivers/platform/x86/socwatch/sw_collector.c:211:7: note: declare 'static' if
the function is not intended to be used outside of this translation unit
const struct sw_hw_ops **sw_alloc_ops_i(pw_u16_t num_io_descriptors)
^
static
> drivers/platform/x86/socwatch/sw_collector.c:323:6: warning: no
previous prototype for function 'sw_free_driver_interface_info_i'
[-Wmissing-prototypes]
void sw_free_driver_interface_info_i(struct
sw_driver_interface_info *info)
^
drivers/platform/x86/socwatch/sw_collector.c:323:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
void sw_free_driver_interface_info_i(struct sw_driver_interface_info *info)
^
static
> drivers/platform/x86/socwatch/sw_collector.c:329:6: warning: no
previous prototype for function 'sw_free_ops_i' [-Wmissing-prototypes]
void sw_free_ops_i(const struct sw_hw_ops **ops)
^
drivers/platform/x86/socwatch/sw_collector.c:329:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
void sw_free_ops_i(const struct sw_hw_ops **ops)
^
static
> drivers/platform/x86/socwatch/sw_collector.c:335:5: warning: no
previous prototype for function 'sw_reset_driver_interface_info_i'
[-Wmissing-prototypes]
int sw_reset_driver_interface_info_i(struct
sw_driver_interface_info *info)
^
drivers/platform/x86/socwatch/sw_collector.c:335:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
int sw_reset_driver_interface_info_i(struct sw_driver_interface_info *info)
^
static
> drivers/platform/x86/socwatch/sw_collector.c:453:6: warning: no
previous prototype for function 'sw_free_collector_msg_i' [-Wmissing-prototypes]
void sw_free_collector_msg_i(sw_driver_msg_t *msg)
^
drivers/platform/x86/socwatch/sw_collector.c:453:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
void sw_free_collector_msg_i(sw_driver_msg_t *msg)
^
static
> drivers/platform/x86/socwatch/sw_collector.c:459:6: warning: no
previous prototype for function 'sw_handle_per_cpu_msg_i' [-Wmissing-prototypes]
void sw_handle_per_cpu_msg_i(void *info, enum sw_wakeup_action action)
^
drivers/platform/x86/socwatch/sw_collector.c:459:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
void sw_handle_per_cpu_msg_i(void *info, enum sw_wakeup_action action)
^
static
11 warnings generated.
--
drivers/platform/x86/socwatch/sw_telem.c:239:32: error: implicit declaration of
function 'ioremap_nocache' [-Werror,-Wimplicit-function-declaration]
s_punitInterfaceAddr = (u64 *)ioremap_nocache(
^
drivers/platform/x86/socwatch/sw_telem.c:239:32: note: did you mean
'ioremap_cache'?
arch/x86/include/asm/io.h:185:22: note: 'ioremap_cache' declared here
extern void __iomem *ioremap_cache(resource_size_t offset, unsigned long size);
^
drivers/platform/x86/socwatch/sw_telem.c:239:25: warning: cast to 'u64 *' (aka
'unsigned long long *') from smaller integer type 'int'
[-Wint-to-pointer-cast]
s_punitInterfaceAddr = (u64 *)ioremap_nocache(
^~~~~~~~~~~~~~~~~~~~~~~
drivers/platform/x86/socwatch/sw_telem.c:242:20: warning: cast to 'u64 *' (aka
'unsigned long long *') from smaller integer type 'int'
[-Wint-to-pointer-cast]
s_punitDataAddr = (u64 *)ioremap_nocache(
^~~~~~~~~~~~~~~~~~~~~~~
drivers/platform/x86/socwatch/sw_telem.c:245:50: warning: cast to 'u64 *' (aka
'unsigned long long *') from smaller integer type 'int'
[-Wint-to-pointer-cast]
s_telemEventInfo[TELEM_PUNIT].ssram_virt_addr = (u64 *)ioremap_nocache(
^~~~~~~~~~~~~~~~~~~~~~~
drivers/platform/x86/socwatch/sw_telem.c:280:27: error: implicit declaration of
function 'ioremap_nocache' [-Werror,-Wimplicit-function-declaration]
s_pmcIPCCmdAddr = (u64 *)ioremap_nocache(
^
drivers/platform/x86/socwatch/sw_telem.c:280:20: warning: cast to 'u64 *' (aka
'unsigned long long *') from smaller integer type 'int'
[-Wint-to-pointer-cast]
s_pmcIPCCmdAddr = (u64 *)ioremap_nocache(
^~~~~~~~~~~~~~~~~~~~~~~
drivers/platform/x86/socwatch/sw_telem.c:283:20: warning: cast to 'u64 *' (aka
'unsigned long long *') from smaller integer type 'int'
[-Wint-to-pointer-cast]
s_pmcIPCStsAddr = (u64 *)ioremap_nocache(
^~~~~~~~~~~~~~~~~~~~~~~
drivers/platform/x86/socwatch/sw_telem.c:286:21: warning: cast to 'u64 *' (aka
'unsigned long long *') from smaller integer type 'int'
[-Wint-to-pointer-cast]
s_pmcIPCWBufAddr = (u64 *)ioremap_nocache(
^~~~~~~~~~~~~~~~~~~~~~~
drivers/platform/x86/socwatch/sw_telem.c:289:21: warning: cast to 'u64 *' (aka
'unsigned long long *') from smaller integer type 'int'
[-Wint-to-pointer-cast]
s_pmcIPCRBufAddr = (u64 *)ioremap_nocache(
^~~~~~~~~~~~~~~~~~~~~~~
drivers/platform/x86/socwatch/sw_telem.c:292:48: warning: cast to 'u64 *' (aka
'unsigned long long *') from smaller integer type 'int'
[-Wint-to-pointer-cast]
s_telemEventInfo[TELEM_PMC].ssram_virt_addr = (u64 *)ioremap_nocache(
^~~~~~~~~~~~~~~~~~~~~~~
> drivers/platform/x86/socwatch/sw_telem.c:671:5: warning: no
previous prototype for function 'read_telem' [-Wmissing-prototypes]
int
read_telem(u64 *dst, enum telemetry_unit unit, bool should_retry)
^
drivers/platform/x86/socwatch/sw_telem.c:671:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
int read_telem(u64 *dst, enum telemetry_unit unit, bool should_retry)
^
static
9 warnings and 2 errors generated.
vim +/reset_output_buffers +398 drivers/platform/x86/socwatch/sw_output_buffer.c
688e338c753b33c Faycal Benmlih 2019-04-23 397
688e338c753b33c Faycal Benmlih 2019-04-23 @398 void reset_output_buffers(void)
688e338c753b33c Faycal Benmlih 2019-04-23 399 {
688e338c753b33c Faycal Benmlih 2019-04-23 400 buffer.read_index = buffer.write_index =
0;
688e338c753b33c Faycal Benmlih 2019-04-23 401 }
688e338c753b33c Faycal Benmlih 2019-04-23 402
:::::: The code at line 398 was first introduced by commit
:::::: 688e338c753b33c023de3b774f7347effbf537a4 Platform/x86: Update SoCWatch driver code
to 2.10
:::::: TO: Faycal Benmlih <faycal.benmlih(a)intel.com>
:::::: CC: Faycal Benmlih <faycal.benmlih(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org