projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f40eef
)
tools/nolibc/types.h: fix mismatched parenthesis in minor()
author
Jemmy Wong
<jemmywong512@gmail.com>
Fri, 11 Apr 2025 07:36:24 +0000
(15:36 +0800)
committer
Thomas Weißschuh
<linux@weissschuh.net>
Fri, 11 Apr 2025 18:00:18 +0000
(20:00 +0200)
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>
tools/include/nolibc/types.h
patch
|
blob
|
blame
|
history
diff --git
a/tools/include/nolibc/types.h
b/tools/include/nolibc/types.h
index b26a5d0c417c7c3b232f28e78cdd6d94a759b7bc..32d0929c633bbae29263375c461a0c82baf7f869 100644
(file)
--- 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)