[xilinx-xlnx:xlnx_rebase_v6.1_LTS 637/1065] drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c:46:16: error: implicit declaration of function 'in_be32'
kernel test robot
lkp at intel.com
Thu Apr 13 05:53:05 PDT 2023
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v6.1_LTS
head: e5753363b5e03fc0a3055d5476c6cca93e9ea28b
commit: 03252b346d787210f709c33dc420d2e1bcb0f10a [637/1065] staging: net: xilinx: add Xilinx TSN driver
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230413/202304132039.DL11YImH-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 12.1.0
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://github.com/Xilinx/linux-xlnx/commit/03252b346d787210f709c33dc420d2e1bcb0f10a
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v6.1_LTS
git checkout 03252b346d787210f709c33dc420d2e1bcb0f10a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp at intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304132039.DL11YImH-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c: In function 'xlnx_tod_read':
>> drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c:46:16: error: implicit declaration of function 'in_be32' [-Werror=implicit-function-declaration]
46 | nsec = in_be32(timer->baseaddr + XTIMER1588_CURRENT_RTC_NS);
| ^~~~~~~
drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c: In function 'xlnx_rtc_offset_write':
>> drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c:58:9: error: implicit declaration of function 'out_be32' [-Werror=implicit-function-declaration]
58 | out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_SEC_H), 0);
| ^~~~~~~~
cc1: some warnings being treated as errors
vim +/in_be32 +46 drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c
41
42 static void xlnx_tod_read(struct xlnx_ptp_timer *timer, struct timespec64 *ts)
43 {
44 u32 sec, nsec;
45
> 46 nsec = in_be32(timer->baseaddr + XTIMER1588_CURRENT_RTC_NS);
47 sec = in_be32(timer->baseaddr + XTIMER1588_CURRENT_RTC_SEC_L);
48
49 ts->tv_sec = sec;
50 ts->tv_nsec = nsec;
51 }
52
53 static void xlnx_rtc_offset_write(struct xlnx_ptp_timer *timer,
54 const struct timespec64 *ts)
55 {
56 pr_debug("%s: sec: %lld nsec: %ld\n", __func__, ts->tv_sec, ts->tv_nsec);
57
> 58 out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_SEC_H), 0);
59 out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_SEC_L),
60 (ts->tv_sec));
61 out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_NS), ts->tv_nsec);
62 }
63
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
More information about the linux-arm-kernel
mailing list