All of lore.kernel.org
 help / color / mirror / Atom feed
* XFRM Compilation
@ 2021-04-22 14:33 Chad Woitas
  0 siblings, 0 replies; only message in thread
From: Chad Woitas @ 2021-04-22 14:33 UTC (permalink / raw)
  To: netdev, shemminger

Hello,

 I'm an automation developer using a pre-emptive kernel for robotics type applications. I believe I've found an issue with XFRM but as I have never dug into the kernel passed "hope it compiles". I wanted to make a comment here, in case it helps.

This was the same result on 5.4.109, 5.4.109-rt56-rc1, 5.10.25, 5.10.25-rt35, 5.10.27, 5.10.27-rt36, 5.10.30-rt37.

After running make -j12:

In file included from ./include/linux/mmzone.h:16,
                 from ./include/linux/gfp.h:6,
                 from ./include/linux/mm.h:10,
                 from ./include/linux/bvec.h:14,
                 from ./include/linux/skbuff.h:17,
                 from ./include/net/xfrm.h:9,
                 from net/xfrm/xfrm_state.c:18:
net/xfrm/xfrm_state.c: In function ‘xfrm_state_init’:
./include/linux/seqlock.h:178:36: error: initialization of ‘seqcount_spinlock_t *’ {aka ‘struct seqcount_spinlock *’} from incompatible pointer type ‘seqcount_t *’ {aka ‘struct seqcount *’} [-Werror=incompatible-pointer-types]
  178 |   seqcount_##lockname##_t *____s = (s);   \
      |                                    ^
./include/linux/seqlock.h:184:42: note: in expansion of macro ‘seqcount_LOCKNAME_init’
  184 | #define seqcount_spinlock_init(s, lock)  seqcount_LOCKNAME_init(s, lock, spinlock)
      |                                          ^~~~~~~~~~~~~~~~~~~~~~
net/xfrm/xfrm_state.c:2666:2: note: in expansion of macro ‘seqcount_spinlock_init’
 2666 |  seqcount_spinlock_init(&net->xfrm.xfrm_state_hash_generation,
      |  ^~~~~~~~~~~~~~~~~~~~~~
  CC [M]  drivers/net/ethernet/realtek/r8169_main.o
  CC [M]  drivers/media/usb/gspca/dtcs033.o
  CC [M]  drivers/gpu/drm/drm_blend.o
  CC [M]  drivers/net/ipvlan/ipvlan_main.o
  CC [M]  drivers/net/ethernet/qualcomm/emac/emac-sgmii-fsm9900.o
  CC [M]  net/ipv6/netfilter/nf_flow_table_ipv6.o
  CC [M]  drivers/media/usb/gspca/etoms.o
  CC [M]  drivers/net/ethernet/qlogic/qed/qed_mcp.o
  CC [M]  drivers/net/ethernet/qualcomm/emac/emac-sgmii-qdf2432.o
  CC [M]  net/ipv6/netfilter/ip6t_ah.o
  CC [M]  drivers/gpu/drm/drm_encoder.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:279: net/xfrm/xfrm_state.o] Error 1
make[1]: *** [scripts/Makefile.build:496: net/xfrm] Error 2
make[1]: *** Waiting for unfinished jobs..
 

For now I've disabled the strict warning in the make file, line (947), and it works for me. 

# enforce correct pointer usage
KBUILD_CFLAGS   += $(call cc-option) # -Werror=incompatible-pointer-types)

Thanks,
Chad

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-22 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 14:33 XFRM Compilation Chad Woitas

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.