linux-raw-sys icon indicating copy to clipboard operation
linux-raw-sys copied to clipboard

Backporting struct field additions

Open arctic-alpaca opened this issue 7 months ago • 0 comments

Hi,

in kernel version 6.8, a field was added to the xdp_umem_reg struct in include/uapi/linux/if_xdp.h (link). To back-port this change to the 0.4 branch, I would normally copy the struct definition to the /gen/modules/xdp.h file, but this leads to an expected redefinition error: generate bindings for xdp: ClangDiagnostic("modules/xdp.h:69:8: error: redefinition of 'xdp_umem_reg'\n").

Can this still be back-ported and if so, how should I do this?

arctic-alpaca avatar Jul 07 '24 19:07 arctic-alpaca