[xilinx-xlnx:xlnx_rebase_v5.15 1090/1205] 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
Fri Jul 1 20:05:16 PDT 2022
Hi Pranavi,
First bad commit (maybe != root cause):
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head: cc7c4358c2de36e08b96554160197fe21b6d04bf
commit: 69f4e38f3088d4dc9c007070610b5223c5611d08 [1090/1205] net: xilinx: Move Xilinx TSN to staging
config: ia64-allmodconfig (https://download.01.org/0day-ci/archive/20220702/202207021101.mr9KSsz1-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 11.3.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/69f4e38f3088d4dc9c007070610b5223c5611d08
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
git checkout 69f4e38f3088d4dc9c007070610b5223c5611d08
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/staging/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp at 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
{standard input}: Assembler messages:
{standard input}:168: Error: Register number out of range 0..1
{standard input}:169: Error: Register number out of range 0..1
{standard input}:169: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 37
{standard input}:168: Warning: This is the location of the conflicting usage
{standard input}:171: Error: Register number out of range 0..1
{standard input}:171: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 37
{standard input}:168: Warning: This is the location of the conflicting usage
{standard input}:171: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 37
{standard input}:169: Warning: This is the location of the conflicting usage
{standard input}:172: Error: Register number out of range 0..1
{standard input}:172: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 37
{standard input}:168: Warning: This is the location of the conflicting usage
{standard input}:172: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 37
{standard input}:169: Warning: This is the location of the conflicting usage
{standard input}:172: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 37
{standard input}:171: Warning: This is the location of the conflicting usage
{standard input}:173: Error: Register number out of range 0..1
{standard input}:173: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 37
{standard input}:168: Warning: This is the location of the conflicting usage
{standard input}:173: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 37
{standard input}:169: Warning: This is the location of the conflicting usage
{standard input}:173: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 37
{standard input}:171: Warning: This is the location of the conflicting usage
{standard input}:173: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 37
{standard input}:172: Warning: This is the location of the conflicting usage
{standard input}:177: Error: Register number out of range 0..1
{standard input}:325: Error: Register number out of range 0..4
{standard input}:325: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 38
{standard input}:319: Warning: This is the location of the conflicting usage
{standard input}:328: Error: Register number out of range 0..4
{standard input}:329: Error: Register number out of range 0..4
{standard input}:329: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 38
{standard input}:328: Warning: This is the location of the conflicting usage
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_PCM_ELD
Depends on SOUND && !UML && SND
Selected by
- DRM_XLNX && HAS_IOMEM && DRM && OF
vim +/in_be32 +46 drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 41
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 42 static void xlnx_tod_read(struct xlnx_ptp_timer *timer, struct timespec64 *ts)
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 43 {
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 44 u32 sec, nsec;
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 45
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 @46 nsec = in_be32(timer->baseaddr + XTIMER1588_CURRENT_RTC_NS);
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 47 sec = in_be32(timer->baseaddr + XTIMER1588_CURRENT_RTC_SEC_L);
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 48
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 49 ts->tv_sec = sec;
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 50 ts->tv_nsec = nsec;
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 51 }
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 52
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 53 static void xlnx_rtc_offset_write(struct xlnx_ptp_timer *timer,
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 54 const struct timespec64 *ts)
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 55 {
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 56 pr_debug("%s: sec: %lld nsec: %ld\n", __func__, ts->tv_sec, ts->tv_nsec);
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 57
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 @58 out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_SEC_H), 0);
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 59 out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_SEC_L),
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 60 (ts->tv_sec));
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 61 out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_NS), ts->tv_nsec);
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 62 }
a7ae7ddafe91c16 drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2021-01-22 63
:::::: The code at line 46 was first introduced by commit
:::::: a7ae7ddafe91c16d0f4bcd4d148c76318f3cfb06 net: xilinx: Add support for PL TSN IP features
:::::: TO: Saurabh Sengar <saurabh.singh at xilinx.com>
:::::: CC: Michal Simek <michal.simek at xilinx.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
More information about the linux-arm-kernel
mailing list