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>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 24 May 2010 09:54:44 -0400
From:	Prarit Bhargava <prarit@...hat.com>
To:	linux-kernel@...r.kernel.org, d.hatayama@...fujitsu.com
Cc:	Prarit Bhargava <prarit@...hat.com>
Subject: [PATCH]: Fix userspace warnings in elfcore.h

Fixes compile warning:

/home/rhel6/usr/include/linux/elfcore.h:104: userspace cannot call function or variable defined in the kernel
/home/rhel6/usr/include/linux/elfcore.h:105: userspace cannot call function or variable defined in the kernel
/home/rhel6/usr/include/linux/elfcore.h:108: userspace cannot call function or variable defined in the kernel
/home/rhel6/usr/include/linux/elfcore.h:110: userspace cannot call function or variable defined in the kernel

Signed-off-by: Prarit Bhargava <prarit@...hat.com>

diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
index e687bc3..26f7486 100644
--- a/include/linux/elfcore.h
+++ b/include/linux/elfcore.h
@@ -150,8 +150,6 @@ static inline int elf_core_copy_task_xfpregs(struct task_struct *t, elf_fpxregse
 }
 #endif
 
-#endif /* __KERNEL__ */
-
 /*
  * These functions parameterize elf_core_dump in fs/binfmt_elf.c to write out
  * extra segments containing the gate DSO contents.  Dumping its
@@ -167,5 +165,6 @@ elf_core_write_extra_phdrs(struct file *file, loff_t offset, size_t *size,
 extern int
 elf_core_write_extra_data(struct file *file, size_t *size, unsigned long limit);
 extern size_t elf_core_extra_data_size(void);
+#endif /* __KERNEL__ */
 
 #endif /* _LINUX_ELFCORE_H */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ