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]
Date:	Sun, 15 Aug 2010 22:19:34 +0200
From:	Sam Ravnborg <sam@...nborg.org>
To:	lkml <linux-kernel@...r.kernel.org>,
	Jesse Barnes <jbarnes@...tuousgeek.org>
Cc:	Jiri Slaby <jslaby@...e.cz>
Subject: [PATCH] resource: fix userspace warning

"make headers_check" gave following warning:

  CHECK   include/linux (364 files)
include/linux/resource.h:49: found __[us]{8,16,32,64} type without #include <linux/types.h>

The warning started to appear after rlimit64 structure was added.
The rlimit64 structure uses the correct types for export, but the
patch failed to include linux/types.h - thus the warning.

But include/linux/resource.h contains a _lot_ of native types,
which size may vary dependent on the architecture.

It would be good if all uses of native types could be
repalced by the intended exportable types.

Signed-off-by: Sam Ravnborg <sam@...nborg.org>
Cc: Jiri Slaby <jslaby@...e.cz>
---

	Sam

diff --git a/include/linux/resource.h b/include/linux/resource.h
index 88d36f9..d01c96c 100644
--- a/include/linux/resource.h
+++ b/include/linux/resource.h
@@ -2,6 +2,7 @@
 #define _LINUX_RESOURCE_H
 
 #include <linux/time.h>
+#include <linux/types.h>
 
 /*
  * Resource control/accounting header file for linux
--
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