MIPS: Include elf-randomize.h for arch_mmap_rnd() & arch_randomize_brk()
authorPaul Burton <[email protected]>
Wed, 23 Aug 2017 18:17:49 +0000 (11:17 -0700)
committerRalf Baechle <[email protected]>
Tue, 29 Aug 2017 13:21:54 +0000 (15:21 +0200)
arch/mips/mm/mmap.c provides our implementations of the arch_mmap_rnd()
& arch_randomize_brk() functions, but doesn't include the
linux/elf-randomize.h header which declares them. This leads to warnings
from sparse:

  arch/mips/mm/mmap.c:146:15: warning: symbol 'arch_mmap_rnd' was not
    declared. Should it be static?
  arch/mips/mm/mmap.c:190:15: warning: symbol 'arch_randomize_brk' was
    not declared. Should it be static?

Fix this by including linux/elf-randomize.h to get the declarations of
arch_mmap_rnd() & arch_randomize_brk().

Signed-off-by: Paul Burton <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/17171/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/mm/mmap.c

index 28adeabe851ff22dbea2da9d701208dadcc4925d..33d3251ecd37a257c2cb435a973e612738e0a216 100644 (file)
@@ -7,6 +7,7 @@
  *   written by Ralf Baechle <[email protected]>
  */
 #include <linux/compiler.h>
+#include <linux/elf-randomize.h>
 #include <linux/errno.h>
 #include <linux/mm.h>
 #include <linux/mman.h>