]> www.infradead.org Git - users/hch/misc.git/commitdiff
module: Reformat struct for code style
authorMatthew Maurer <mmaurer@google.com>
Tue, 15 Oct 2024 23:16:46 +0000 (23:16 +0000)
committerLuis Chamberlain <mcgrof@kernel.org>
Sat, 19 Oct 2024 22:02:00 +0000 (15:02 -0700)
Using commas to declare struct members makes adding new members to this
struct not as nice with patch management.

Test results linux-modules-kpd succeed [0].

Signed-off-by: Matthew Maurer <mmaurer@google.com>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
[mcgrof: add automated test results from kdevops using KPD ]
Link: https://github.com/linux-kdevops/linux-modules-kpd/actions/runs/11420095343
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/internal.h

index 2ebece8a789f52b9b544da0e13a4f7d919929309..daef2be8390222c22220e2f168baa8d35ad531b9 100644 (file)
@@ -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;
 };