From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21164 invoked by alias); 20 Jun 2006 21:52:46 -0000 Received: (qmail 21155 invoked by uid 22791); 20 Jun 2006 21:52:45 -0000 X-Spam-Check-By: sourceware.org Received: from wsip-24-248-2-174.ph.ph.cox.net (HELO public.ninemoons.com) (24.248.2.174) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Jun 2006 21:52:43 +0000 Received: from ph.diveadx.com ([208.255.96.17]) by public.ninemoons.com (8.13.6/8.13.4) with ESMTP id k5KLqW3G012376; Tue, 20 Jun 2006 14:52:36 -0700 Received: by ph.diveadx.com (Postfix, from userid 500) id EC988DFCEC; Tue, 20 Jun 2006 17:52:34 -0400 (EDT) Subject: [PATCH] Don't include private kernel header building powerpc-elf sim To: gdb-patches@sourceware.org Date: Tue, 20 Jun 2006 21:52:00 -0000 Cc: fnf@specifix.com Reply-To: fnf@specifix.com X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20060620215234.EC988DFCEC@ph.diveadx.com> From: fnf@ph.diveadx.com (Fred Fish) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00296.txt.bz2 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 instead! apparently due to the following line in asm/byteorder.h: #warning using private kernel header; include 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 + + * sim-endian.h (asm/byteorder.h): Don't include private kernel + header. + 2006-06-13 Richard Earnshaw * 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 - # include # if defined(__LITTLE_ENDIAN) && !defined(LITTLE_ENDIAN) # define LITTLE_ENDIAN __LITTLE_ENDIAN # endif --- 94,99 ----