Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755985Ab2BVMXW (ORCPT ); Wed, 22 Feb 2012 07:23:22 -0500 Received: from moutng.kundenserver.de ([212.227.126.171]:54724 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753439Ab2BVMXN (ORCPT ); Wed, 22 Feb 2012 07:23:13 -0500 From: Arnd Bergmann To: "H. Peter Anvin" Subject: Re: [PATCH 02/30] x86-64: Use explicit sizes in sigcontext.h, prepare for x32 Date: Wed, 22 Feb 2012 12:22:58 +0000 User-Agent: KMail/1.12.2 (Linux/3.3.0-rc1; KDE/4.3.2; x86_64; ; ) Cc: Linus Torvalds , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de, akpm@linux-foundation.org, hjl.tools@gmail.com References: <1329696488-16970-1-git-send-email-hpa@zytor.com> <4F419A28.1060903@zytor.com> In-Reply-To: <4F419A28.1060903@zytor.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201202221222.58399.arnd@arndb.de> X-Provags-ID: V02:K0:/q1jAjDLoG2+Br7chSxIQJRyWZgHoCNOHv2fLppnmMf 59xf4cpkno62f443Q5Pjaju7uirYfVfc1e3mAN/qZJN6Y2Qx+j GSs+7dkDV2xDdcGnWXykXgCIi0QQHafezEE7cJ1oLLFHGLqawK A27orajFQrCe3nUQuv4ES+ZGm510aI1w6g1t57xQoolJiZAphm v8vp7koAppd8DninBtK58KXVa10HlPQn/bNsljktGJLJIfKT2u 62XyBSpJzCmUe+9f8+wgY/wDdFOlGpupwQC16tFlP/exPnGn7T pnS8ejbEca+1ggqqfboLMeJ12hwVCYCpVamR0Gt9Wynac1w7tE ggMehmoUNeCvtxz4dzQI= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 926 Lines: 22 On Monday 20 February 2012, H. Peter Anvin wrote: > We are using __u64 as x86-32 compatible since we are sharing most of the > really complex path (like ioctl) with i386 much more so than x86-64. So > it is defined in userspace as: > > typedef unsigned long long __u64 __attribute__((aligned(4))); > > __aligned_u64 obviously is naturally aligned, which matches uint64_t is > userspace. Has someone audited the interfaces to check if there are data structures that use a plain signed or unsigned "long long" instead of __s64/__u64 in places where i386 differs from the other compat implementations? I found DRM_IOCTL_UPDATE_DRAW, but there could be more like this one. Arnd -- 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/