Hi Pranavi, First bad commit (maybe != root cause): tree: git://linuxtv.org/pinchartl/media.git muxed/2022.2/base head: e26621179c3b1834a1bb17e9a38e47238ac63bf5 commit: 01fee54ce6a611d5d65a5fc081dad522a0376f95 [490/740] net: xilinx: Move Xilinx TSN to staging config: sh-allmodconfig 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 git remote add pinchartl-media git://linuxtv.org/pinchartl/media.git git fetch --no-tags pinchartl-media muxed/2022.2/base git checkout 01fee54ce6a611d5d65a5fc081dad522a0376f95 # 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 All errors (new ones prefixed by >>): In file included from include/linux/gfp.h:6, from include/linux/xarray.h:14, from include/linux/radix-tree.h:19, from include/linux/idr.h:15, from include/linux/kernfs.h:13, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/energy_model.h:7, from include/linux/device.h:16, from drivers/staging/xilinx-tsn/xilinx_tsn_ptp_clock.c:19: include/linux/mmzone.h: In function '__nr_to_section': include/linux/mmzone.h:1349:13: warning: the comparison will always evaluate as 'true' for the address of 'mem_section' will never be NULL [-Waddress] 1349 | if (!mem_section[SECTION_NR_TO_ROOT(nr)]) | ^ include/linux/mmzone.h:1335:27: note: 'mem_section' declared here 1335 | extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; | ^~~~~~~~~~~ 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 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 41 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 42 static void xlnx_tod_read(struct xlnx_ptp_timer *timer, struct timespec64 *ts) 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 43 { 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 44 u32 sec, nsec; 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 45 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 @46 nsec = in_be32(timer->baseaddr + XTIMER1588_CURRENT_RTC_NS); 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 47 sec = in_be32(timer->baseaddr + XTIMER1588_CURRENT_RTC_SEC_L); 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 48 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 49 ts->tv_sec = sec; 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 50 ts->tv_nsec = nsec; 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 51 } 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 52 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 53 static void xlnx_rtc_offset_write(struct xlnx_ptp_timer *timer, 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 54 const struct timespec64 *ts) 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 55 { 9b62852ec04b7d drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Michal Simek 2021-11-23 56 pr_debug("%s: sec: %lld nsec: %ld\n", __func__, ts->tv_sec, ts->tv_nsec); 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 57 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 @58 out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_SEC_H), 0); 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 59 out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_SEC_L), 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 60 (ts->tv_sec)); 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 61 out_be32((timer->baseaddr + XTIMER1588_RTC_OFFSET_NS), ts->tv_nsec); 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 62 } 7d2ea3af3ed39c drivers/net/ethernet/xilinx/xilinx_tsn_ptp_clock.c Saurabh Sengar 2017-03-16 63 :::::: The code at line 46 was first introduced by commit :::::: 7d2ea3af3ed39cb50e804c1296446df306a184ba drivers: net: ethernet: TSN PTP module :::::: TO: Saurabh Sengar :::::: CC: Michal Simek -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests