All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: Fix missing function declaration
@ 2020-08-19  8:00 Leon Romanovsky
  2020-08-19  8:46 ` Anshuman Khandual
  0 siblings, 1 reply; 3+ messages in thread
From: Leon Romanovsky @ 2020-08-19  8:00 UTC (permalink / raw)
  To: Andrew Morton, Jinbum Park, Kees Cook
  Cc: Leon Romanovsky, linux-mm, linux-kernel

From: Leon Romanovsky <leonro@nvidia.com>

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: 2959a5f726f6 ("mm: add arch-independent testcases for RODATA")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
---
 mm/rodata_test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/rodata_test.c b/mm/rodata_test.c
index 2a99df7beeb3..2613371945b7 100644
--- a/mm/rodata_test.c
+++ b/mm/rodata_test.c
@@ -7,6 +7,7 @@
  */
 #define pr_fmt(fmt) "rodata_test: " fmt

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

--
2.26.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-19  9:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-19  8:00 [PATCH] mm: Fix missing function declaration Leon Romanovsky
2020-08-19  8:46 ` Anshuman Khandual
2020-08-19  9:39   ` Leon Romanovsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.