mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
bpf: Export cnum_umin/umax() helpers for netronome driver
ERROR: modpost: "cnum64_umin" [drivers/net/ethernet/netronome/nfp/nfp.ko] undefined!
ERROR: modpost: "cnum64_umax" [drivers/net/ethernet/netronome/nfp/nfp.ko] undefined!
Export symbols for these references.
Reported-by: Kaitao Cheng <pilgrimtao@gmail.com>
Fixes: bbc6310855 ("bpf: replace min/max fields with struct cnum{32,64}")
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20260427112205.1346733-1-alan.maguire@oracle.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
committed by
Alexei Starovoitov
parent
00eabbf88d
commit
79b8ebcbe4
@@ -6,6 +6,7 @@
|
||||
#endif
|
||||
|
||||
#include <linux/cnum.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/limits.h>
|
||||
#include <linux/minmax.h>
|
||||
#include <linux/compiler_types.h>
|
||||
@@ -48,11 +49,13 @@ ut FN(umin)(struct cnum_t cnum)
|
||||
{
|
||||
return FN(urange_overflow)(cnum) ? 0 : cnum.base;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(FN(umin));
|
||||
|
||||
ut FN(umax)(struct cnum_t cnum)
|
||||
{
|
||||
return FN(urange_overflow)(cnum) ? UT_MAX : cnum.base + cnum.size;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(FN(umax));
|
||||
|
||||
/* True if this cnum represents two signed ranges. */
|
||||
static inline bool FN(srange_overflow)(struct cnum_t cnum)
|
||||
|
||||
Reference in New Issue
Block a user