Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167422
b: refs/heads/master
c: c01226c
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann authored and Sam Ravnborg committed Oct 11, 2009
1 parent d94543c commit aecb353
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17c5ca98833dc3d8f8dd4e85487da238c50cd8c9
refs/heads/master: c01226c3145d173a0d38f9d5b4f229cc23d99ae2
6 changes: 6 additions & 0 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,12 @@ extern int do_sysinfo(struct sysinfo *info);

#endif /* __KERNEL__ */

#ifndef __EXPORTED_HEADERS__
#ifndef __KERNEL__
#warning Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders
#endif /* __KERNEL__ */
#endif /* __EXPORTED_HEADERS__ */

#define SI_LOAD_SHIFT 16
struct sysinfo {
long uptime; /* Seconds since boot */
Expand Down
2 changes: 1 addition & 1 deletion trunk/scripts/headers_install.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

my ($readdir, $installdir, $arch, @files) = @ARGV;

my $unifdef = "scripts/unifdef -U__KERNEL__";
my $unifdef = "scripts/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__";

foreach my $file (@files) {
local *INFILE;
Expand Down

0 comments on commit aecb353

Please sign in to comment.