diff mbox series

[12/12] module: Reformat struct for code style

Message ID 20241015231651.3851138-13-mmaurer@google.com (mailing list archive)
State Handled Elsewhere
Headers show
Series Module Validation Refactor | expand

Checks

Context Check Description
mcgrof/vmtest-modules-next-PR success PR summary
mcgrof/vmtest-modules-next-VM_Test-0 success Logs for build-kernel
mcgrof/vmtest-modules-next-VM_Test-1 pending Logs for Run kdevops CI on Self-hosted Runner

Commit Message

Matthew Maurer Oct. 15, 2024, 11:16 p.m. UTC
Using commas to declare struct members makes adding new members to this
struct not as nice with patch management.

Signed-off-by: Matthew Maurer <mmaurer@google.com>
---
 kernel/module/internal.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/kernel/module/internal.h b/kernel/module/internal.h
index 2ebece8a789f..daef2be83902 100644
--- a/kernel/module/internal.h
+++ b/kernel/module/internal.h
@@ -80,7 +80,12 @@  struct load_info {
 	unsigned int used_pages;
 #endif
 	struct {
-		unsigned int sym, str, mod, vers, info, pcpu;
+		unsigned int sym;
+		unsigned int str;
+		unsigned int mod;
+		unsigned int vers;
+		unsigned int info;
+		unsigned int pcpu;
 	} index;
 };