Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: fnf@ph.diveadx.com (Fred Fish)
To: gdb-patches@sourceware.org
Cc: fnf@specifix.com
Subject: [PATCH] Don't include private kernel header building powerpc-elf sim
Date: Tue, 20 Jun 2006 21:52:00 -0000	[thread overview]
Message-ID: <20060620215234.EC988DFCEC@ph.diveadx.com> (raw)

When building powerpc-eabi gdb on Fedora Core 5 I'm getting a bunch
of warnings of the form:

  In file included from /src/latest/patched/src/gdb/sim/ppc/sim-endian.h:97,
                 from /src/latest/patched/src/gdb/sim/ppc/basics.h:137,
                 from /src/latest/patched/src/gdb/sim/ppc/psim.h:25,
                 from /src/latest/patched/src/gdb/sim/ppc/gdb-sim.c:22:
  /usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header; include <endian.h> instead!

apparently due to the following line in asm/byteorder.h:

  #warning using private kernel header; include <endian.h> instead!

Removing the inclusion gets rid of the warning with no apparent ill
effects in either compiling or running the gdb testsuite.

Index: gdb/sim/ppc/ChangeLog
===================================================================
RCS file: /cvsroots/latest/src/gdb/sim/ppc/ChangeLog,v
retrieving revision 1.1.1.6.2.2
diff -c -p -r1.1.1.6.2.2 ChangeLog
*** gdb/sim/ppc/ChangeLog	14 Jun 2006 13:59:20 -0000	1.1.1.6.2.2
--- gdb/sim/ppc/ChangeLog	20 Jun 2006 20:53:52 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2006-06-20  Fred Fish  <fnf@specifix.com>
+ 
+ 	* sim-endian.h (asm/byteorder.h): Don't include private kernel
+ 	header.
+ 
  2006-06-13  Richard Earnshaw  <rearnsha@arm.com>
  
  	* configure: Regenerated.
Index: gdb/sim/ppc/sim-endian.h
===================================================================
RCS file: /cvsroots/latest/src/gdb/sim/ppc/sim-endian.h,v
retrieving revision 1.1.1.1
diff -c -p -r1.1.1.1 sim-endian.h
*** gdb/sim/ppc/sim-endian.h	8 Oct 2005 19:36:31 -0000	1.1.1.1
--- gdb/sim/ppc/sim-endian.h	20 Jun 2006 20:58:40 -0000
*************** INLINE_PSIM_ENDIAN(unsigned_8) endian_le
*** 94,100 ****
  
  #if defined(__linux__)
  # include <endian.h>
- # include <asm/byteorder.h>
  # if defined(__LITTLE_ENDIAN) && !defined(LITTLE_ENDIAN)
  #  define LITTLE_ENDIAN __LITTLE_ENDIAN
  # endif
--- 94,99 ----


             reply	other threads:[~2006-06-20 21:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-20 21:52 Fred Fish [this message]
2006-07-12 21:19 ` Daniel Jacobowitz
2006-07-12 21:38   ` Fred Fish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060620215234.EC988DFCEC@ph.diveadx.com \
    --to=fnf@ph.diveadx.com \
    --cc=fnf@specifix.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox