Skip to content

Commit

Permalink
module: Reformat struct for code style
Browse files Browse the repository at this point in the history
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 # [0]
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
  • Loading branch information
maurer authored and mcgrof committed Oct 19, 2024
1 parent d979e3d commit 2295cf8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kernel/module/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 2295cf8

Please sign in to comment.