This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: nios2 sys/cachectl.h includes nonexistent asm/cachectl.h


On Tue, 15 Nov 2016, Mike Frysinger wrote:

> On 04 Nov 2016 21:37, Joseph Myers wrote:
> > nios2 glibc compile-only test results include:
> > 
> > FAIL: misc/check-installed-headers-c
> > FAIL: misc/check-installed-headers-cxx
> > 
> > This is because sys/cachectl.h includes asm/cachectl.h, and the Linux 
> > kernel has no such header.  How is this meant to work?  Should that 
> > #include just be removed?
> 
> delete it for now.  looks like they speced it out for future usage,
> but haven't yet gotten around to it.  the kernel will explicitly
> throw an error if the |op| field is non-zero.

This patch does that.

Do not include asm/cachectl.h in nios2 sys/cachectl.h.

The nios2 sys/cachectl.h includes a kernel header asm/cachectl.h,
which does not exist, so causing the check-installed-headers tests to
fail.  This patch removes the include of a nonexistent header.

Tested (compilation only) for nios2.

2016-11-16  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
	<asm/cachectl.h>.

diff --git a/sysdeps/unix/sysv/linux/nios2/sys/cachectl.h b/sysdeps/unix/sysv/linux/nios2/sys/cachectl.h
index 717e6ae..d4e6b2e 100644
--- a/sysdeps/unix/sysv/linux/nios2/sys/cachectl.h
+++ b/sysdeps/unix/sysv/linux/nios2/sys/cachectl.h
@@ -21,9 +21,6 @@
 
 #include <features.h>
 
-/* Get the kernel definition for the op bits.  */
-#include <asm/cachectl.h>
-
 __BEGIN_DECLS
 
 #ifdef __USE_MISC

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]