From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932298AbZD0PNH (ORCPT ); Mon, 27 Apr 2009 11:13:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757479AbZD0PH6 (ORCPT ); Mon, 27 Apr 2009 11:07:58 -0400 Received: from moutng.kundenserver.de ([212.227.126.188]:58326 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756228AbZD0PHm (ORCPT ); Mon, 27 Apr 2009 11:07:42 -0400 Message-Id: <20090427150319.391473010@arndb.de> References: <20090427142010.587518220@arndb.de> User-Agent: quilt/0.46-1 Date: Mon, 27 Apr 2009 17:01:27 +0200 From: arnd@arndb.de To: linux-kernel@vger.kernel.org Cc: john.williams@petalogix.com, monstr@monstr.eu, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, liqin.chen@sunplusct.com, Sam Ravnborg , Remis Lima Baima Subject: [RFC 13/17] ipc: use __ARCH_WANT_IPC_PARSE_VERSION in ipc/util.h Content-Disposition: inline; filename=0022-ipc-use-__ARCH_WANT_IPC_PARSE_VERSION-in-ipc-util.h.patch X-Provags-ID: V01U2FsdGVkX18bUTor+e3jd/7uY5ugiZIbjkH0bqDKNsPzPim mu7taSfFgGeRaxsEyg6jZHigjK7izriwUym722dSBHQ5Tw1Igr DMdP3XyihOPA1e9U9ottw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The definition of ipc_parse_version depends on __ARCH_WANT_IPC_PARSE_VERSION, but the header file declares it conditionally based on the architecture. Use the macro consistently to make it easier to add new architectures. Signed-off-by: Arnd Bergmann --- ipc/util.h | 2 1 + 1 - 0 ! 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/ipc/util.h =================================================================== --- linux-2.6.orig/ipc/util.h +++ linux-2.6/ipc/util.h @@ -128,7 +128,7 @@ void ipc_update_perm(struct ipc64_perm * struct kern_ipc_perm *ipcctl_pre_down(struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm); -#if defined(__ia64__) || defined(__x86_64__) || defined(__hppa__) || defined(__XTENSA__) +#ifndef __ARCH_WANT_IPC_PARSE_VERSION /* On IA-64, we always use the "64-bit version" of the IPC structures. */ # define ipc_parse_version(cmd) IPC_64 #else --