Skip to content

Commit a0b018a

Browse files
valschneiderpetrpavlu
authored andcommitted
module: Remove outdated comment about text_size
The text_size bit referred to by the comment has been removed as of commit ac3b432 ("module: replace module_layout with module_memory") and is thus no longer relevant. Remove it and comment about the contents of the masks array instead. Signed-off-by: Valentin Schneider <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Petr Pavlu <[email protected]>
1 parent 60b57b9 commit a0b018a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

kernel/module/main.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,12 +1562,11 @@ static void __layout_sections(struct module *mod, struct load_info *info, bool i
15621562
{
15631563
unsigned int m, i;
15641564

1565+
/*
1566+
* { Mask of required section header flags,
1567+
* Mask of excluded section header flags }
1568+
*/
15651569
static const unsigned long masks[][2] = {
1566-
/*
1567-
* NOTE: all executable code must be the first section
1568-
* in this array; otherwise modify the text_size
1569-
* finder in the two loops below
1570-
*/
15711570
{ SHF_EXECINSTR | SHF_ALLOC, ARCH_SHF_SMALL },
15721571
{ SHF_ALLOC, SHF_WRITE | ARCH_SHF_SMALL },
15731572
{ SHF_RO_AFTER_INIT | SHF_ALLOC, ARCH_SHF_SMALL },

0 commit comments

Comments
 (0)