All of lore.kernel.org
 help / color / mirror / Atom feed
* [cilium:max/vxlan-bigtcp 16/21] include/uapi/linux/byteorder/little_endian.h:43:50: warning: cast from pointer to integer of different size
@ 2026-01-09 10:29 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-01-09 10:29 UTC (permalink / raw)
  To: Maxim Mikityanskiy; +Cc: oe-kbuild-all, Daniel Borkmann

tree:   https://github.com/cilium/linux.git max/vxlan-bigtcp
head:   de0493575c7f01a82c2b58b308fae122df5aa143
commit: f5e94535d68e170320fa3ee0da5bc9e0fea45023 [16/21] udp: Support BIG TCP GSO packets where they can occur
config: x86_64-rhel-9.4-ltp (https://download.01.org/0day-ci/archive/20260109/202601091129.7xTghKSS-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260109/202601091129.7xTghKSS-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601091129.7xTghKSS-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/swab.h:5,
                    from include/uapi/linux/byteorder/little_endian.h:14,
                    from include/linux/byteorder/little_endian.h:5,
                    from arch/x86/include/uapi/asm/byteorder.h:5,
                    from include/asm-generic/qrwlock_types.h:6,
                    from arch/x86/include/asm/spinlock_types.h:7,
                    from include/linux/spinlock_types_raw.h:7,
                    from include/linux/ratelimit_types.h:7,
                    from include/linux/printk.h:9,
                    from include/asm-generic/bug.h:31,
                    from arch/x86/include/asm/bug.h:193,
                    from arch/x86/include/asm/alternative.h:9,
                    from arch/x86/include/asm/barrier.h:5,
                    from include/linux/list.h:11,
                    from include/linux/timer.h:5,
                    from net/netfilter/nf_conntrack_proto_udp.c:8:
   net/netfilter/nf_conntrack_proto_udp.c: In function 'udp_validate_len':
>> include/uapi/linux/byteorder/little_endian.h:43:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      43 | #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
         |                                                  ^
   include/uapi/linux/swab.h:102:54: note: in definition of macro '__swab16'
     102 | #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
         |                                                      ^
   include/linux/byteorder/generic.h:137:21: note: in expansion of macro '__be16_to_cpu'
     137 | #define ___ntohs(x) __be16_to_cpu(x)
         |                     ^~~~~~~~~~~~~
   include/linux/byteorder/generic.h:142:18: note: in expansion of macro '___ntohs'
     142 | #define ntohs(x) ___ntohs(x)
         |                  ^~~~~~~~
   net/netfilter/nf_conntrack_proto_udp.c:48:31: note: in expansion of macro 'ntohs'
      48 |         unsigned int udplen = ntohs(hdr);
         |                               ^~~~~
--
   In file included from include/linux/swab.h:5,
                    from include/uapi/linux/byteorder/little_endian.h:14,
                    from include/linux/byteorder/little_endian.h:5,
                    from arch/x86/include/uapi/asm/byteorder.h:5,
                    from include/asm-generic/qrwlock_types.h:6,
                    from arch/x86/include/asm/spinlock_types.h:7,
                    from include/linux/spinlock_types_raw.h:7,
                    from include/linux/ratelimit_types.h:7,
                    from include/linux/printk.h:9,
                    from include/asm-generic/bug.h:31,
                    from arch/x86/include/asm/bug.h:193,
                    from arch/x86/include/asm/alternative.h:9,
                    from arch/x86/include/asm/barrier.h:5,
                    from include/linux/list.h:11,
                    from include/linux/timer.h:5,
                    from nf_conntrack_proto_udp.c:8:
   nf_conntrack_proto_udp.c: In function 'udp_validate_len':
>> include/uapi/linux/byteorder/little_endian.h:43:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      43 | #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
         |                                                  ^
   include/uapi/linux/swab.h:102:54: note: in definition of macro '__swab16'
     102 | #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
         |                                                      ^
   include/linux/byteorder/generic.h:137:21: note: in expansion of macro '__be16_to_cpu'
     137 | #define ___ntohs(x) __be16_to_cpu(x)
         |                     ^~~~~~~~~~~~~
   include/linux/byteorder/generic.h:142:18: note: in expansion of macro '___ntohs'
     142 | #define ntohs(x) ___ntohs(x)
         |                  ^~~~~~~~
   nf_conntrack_proto_udp.c:48:31: note: in expansion of macro 'ntohs'
      48 |         unsigned int udplen = ntohs(hdr);
         |                               ^~~~~


vim +43 include/uapi/linux/byteorder/little_endian.h

5921e6f8809b16 David Howells 2012-10-13  15  
5921e6f8809b16 David Howells 2012-10-13  16  #define __constant_htonl(x) ((__force __be32)___constant_swab32((x)))
5921e6f8809b16 David Howells 2012-10-13  17  #define __constant_ntohl(x) ___constant_swab32((__force __be32)(x))
5921e6f8809b16 David Howells 2012-10-13  18  #define __constant_htons(x) ((__force __be16)___constant_swab16((x)))
5921e6f8809b16 David Howells 2012-10-13  19  #define __constant_ntohs(x) ___constant_swab16((__force __be16)(x))
5921e6f8809b16 David Howells 2012-10-13  20  #define __constant_cpu_to_le64(x) ((__force __le64)(__u64)(x))
5921e6f8809b16 David Howells 2012-10-13  21  #define __constant_le64_to_cpu(x) ((__force __u64)(__le64)(x))
5921e6f8809b16 David Howells 2012-10-13  22  #define __constant_cpu_to_le32(x) ((__force __le32)(__u32)(x))
5921e6f8809b16 David Howells 2012-10-13  23  #define __constant_le32_to_cpu(x) ((__force __u32)(__le32)(x))
5921e6f8809b16 David Howells 2012-10-13  24  #define __constant_cpu_to_le16(x) ((__force __le16)(__u16)(x))
5921e6f8809b16 David Howells 2012-10-13  25  #define __constant_le16_to_cpu(x) ((__force __u16)(__le16)(x))
5921e6f8809b16 David Howells 2012-10-13  26  #define __constant_cpu_to_be64(x) ((__force __be64)___constant_swab64((x)))
5921e6f8809b16 David Howells 2012-10-13  27  #define __constant_be64_to_cpu(x) ___constant_swab64((__force __u64)(__be64)(x))
5921e6f8809b16 David Howells 2012-10-13  28  #define __constant_cpu_to_be32(x) ((__force __be32)___constant_swab32((x)))
5921e6f8809b16 David Howells 2012-10-13  29  #define __constant_be32_to_cpu(x) ___constant_swab32((__force __u32)(__be32)(x))
5921e6f8809b16 David Howells 2012-10-13  30  #define __constant_cpu_to_be16(x) ((__force __be16)___constant_swab16((x)))
5921e6f8809b16 David Howells 2012-10-13  31  #define __constant_be16_to_cpu(x) ___constant_swab16((__force __u16)(__be16)(x))
5921e6f8809b16 David Howells 2012-10-13  32  #define __cpu_to_le64(x) ((__force __le64)(__u64)(x))
5921e6f8809b16 David Howells 2012-10-13  33  #define __le64_to_cpu(x) ((__force __u64)(__le64)(x))
5921e6f8809b16 David Howells 2012-10-13  34  #define __cpu_to_le32(x) ((__force __le32)(__u32)(x))
5921e6f8809b16 David Howells 2012-10-13  35  #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
5921e6f8809b16 David Howells 2012-10-13  36  #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
5921e6f8809b16 David Howells 2012-10-13  37  #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
5921e6f8809b16 David Howells 2012-10-13  38  #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
5921e6f8809b16 David Howells 2012-10-13  39  #define __be64_to_cpu(x) __swab64((__force __u64)(__be64)(x))
5921e6f8809b16 David Howells 2012-10-13  40  #define __cpu_to_be32(x) ((__force __be32)__swab32((x)))
5921e6f8809b16 David Howells 2012-10-13  41  #define __be32_to_cpu(x) __swab32((__force __u32)(__be32)(x))
5921e6f8809b16 David Howells 2012-10-13  42  #define __cpu_to_be16(x) ((__force __be16)__swab16((x)))
5921e6f8809b16 David Howells 2012-10-13 @43  #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
5921e6f8809b16 David Howells 2012-10-13  44  

:::::: The code at line 43 was first introduced by commit
:::::: 5921e6f8809b1616932ca4afd40fe449faa8fd88 UAPI: (Scripted) Disintegrate include/linux/byteorder

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

* [cilium:max/vxlan-bigtcp 16/21] include/uapi/linux/byteorder/little_endian.h:43:50: warning: cast from pointer to integer of different size
@ 2026-01-12 18:26 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-01-12 18:26 UTC (permalink / raw)
  To: Maxim Mikityanskiy; +Cc: oe-kbuild-all, Daniel Borkmann

tree:   https://github.com/cilium/linux.git max/vxlan-bigtcp
head:   de0493575c7f01a82c2b58b308fae122df5aa143
commit: f5e94535d68e170320fa3ee0da5bc9e0fea45023 [16/21] udp: Support BIG TCP GSO packets where they can occur
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20260113/202601130213.jaGZOjR4-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260113/202601130213.jaGZOjR4-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601130213.jaGZOjR4-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/swab.h:5,
                    from include/uapi/linux/byteorder/little_endian.h:14,
                    from include/linux/byteorder/little_endian.h:5,
                    from arch/sh/include/uapi/asm/byteorder.h:6,
                    from arch/sh/include/asm/bitops.h:10,
                    from include/linux/bitops.h:67,
                    from include/linux/log2.h:12,
                    from include/asm-generic/div64.h:55,
                    from ./arch/sh/include/generated/asm/div64.h:1,
                    from include/linux/math.h:6,
                    from include/linux/math64.h:6,
                    from include/linux/jiffies.h:7,
                    from include/linux/ktime.h:25,
                    from include/linux/timer.h:6,
                    from net/netfilter/nf_conntrack_proto_udp.c:8:
   net/netfilter/nf_conntrack_proto_udp.c: In function 'udp_validate_len':
>> include/uapi/linux/byteorder/little_endian.h:43:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      43 | #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
         |                                                  ^
   include/uapi/linux/swab.h:105:38: note: in definition of macro '__swab16'
     105 |         (__u16)(__builtin_constant_p(x) ?       \
         |                                      ^
   include/linux/byteorder/generic.h:137:21: note: in expansion of macro '__be16_to_cpu'
     137 | #define ___ntohs(x) __be16_to_cpu(x)
         |                     ^~~~~~~~~~~~~
   include/linux/byteorder/generic.h:142:18: note: in expansion of macro '___ntohs'
     142 | #define ntohs(x) ___ntohs(x)
         |                  ^~~~~~~~
   net/netfilter/nf_conntrack_proto_udp.c:48:31: note: in expansion of macro 'ntohs'
      48 |         unsigned int udplen = ntohs(hdr);
         |                               ^~~~~
>> include/uapi/linux/byteorder/little_endian.h:43:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      43 | #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
         |                                                  ^
   include/uapi/linux/swab.h:15:19: note: in definition of macro '___constant_swab16'
      15 |         (((__u16)(x) & (__u16)0x00ffU) << 8) |                  \
         |                   ^
   include/uapi/linux/byteorder/little_endian.h:43:26: note: in expansion of macro '__swab16'
      43 | #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
         |                          ^~~~~~~~
   include/linux/byteorder/generic.h:137:21: note: in expansion of macro '__be16_to_cpu'
     137 | #define ___ntohs(x) __be16_to_cpu(x)
         |                     ^~~~~~~~~~~~~
   include/linux/byteorder/generic.h:142:18: note: in expansion of macro '___ntohs'
     142 | #define ntohs(x) ___ntohs(x)
         |                  ^~~~~~~~
   net/netfilter/nf_conntrack_proto_udp.c:48:31: note: in expansion of macro 'ntohs'
      48 |         unsigned int udplen = ntohs(hdr);
         |                               ^~~~~
>> include/uapi/linux/byteorder/little_endian.h:43:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      43 | #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
         |                                                  ^
   include/uapi/linux/swab.h:16:19: note: in definition of macro '___constant_swab16'
      16 |         (((__u16)(x) & (__u16)0xff00U) >> 8)))
         |                   ^
   include/uapi/linux/byteorder/little_endian.h:43:26: note: in expansion of macro '__swab16'
      43 | #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
         |                          ^~~~~~~~
   include/linux/byteorder/generic.h:137:21: note: in expansion of macro '__be16_to_cpu'
     137 | #define ___ntohs(x) __be16_to_cpu(x)
         |                     ^~~~~~~~~~~~~
   include/linux/byteorder/generic.h:142:18: note: in expansion of macro '___ntohs'
     142 | #define ntohs(x) ___ntohs(x)
         |                  ^~~~~~~~
   net/netfilter/nf_conntrack_proto_udp.c:48:31: note: in expansion of macro 'ntohs'
      48 |         unsigned int udplen = ntohs(hdr);
         |                               ^~~~~
>> include/uapi/linux/byteorder/little_endian.h:43:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      43 | #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
         |                                                  ^
   include/uapi/linux/swab.h:107:19: note: in definition of macro '__swab16'
     107 |         __fswab16(x))
         |                   ^
   include/linux/byteorder/generic.h:137:21: note: in expansion of macro '__be16_to_cpu'
     137 | #define ___ntohs(x) __be16_to_cpu(x)
         |                     ^~~~~~~~~~~~~
   include/linux/byteorder/generic.h:142:18: note: in expansion of macro '___ntohs'
     142 | #define ntohs(x) ___ntohs(x)
         |                  ^~~~~~~~
   net/netfilter/nf_conntrack_proto_udp.c:48:31: note: in expansion of macro 'ntohs'
      48 |         unsigned int udplen = ntohs(hdr);
         |                               ^~~~~


vim +43 include/uapi/linux/byteorder/little_endian.h

5921e6f8809b16 David Howells 2012-10-13  15  
5921e6f8809b16 David Howells 2012-10-13  16  #define __constant_htonl(x) ((__force __be32)___constant_swab32((x)))
5921e6f8809b16 David Howells 2012-10-13  17  #define __constant_ntohl(x) ___constant_swab32((__force __be32)(x))
5921e6f8809b16 David Howells 2012-10-13  18  #define __constant_htons(x) ((__force __be16)___constant_swab16((x)))
5921e6f8809b16 David Howells 2012-10-13  19  #define __constant_ntohs(x) ___constant_swab16((__force __be16)(x))
5921e6f8809b16 David Howells 2012-10-13  20  #define __constant_cpu_to_le64(x) ((__force __le64)(__u64)(x))
5921e6f8809b16 David Howells 2012-10-13  21  #define __constant_le64_to_cpu(x) ((__force __u64)(__le64)(x))
5921e6f8809b16 David Howells 2012-10-13  22  #define __constant_cpu_to_le32(x) ((__force __le32)(__u32)(x))
5921e6f8809b16 David Howells 2012-10-13  23  #define __constant_le32_to_cpu(x) ((__force __u32)(__le32)(x))
5921e6f8809b16 David Howells 2012-10-13  24  #define __constant_cpu_to_le16(x) ((__force __le16)(__u16)(x))
5921e6f8809b16 David Howells 2012-10-13  25  #define __constant_le16_to_cpu(x) ((__force __u16)(__le16)(x))
5921e6f8809b16 David Howells 2012-10-13  26  #define __constant_cpu_to_be64(x) ((__force __be64)___constant_swab64((x)))
5921e6f8809b16 David Howells 2012-10-13  27  #define __constant_be64_to_cpu(x) ___constant_swab64((__force __u64)(__be64)(x))
5921e6f8809b16 David Howells 2012-10-13  28  #define __constant_cpu_to_be32(x) ((__force __be32)___constant_swab32((x)))
5921e6f8809b16 David Howells 2012-10-13  29  #define __constant_be32_to_cpu(x) ___constant_swab32((__force __u32)(__be32)(x))
5921e6f8809b16 David Howells 2012-10-13  30  #define __constant_cpu_to_be16(x) ((__force __be16)___constant_swab16((x)))
5921e6f8809b16 David Howells 2012-10-13  31  #define __constant_be16_to_cpu(x) ___constant_swab16((__force __u16)(__be16)(x))
5921e6f8809b16 David Howells 2012-10-13  32  #define __cpu_to_le64(x) ((__force __le64)(__u64)(x))
5921e6f8809b16 David Howells 2012-10-13  33  #define __le64_to_cpu(x) ((__force __u64)(__le64)(x))
5921e6f8809b16 David Howells 2012-10-13  34  #define __cpu_to_le32(x) ((__force __le32)(__u32)(x))
5921e6f8809b16 David Howells 2012-10-13  35  #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
5921e6f8809b16 David Howells 2012-10-13  36  #define __cpu_to_le16(x) ((__force __le16)(__u16)(x))
5921e6f8809b16 David Howells 2012-10-13  37  #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
5921e6f8809b16 David Howells 2012-10-13  38  #define __cpu_to_be64(x) ((__force __be64)__swab64((x)))
5921e6f8809b16 David Howells 2012-10-13  39  #define __be64_to_cpu(x) __swab64((__force __u64)(__be64)(x))
5921e6f8809b16 David Howells 2012-10-13  40  #define __cpu_to_be32(x) ((__force __be32)__swab32((x)))
5921e6f8809b16 David Howells 2012-10-13  41  #define __be32_to_cpu(x) __swab32((__force __u32)(__be32)(x))
5921e6f8809b16 David Howells 2012-10-13  42  #define __cpu_to_be16(x) ((__force __be16)__swab16((x)))
5921e6f8809b16 David Howells 2012-10-13 @43  #define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x))
5921e6f8809b16 David Howells 2012-10-13  44  

:::::: The code at line 43 was first introduced by commit
:::::: 5921e6f8809b1616932ca4afd40fe449faa8fd88 UAPI: (Scripted) Disintegrate include/linux/byteorder

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

end of thread, other threads:[~2026-01-12 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-09 10:29 [cilium:max/vxlan-bigtcp 16/21] include/uapi/linux/byteorder/little_endian.h:43:50: warning: cast from pointer to integer of different size kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-01-12 18:26 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.