Skip to content

Commit

Permalink
mm/rodata_test.c: fix missing function declaration
Browse files Browse the repository at this point in the history
The compilation with CONFIG_DEBUG_RODATA_TEST set produces the following
warning due to the missing include.

 mm/rodata_test.c:15:6: warning: no previous prototype for 'rodata_test' [-Wmissing-prototypes]
    15 | void rodata_test(void)
       |      ^~~~~~~~~~~

Fixes: 2959a5f ("mm: add arch-independent testcases for RODATA")
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Anshuman Khandual <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
rleon authored and torvalds committed Aug 21, 2020
1 parent e47110e commit 86f54bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/rodata_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/
#define pr_fmt(fmt) "rodata_test: " fmt

#include <linux/rodata_test.h>
#include <linux/uaccess.h>
#include <asm/sections.h>

Expand Down

0 comments on commit 86f54bb

Please sign in to comment.