From patchwork Thu Jul 28 15:53:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 1016312 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6SFsBUE000881 for ; Thu, 28 Jul 2011 15:54:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755602Ab1G1Pxy (ORCPT ); Thu, 28 Jul 2011 11:53:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53242 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755525Ab1G1Pxx (ORCPT ); Thu, 28 Jul 2011 11:53:53 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6SFrMd5032069 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Jul 2011 11:53:22 -0400 Received: from warthog.procyon.org.uk ([10.3.112.8]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p6SFrJk8031503; Thu, 28 Jul 2011 11:53:20 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells Subject: [PATCH 25/40] UAPI: Fix u_quad_t ordering problem in linux/coda.h [ver #3] To: torvalds@osdl.org Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, David Howells Date: Thu, 28 Jul 2011 16:53:19 +0100 Message-ID: <20110728155318.16618.81445.stgit@warthog.procyon.org.uk> In-Reply-To: <20110728154920.16618.89358.stgit@warthog.procyon.org.uk> References: <20110728154920.16618.89358.stgit@warthog.procyon.org.uk> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 28 Jul 2011 15:54:12 +0000 (UTC) There's an ordering problem around the definition of u_quad_t in linux/coda.h: the definition in the kernel-specific header is referred to in the user-specific header data structures. When compiling userspace, the user-specific header provides an alternate version of u_quad_t. To get around this problem, place a marker specifically to indicate the point at which the UAPI header should be included in the kernel-specific file. The marker will be deleted later. Signed-off-by: David Howells --- include/linux/coda.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/coda.h b/include/linux/coda.h index 96c8769..5a2c1a0 100644 --- a/include/linux/coda.h +++ b/include/linux/coda.h @@ -111,6 +111,7 @@ typedef unsigned long long u_quad_t; #else #define cdev_t dev_t #endif +// DISINTEGRATE: INCLUDE UAPI HERE #ifdef __CYGWIN32__ struct timespec {