mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
xdrgen: Add XDR width macros for short integer types
Commitae78eb4978("xdrgen: Implement short (16-bit) integer types") taught the generator to emit XDR_short and XDR_unsigned_short in the computed maxsize macros and added the matching encode and decode primitives to _builtins.h, but it left the two width macros themselves undefined in _defs.h. Define XDR_short and XDR_unsigned_short, each one XDR unit wide, to match the width the generator's maxsize table assigns them. Fixes:ae78eb4978("xdrgen: Implement short (16-bit) integer types") Link: https://patch.msgid.link/20260712193122.116845-5-cel@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
This commit is contained in:
parent
d4ca0b0a6c
commit
c488328375
|
|
@ -25,6 +25,8 @@ typedef struct {
|
|||
|
||||
#define XDR_void (0)
|
||||
#define XDR_bool (1)
|
||||
#define XDR_short (1)
|
||||
#define XDR_unsigned_short (1)
|
||||
#define XDR_int (1)
|
||||
#define XDR_unsigned_int (1)
|
||||
#define XDR_long (1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user