lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1466179357-21589-1-git-send-email-ben.dooks@codethink.co.uk>
Date:	Fri, 17 Jun 2016 17:02:37 +0100
From:	Ben Dooks <ben.dooks@...ethink.co.uk>
To:	linux-kernel@...ts.codethink.co.uk
Cc:	Ben Dooks <ben.dooks@...ethink.co.uk>, linux-kernel@...r.kernel.org
Subject: [PATCH] elf coredump: include <linux/elfcore.h> to fix warnings

The kernel/elfcore.c defines functions declared in the
header <linux/elfcore.h> but does not current include
it. The inclusion fixes the following sparse warnings:

kernel/elfcore.c:6:17: warning: symbol 'elf_core_extra_phdrs' was not declared. Should it be static?
kernel/elfcore.c:11:12: warning: symbol 'elf_core_write_extra_phdrs' was not declared. Should it be static?
kernel/elfcore.c:16:12: warning: symbol 'elf_core_write_extra_data' was not declared. Should it be static?
kernel/elfcore.c:21:15: warning: symbol 'elf_core_extra_data_size' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@...ethink.co.uk>
---
Cc: linux-kernel@...r.kernel.org
---
 kernel/elfcore.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/elfcore.c b/kernel/elfcore.c
index e556751..a2b29b9 100644
--- a/kernel/elfcore.c
+++ b/kernel/elfcore.c
@@ -2,6 +2,7 @@
 #include <linux/fs.h>
 #include <linux/mm.h>
 #include <linux/binfmts.h>
+#include <linux/elfcore.h>
 
 Elf_Half __weak elf_core_extra_phdrs(void)
 {
-- 
2.8.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ