Re: [dborkman-bpf:pr/bpf-tstamp 3/3] drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:2482:44: warning: shift count >= width of type

From: Daniel Borkmann
Date: Mon Nov 08 2021 - 07:35:36 EST


On 11/6/21 10:12 PM, Christophe JAILLET wrote:
(resend because of HTML issue reported by mailing list daemon)
Le 06/11/2021 à 19:42, Andy Shevchenko a écrit :
+Cc Christophe (can you look into this? It seems your code is involved)
On Sat, Nov 6, 2021 at 3:52 AM kernel test robot<lkp@xxxxxxxxx>  wrote:
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-randconfig-a005-20210928 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ; dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
reproduce (this is a W=1 build):
         wgethttps://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-bpfhttps://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
         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386

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

All warnings (new ones prefixed by >>):

    In file included from drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:9:
    In file included from drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h:22:
    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;
                    ~~~  ^

Please ignore these, it is just a local test branch from a private tree.

Thanks,
Daniel