LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [dborkman-bpf:pr/bpf-tstamp 3/3] include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
@ 2021-09-17  4:45 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-17  4:45 UTC (permalink / raw)
  To: Daniel Borkmann; +Cc: llvm, kbuild-all, Daniel Borkmann, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 13699 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git pr/bpf-tstamp
head:   f7d619a946e981177777983af26e9e31163ffb38
commit: f7d619a946e981177777983af26e9e31163ffb38 [3/3] net: skb clock bases
config: i386-buildonly-randconfig-r002-20210916 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f)
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://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git/commit/?id=f7d619a946e981177777983af26e9e31163ffb38
        git remote add dborkman-bpf https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git
        git fetch --no-tags dborkman-bpf pr/bpf-tstamp
        git checkout f7d619a946e981177777983af26e9e31163ffb38
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/ethernet/broadcom/ drivers/net/ethernet/chelsio/cxgb4/ drivers/net/ethernet/intel/fm10k/ drivers/net/ethernet/intel/i40e/ drivers/net/ethernet/neterion/ drivers/scsi/qla4xxx/ net/sched/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

   In file included from drivers/scsi/qla4xxx/ql4_os.c:15:
   In file included from drivers/scsi/qla4xxx/ql4_def.h:30:
>> include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return tcp_ns_to_ts(skb->skb_mstamp_ns);
                               ~~~  ^
   include/net/tcp.h:818:22: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC);
                          ~~~  ^
   include/net/tcp.h:2367:8: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
                   skb->skb_mstamp_ns += (u64)tp->tcp_tx_delay * NSEC_PER_USEC;
                   ~~~  ^
>> drivers/scsi/qla4xxx/ql4_os.c:9037:48: warning: shift count >= width of type [-Wshift-count-overflow]
           if (dma_set_mask_and_coherent(&ha->pdev->dev, DMA_BIT_MASK(64))) {
                                                         ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   1 warning and 3 errors generated.
--
   In file included from drivers/scsi/qla4xxx/ql4_init.c:8:
   In file included from drivers/scsi/qla4xxx/ql4_def.h:30:
>> include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return tcp_ns_to_ts(skb->skb_mstamp_ns);
                               ~~~  ^
   include/net/tcp.h:818:22: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC);
                          ~~~  ^
   include/net/tcp.h:2367:8: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
                   skb->skb_mstamp_ns += (u64)tp->tcp_tx_delay * NSEC_PER_USEC;
                   ~~~  ^
   3 errors generated.
--
   In file included from drivers/net/ethernet/broadcom/bnx2.c:43:
>> include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return tcp_ns_to_ts(skb->skb_mstamp_ns);
                               ~~~  ^
   include/net/tcp.h:818:22: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC);
                          ~~~  ^
   include/net/tcp.h:2367:8: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
                   skb->skb_mstamp_ns += (u64)tp->tcp_tx_delay * NSEC_PER_USEC;
                   ~~~  ^
>> drivers/net/ethernet/broadcom/bnx2.c:8224:33: warning: shift count >= width of type [-Wshift-count-overflow]
                   persist_dma_mask = dma_mask = DMA_BIT_MASK(64);
                                                 ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   1 warning and 3 errors generated.
--
   In file included from net/sched/sch_taprio.c:26:
>> include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return tcp_ns_to_ts(skb->skb_mstamp_ns);
                               ~~~  ^
   include/net/tcp.h:818:22: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC);
                          ~~~  ^
   include/net/tcp.h:2367:8: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
                   skb->skb_mstamp_ns += (u64)tp->tcp_tx_delay * NSEC_PER_USEC;
                   ~~~  ^
>> net/sched/sch_taprio.c:322:32: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return ktime_mono_to_any(skb->skb_mstamp_ns, q->tk_offset);
                                    ~~~  ^
   4 errors generated.
--
   In file included from drivers/net/ethernet/neterion/s2io.c:81:
>> include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return tcp_ns_to_ts(skb->skb_mstamp_ns);
                               ~~~  ^
   include/net/tcp.h:818:22: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC);
                          ~~~  ^
   include/net/tcp.h:2367:8: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
                   skb->skb_mstamp_ns += (u64)tp->tcp_tx_delay * NSEC_PER_USEC;
                   ~~~  ^
>> drivers/net/ethernet/neterion/s2io.c:7680:32: warning: shift count >= width of type [-Wshift-count-overflow]
           if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64))) {
                                         ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   drivers/net/ethernet/neterion/s2io.c:7683:41: warning: shift count >= width of type [-Wshift-count-overflow]
                   if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) {
                                                         ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   2 warnings and 3 errors generated.
--
   In file included from drivers/net/ethernet/intel/fm10k/fm10k_main.c:8:
>> include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return tcp_ns_to_ts(skb->skb_mstamp_ns);
                               ~~~  ^
   include/net/tcp.h:818:22: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC);
                          ~~~  ^
   include/net/tcp.h:2367:8: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
                   skb->skb_mstamp_ns += (u64)tp->tcp_tx_delay * NSEC_PER_USEC;
                   ~~~  ^
>> drivers/net/ethernet/intel/fm10k/fm10k_main.c:878:16: warning: division by zero is undefined [-Wdivision-by-zero]
           desc_flags |= FM10K_SET_FLAG(tx_flags, FM10K_TX_FLAGS_CSUM,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/intel/fm10k/fm10k_main.c:870:26: note: expanded from macro 'FM10K_SET_FLAG'
            ((u32)(_input & _flag) / (_flag / _result)))
                                   ^ ~~~~~~~~~~~~~~~~~
   1 warning and 3 errors generated.
--
   In file included from drivers/net/ethernet/intel/i40e/i40e_main.c:12:
   In file included from drivers/net/ethernet/intel/i40e/i40e.h:7:
>> include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return tcp_ns_to_ts(skb->skb_mstamp_ns);
                               ~~~  ^
   include/net/tcp.h:818:22: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC);
                          ~~~  ^
   include/net/tcp.h:2367:8: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
                   skb->skb_mstamp_ns += (u64)tp->tcp_tx_delay * NSEC_PER_USEC;
                   ~~~  ^
>> drivers/net/ethernet/intel/i40e/i40e_main.c:15234:46: warning: shift count >= width of type [-Wshift-count-overflow]
           err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
                                                       ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   1 warning and 3 errors generated.
--
   In file included from drivers/net/ethernet/intel/i40e/i40e_common.c:4:
   In file included from drivers/net/ethernet/intel/i40e/i40e.h:7:
>> include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return tcp_ns_to_ts(skb->skb_mstamp_ns);
                               ~~~  ^
   include/net/tcp.h:818:22: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC);
                          ~~~  ^
   include/net/tcp.h:2367:8: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
                   skb->skb_mstamp_ns += (u64)tp->tcp_tx_delay * NSEC_PER_USEC;
                   ~~~  ^
   drivers/net/ethernet/intel/i40e/i40e_common.c:4139:6: warning: variable 'pe_cntx_size' set but not used [-Wunused-but-set-variable]
           u32 pe_cntx_size, pe_filt_size;
               ^
   drivers/net/ethernet/intel/i40e/i40e_common.c:4139:20: warning: variable 'pe_filt_size' set but not used [-Wunused-but-set-variable]
           u32 pe_cntx_size, pe_filt_size;
                             ^
   2 warnings and 3 errors generated.
--
   In file included from drivers/net/ethernet/broadcom/bnxt/bnxt.c:41:
>> include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return tcp_ns_to_ts(skb->skb_mstamp_ns);
                               ~~~  ^
   include/net/tcp.h:818:22: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC);
                          ~~~  ^
   include/net/tcp.h:2367:8: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
                   skb->skb_mstamp_ns += (u64)tp->tcp_tx_delay * NSEC_PER_USEC;
                   ~~~  ^
>> drivers/net/ethernet/broadcom/bnxt/bnxt.c:12244:44: warning: shift count >= width of type [-Wshift-count-overflow]
           if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)) != 0 &&
                                                     ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   1 warning and 3 errors generated.
--
   In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:73:
   In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:59:
   In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h:43:
   In file included from include/net/tls.h:42:
   In file included from include/linux/skmsg.h:13:
>> include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return tcp_ns_to_ts(skb->skb_mstamp_ns);
                               ~~~  ^
   include/net/tcp.h:818:22: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC);
                          ~~~  ^
   include/net/tcp.h:2367:8: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
                   skb->skb_mstamp_ns += (u64)tp->tcp_tx_delay * NSEC_PER_USEC;
                   ~~~  ^
>> drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:6690:45: warning: shift count >= width of type [-Wshift-count-overflow]
           if (!dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64))) {
                                                      ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   1 warning and 3 errors generated.


vim +812 include/net/tcp.h

^1da177e4c3f415 Linus Torvalds 2005-04-16  809  
7faee5c0d514162 Eric Dumazet   2014-09-05  810  static inline u32 tcp_skb_timestamp(const struct sk_buff *skb)
7faee5c0d514162 Eric Dumazet   2014-09-05  811  {
200ecef67b8d09d Eric Dumazet   2019-11-07 @812  	return tcp_ns_to_ts(skb->skb_mstamp_ns);
7faee5c0d514162 Eric Dumazet   2014-09-05  813  }
7faee5c0d514162 Eric Dumazet   2014-09-05  814  

:::::: The code at line 812 was first introduced by commit
:::::: 200ecef67b8d09d16ec55f91c92751dcc7a38d40 tcp: Remove one extra ktime_get_ns() from cookie_init_timestamp

:::::: TO: Eric Dumazet <edumazet@google.com>
:::::: CC: David S. Miller <davem@davemloft.net>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 43706 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [dborkman-bpf:pr/bpf-tstamp 3/3] include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
@ 2021-09-28 22:47 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-28 22:47 UTC (permalink / raw)
  To: Daniel Borkmann; +Cc: llvm, kbuild-all, Daniel Borkmann, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2738 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git pr/bpf-tstamp
head:   f7d619a946e981177777983af26e9e31163ffb38
commit: f7d619a946e981177777983af26e9e31163ffb38 [3/3] net: skb clock bases
config: hexagon-randconfig-r045-20210928 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git/commit/?id=f7d619a946e981177777983af26e9e31163ffb38
        git remote add dborkman-bpf https://git.kernel.org/pub/scm/linux/kernel/git/dborkman/bpf.git
        git fetch --no-tags dborkman-bpf pr/bpf-tstamp
        git checkout f7d619a946e981177777983af26e9e31163ffb38
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash kernel/bpf/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from kernel/bpf/btf.c:22:
   In file included from include/linux/skmsg.h:13:
>> include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return tcp_ns_to_ts(skb->skb_mstamp_ns);
                               ~~~  ^
   include/net/tcp.h:818:22: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
           return div_u64(skb->skb_mstamp_ns, NSEC_PER_USEC);
                          ~~~  ^
   include/net/tcp.h:2367:8: error: no member named 'skb_mstamp_ns' in 'struct sk_buff'
                   skb->skb_mstamp_ns += (u64)tp->tcp_tx_delay * NSEC_PER_USEC;
                   ~~~  ^
   3 errors generated.


vim +812 include/net/tcp.h

^1da177e4c3f41 Linus Torvalds 2005-04-16  809  
7faee5c0d51416 Eric Dumazet   2014-09-05  810  static inline u32 tcp_skb_timestamp(const struct sk_buff *skb)
7faee5c0d51416 Eric Dumazet   2014-09-05  811  {
200ecef67b8d09 Eric Dumazet   2019-11-07 @812  	return tcp_ns_to_ts(skb->skb_mstamp_ns);
7faee5c0d51416 Eric Dumazet   2014-09-05  813  }
7faee5c0d51416 Eric Dumazet   2014-09-05  814  

:::::: The code at line 812 was first introduced by commit
:::::: 200ecef67b8d09d16ec55f91c92751dcc7a38d40 tcp: Remove one extra ktime_get_ns() from cookie_init_timestamp

:::::: TO: Eric Dumazet <edumazet@google.com>
:::::: CC: David S. Miller <davem@davemloft.net>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 23501 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-28 22:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17  4:45 [dborkman-bpf:pr/bpf-tstamp 3/3] include/net/tcp.h:812:27: error: no member named 'skb_mstamp_ns' in 'struct sk_buff' kernel test robot
2021-09-28 22:47 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).