Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755314Ab2BOUTX (ORCPT ); Wed, 15 Feb 2012 15:19:23 -0500 Received: from mail-qw0-f46.google.com ([209.85.216.46]:60846 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753132Ab2BOUTW (ORCPT ); Wed, 15 Feb 2012 15:19:22 -0500 Date: Wed, 15 Feb 2012 15:19:18 -0500 (EST) From: Nicolas Pitre To: Eric Paris cc: Russell King - ARM Linux , Axel Lin , linux-kernel@vger.kernel.org, Nathaniel Husted , Will Deacon , Dave Martin , Ingo Molnar , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: ptrace: Include linux/audit.h to fix build errors In-Reply-To: <1329335879.2337.18.camel@localhost> Message-ID: References: <1329284188.12708.1.camel@phoenix> <20120215083609.GD13673@n2100.arm.linux.org.uk> <1329325622.2337.13.camel@localhost> <20120215173443.GF27825@n2100.arm.linux.org.uk> <1329335879.2337.18.camel@localhost> User-Agent: Alpine 2.02 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 950 Lines: 29 On Wed, 15 Feb 2012, Eric Paris wrote: > On Wed, 2012-02-15 at 17:34 +0000, Russell King - ARM Linux wrote: > > On Wed, Feb 15, 2012 at 12:07:02PM -0500, Eric Paris wrote: > > > So if someone tells me how the code knows it's endianness I'll gladly > > > write the ifdef to switch from AUDIT_ARCH_ARMEB to AUDIT_ARCH_ARM when > > > appropriate.... > > > > An easy way would be: > > > > #ifndef __ARMEB__ > > #define AUDIT_ARCH_NR AUDIT_ARCH_ARMEB > > #else > > #define AUDIT_ARCH_NR AUDIT_ARCH_ARM > > #endif > > Is that actually exactly backwards? ifndef? (I don't have a clue > when __ARMEB__ is set) __ARMEB__ is set on big endian. So the above condition should be ifdef not ifndef. Nicolas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/