Skip to content

Commit cd8732c

Browse files
Christoph HellwigJessica Yu
authored andcommitted
modules: rename the licence field in struct symsearch to license
Use the same spelling variant as the rest of the file. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jessica Yu <[email protected]>
1 parent 34e6470 commit cd8732c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/linux/module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ struct symsearch {
586586
NOT_GPL_ONLY,
587587
GPL_ONLY,
588588
WILL_BE_GPL_ONLY,
589-
} licence;
589+
} license;
590590
bool unused;
591591
};
592592

kernel/module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,9 @@ static bool check_exported_symbol(const struct symsearch *syms,
504504
struct find_symbol_arg *fsa = data;
505505

506506
if (!fsa->gplok) {
507-
if (syms->licence == GPL_ONLY)
507+
if (syms->license == GPL_ONLY)
508508
return false;
509-
if (syms->licence == WILL_BE_GPL_ONLY && fsa->warn) {
509+
if (syms->license == WILL_BE_GPL_ONLY && fsa->warn) {
510510
pr_warn("Symbol %s is being used by a non-GPL module, "
511511
"which will not be allowed in the future\n",
512512
fsa->name);

0 commit comments

Comments
 (0)