[xlnx:master 11997/12154] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:894:5: error: 'struct axienet_local' has no member named 'ptp_os_cf'
kernel test robot
lkp at intel.com
Thu Apr 22 10:55:21 BST 2021
tree: https://github.com/Xilinx/linux-xlnx master
head: bcd80b4c331c5d55de978ab0b2f6181a8aea3434
commit: 8a885d4a28ef180a86c0228a93369903cbb8af7f [11997/12154] net: axienet: Add one step PDelay support
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.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/8a885d4a28ef180a86c0228a93369903cbb8af7f
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx master
git checkout 8a885d4a28ef180a86c0228a93369903cbb8af7f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
Note: the xlnx/master HEAD bcd80b4c331c5d55de978ab0b2f6181a8aea3434 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from include/linux/err.h:5,
from include/linux/clk.h:12,
from drivers/net/ethernet/xilinx/xilinx_axienet_main.c:25:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_rx_hwtstamp':
>> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:894:5: error: 'struct axienet_local' has no member named 'ptp_os_cf'
894 | lp->ptp_os_cf = mul_u32_u32(sec, NSEC_PER_SEC);
| ^~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:895:5: error: 'struct axienet_local' has no member named 'ptp_os_cf'
895 | lp->ptp_os_cf += nsec;
| ^~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:896:5: error: 'struct axienet_local' has no member named 'ptp_os_cf'
896 | lp->ptp_os_cf = (lp->ptp_os_cf << 16);
| ^~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:896:22: error: 'struct axienet_local' has no member named 'ptp_os_cf'
896 | lp->ptp_os_cf = (lp->ptp_os_cf << 16);
| ^~
In file included from include/linux/string.h:20,
from include/linux/bitmap.h:9,
from include/linux/cpumask.h:12,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/mutex.h:17,
from include/linux/notifier.h:14,
from include/linux/clk.h:14,
from drivers/net/ethernet/xilinx/xilinx_axienet_main.c:25:
drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_create_tsheader':
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1087:24: error: 'struct axienet_local' has no member named 'ptp_os_cf'
1087 | memcpy(&buf[8], &lp->ptp_os_cf, 8);
| ^~
arch/m68k/include/asm/string.h:72:45: note: in definition of macro 'memcpy'
72 | #define memcpy(d, s, n) __builtin_memcpy(d, s, n)
| ^
In file included from include/linux/kernel.h:15,
from include/linux/clk.h:13,
from drivers/net/ethernet/xilinx/xilinx_axienet_main.c:25:
include/linux/typecheck.h:12:18: warning: comparison of distinct pointer types lacks a cast
12 | (void)(&__dummy == &__dummy2); \
| ^~
include/linux/spinlock.h:251:3: note: in expansion of macro 'typecheck'
251 | typecheck(unsigned long, flags); \
| ^~~~~~~~~
include/linux/spinlock.h:384:2: note: in expansion of macro 'raw_spin_lock_irqsave'
384 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1111:3: note: in expansion of macro 'spin_lock_irqsave'
1111 | spin_lock_irqsave(&lp->ptp_tx_lock, flags);
| ^~~~~~~~~~~~~~~~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_probe':
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:3148:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
3148 | bool slave = false;
| ^~~~
At top level:
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1747:12: warning: 'axienet_open' defined but not used [-Wunused-function]
1747 | static int axienet_open(struct net_device *ndev)
| ^~~~~~~~~~~~
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1435:12: warning: 'axienet_start_xmit' defined but not used [-Wunused-function]
1435 | static int axienet_start_xmit(struct sk_buff *skb, struct net_device *ndev)
| ^~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for NEED_MULTIPLE_NODES
Depends on DISCONTIGMEM || NUMA
Selected by
- SINGLE_MEMORY_CHUNK && MMU
vim +894 drivers/net/ethernet/xilinx/xilinx_axienet_main.c
848
849 /**
850 * axienet_rx_hwtstamp - Read rx timestamp from hw and update it to the skbuff
851 * @lp: Pointer to axienet local structure
852 * @skb: Pointer to the sk_buff structure
853 *
854 * Return: None.
855 */
856 static void axienet_rx_hwtstamp(struct axienet_local *lp,
857 struct sk_buff *skb)
858 {
859 u32 sec = 0, nsec = 0, val;
860 u64 time64;
861 int err = 0;
862 struct skb_shared_hwtstamps *shhwtstamps = skb_hwtstamps(skb);
863
864 val = axienet_rxts_ior(lp, XAXIFIFO_TXTS_ISR);
865 if (unlikely(!(val & XAXIFIFO_TXTS_INT_RC_MASK))) {
866 dev_info(lp->dev, "Did't get FIFO rx interrupt %d\n", val);
867 return;
868 }
869
870 val = axienet_rxts_ior(lp, XAXIFIFO_TXTS_RFO);
871 if (!val)
872 return;
873
874 /* If FIFO is configured in cut through Mode we will get Rx complete
875 * interrupt even one byte is there in the fifo wait for the full packet
876 */
877 err = readl_poll_timeout_atomic(lp->rx_ts_regs + XAXIFIFO_TXTS_RLR, val,
878 ((val & XAXIFIFO_TXTS_RXFD_MASK) >= 12),
879 0, 1000000);
880 if (err) {
881 netdev_err(lp->ndev, "%s: Didn't get the full timestamp packet",
882 __func__);
883 return;
884 }
885
886 nsec = axienet_rxts_ior(lp, XAXIFIFO_TXTS_RXFD);
887 sec = axienet_rxts_ior(lp, XAXIFIFO_TXTS_RXFD);
888 val = axienet_rxts_ior(lp, XAXIFIFO_TXTS_RXFD);
889
890 if (is_ptp_os_pdelay_req(skb, lp)) {
891 /* Need to save PDelay resp RX time for HW 1 step
892 * timestamping on PDelay Response.
893 */
> 894 lp->ptp_os_cf = mul_u32_u32(sec, NSEC_PER_SEC);
895 lp->ptp_os_cf += nsec;
896 lp->ptp_os_cf = (lp->ptp_os_cf << 16);
897 }
898
899 if (lp->tstamp_config.rx_filter == HWTSTAMP_FILTER_ALL) {
900 time64 = sec * NS_PER_SEC + nsec;
901 shhwtstamps->hwtstamp = ns_to_ktime(time64);
902 }
903 }
904 #endif
905
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 59365 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210422/4230a27d/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list