diff options
author | Jemmy Wong <jemmywong512@gmail.com> | 2025-04-11 15:36:24 +0800 |
---|---|---|
committer | Thomas Weißschuh <linux@weissschuh.net> | 2025-04-11 20:00:18 +0200 |
commit | 9c138ac9392228835b520fd4dbb07e636b34a867 (patch) | |
tree | 417f807b2e6cfeed56b6fda07ba2447ba5bad3f4 | |
parent | 5f40eef1c734042548f491e35acab1a2e4d867e1 (diff) |
tools/nolibc/types.h: fix mismatched parenthesis in minor()
Fix an imbalance where opening parentheses exceed closing ones.
Fixes: eba6d00d38e7c ("tools/nolibc/types: move makedev to types.h and make it a macro")
Signed-off-by: Jemmy Wong <jemmywong512@gmail.com>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250411073624.22153-1-jemmywong512@gmail.com
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
-rw-r--r-- | tools/include/nolibc/types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/include/nolibc/types.h b/tools/include/nolibc/types.h index b26a5d0c417c..32d0929c633b 100644 --- a/tools/include/nolibc/types.h +++ b/tools/include/nolibc/types.h @@ -201,7 +201,7 @@ struct stat { /* WARNING, it only deals with the 4096 first majors and 256 first minors */ #define makedev(major, minor) ((dev_t)((((major) & 0xfff) << 8) | ((minor) & 0xff))) #define major(dev) ((unsigned int)(((dev) >> 8) & 0xfff)) -#define minor(dev) ((unsigned int)(((dev) & 0xff)) +#define minor(dev) ((unsigned int)((dev) & 0xff)) #ifndef offsetof #define offsetof(TYPE, FIELD) ((size_t) &((TYPE *)0)->FIELD) |