From patchwork Sat Mar 24 09:14:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 148495 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id D4D29B6EE7 for ; Sat, 24 Mar 2012 20:17:58 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B69A5A0073; Sat, 24 Mar 2012 09:17:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kv2hzCygrOPs; Sat, 24 Mar 2012 09:17:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6E03FA007B; Sat, 24 Mar 2012 09:17:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1B8F88F753 for ; Sat, 24 Mar 2012 09:17:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0F9D88F760 for ; Sat, 24 Mar 2012 09:17:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36xBGPEMkeXz for ; Sat, 24 Mar 2012 09:17:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4C3B98F751 for ; Sat, 24 Mar 2012 09:17:53 +0000 (UTC) Received: by wibhm17 with SMTP id hm17so2461545wib.4 for ; Sat, 24 Mar 2012 02:17:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=oI5+2k5UHpwW3nmDHdnqbkVzqpl2mQczUyGa/BtJUYk=; b=R+eiW2d38HK9YMBrQwcS8BYEA22gco0RxV1DYUO2iAlq//xW60JhN98stnmRcIMEfE VCBBvk5Wa0XtckP/2hVsOpx4fBkpNVR7qEL2j/4j/OmVS6t6WCQRIi2ihKddqMYbp80h 2SMhJsTmBTEfeDEvmLOOkkafiOVjdsmLE/GeEu7Hw0RYYXE//V25I8yZY30sI36Bd2dR 9bYMyt2GT2NZkmD1jwamqKiXmmezy6KSFy+tKGGL6utawaOhdkUjrJFOoIvc1vabEX7L W4hlxM/IPHGsarvPJ8aQ3Dht1ynaMEVxHB3NuwX/pTGM97Bx16sGwrTkakK26POuh/G5 kKwA== Received: by 10.180.19.196 with SMTP id h4mr3736189wie.12.1332580671188; Sat, 24 Mar 2012 02:17:51 -0700 (PDT) Received: from localhost.localdomain (host-78-150-207-28.as13285.net. [78.150.207.28]) by mx.google.com with ESMTPS id n8sm34936081wix.10.2012.03.24.02.17.49 (version=SSLv3 cipher=OTHER); Sat, 24 Mar 2012 02:17:50 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Sat, 24 Mar 2012 09:14:44 +0000 Message-Id: <1332580484-4489-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.7.5.4 Subject: [Buildroot] [PATCH] Fix problem with undefined umode_t type in 3.3 kernel headers X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Simon Dawson The 3.3 kernel headers define the umode_t type within a __KERNEL__ preprocessor ifdef region. This results in a broken kernel header in the buildroot toolchain. Signed-off-by: Simon Dawson --- .../kernel-headers/linux-3.3-fix-umode_t.patch | 22 ++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) create mode 100644 toolchain/kernel-headers/linux-3.3-fix-umode_t.patch diff --git a/toolchain/kernel-headers/linux-3.3-fix-umode_t.patch b/toolchain/kernel-headers/linux-3.3-fix-umode_t.patch new file mode 100644 index 0000000..9663662 --- /dev/null +++ b/toolchain/kernel-headers/linux-3.3-fix-umode_t.patch @@ -0,0 +1,22 @@ +Fix a problem with the 3.3 kernel headers. Specifically, the umode_t type +is defined within a __KERNEL__ preprocessor ifdef region, and so the type +is not usable by non-kernel code. Visit the following URL for more details. + +* http://www.spinics.net/lists/linux-fsdevel/msg52638.html + +The commit that created the problem can be seen at the following URL. + +* http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=commitdiff;h=0583fcc96bb117763c0fa74c123573c0112dec65 + +diff -Nur a/include/linux/ext2_fs.h b/include/linux/ext2_fs.h +--- a/include/linux/ext2_fs.h 2012-03-18 23:15:34.000000000 +0000 ++++ b/include/linux/ext2_fs.h 2012-03-21 11:47:53.015548437 +0000 +@@ -209,7 +209,7 @@ + #define EXT2_OTHER_FLMASK (EXT2_NODUMP_FL | EXT2_NOATIME_FL) + + /* Mask out flags that are inappropriate for the given type of inode. */ +-static inline __u32 ext2_mask_flags(umode_t mode, __u32 flags) ++static inline __u32 ext2_mask_flags(unsigned short mode, __u32 flags) + { + if (S_ISDIR(mode)) + return flags;