History

[PATCH] headers_check: remove <asm/timex.h> from user export

There's useful stuff in <linux/timex.h> but <asm/timex.h> has nothing for userspace. Stop exporting it, and include it only from within the existing #ifdef __KERNEL__ part of <linux/timex.h> This fixes a 'make headers_check' failure on i386 because asm-i386/timex.h includes both asm-i386/tsc.h and asm-i386/processor.h, neither of which are exported to userspace. It's not entirely clear _why_ it includes either of these, but it does.

David Woodhouse committed 20 years ago

Commit ee6baf81 parent 7f1cbe52 files · +3 −2Browse files

Unified · Split

2 files
  1. include/asm-generic/Kbuild.asm +1 −1
  2. include/linux/timex.h +2 −1
include/asm-generic/Kbuild.asm+1−1
@@ -2,7 +2,7 @@ unifdef-y += a.out.h auxvec.h byteorder.h errno.h fcntl.h ioctl.h \ · 1 unmodified line
22 ioctls.h ipcbuf.h mman.h msgbuf.h param.h poll.h \
33 posix_types.h ptrace.h resource.h sembuf.h shmbuf.h shmparam.h \
44 sigcontext.h siginfo.h signal.h socket.h sockios.h stat.h \
5− statfs.h termbits.h termios.h timex.h types.h unistd.h user.h
5+ statfs.h termbits.h termios.h types.h unistd.h user.h
66
77 # These probably shouldn't be exported
88 unifdef-y += elf.h page.h
include/linux/timex.h+2−1
@@ -57,7 +57,6 @@ · 56 unmodified lines
5757 #include <linux/time.h>
5858
5959 #include <asm/param.h>
60−#include <asm/timex.h>
6160
6261 /*
6362 * SHIFT_KG and SHIFT_KF establish the damping of the PLL and are chosen
@@ -191,6 +190,8 @@ struct timex { · 127 unmodified lines
191190 #define TIME_BAD TIME_ERROR /* bw compat */
192191
193192 #ifdef __KERNEL__
193+#include <asm/timex.h>
194+
194195 /*
195196 * kernel variables
196197 * Note: maximum error = NTP synch distance = dispersion + delay / 2;