Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759138Ab3E1XEX (ORCPT ); Tue, 28 May 2013 19:04:23 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:51852 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757398Ab3E1XEV (ORCPT ); Tue, 28 May 2013 19:04:21 -0400 X-AuditID: cbfee68f-b7f436d000000f81-df-51a537f4afd1 From: Jonghwan Choi To: "'Jonghwan Choi'" , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, "'Paul Sokolovsky'" , "'Dave Airlie'" References: In-reply-to: Subject: [PATCH 3.9-stable] drm.h: Fix DRM compilation with bare-metal toolchain.'Mark Brown' Date: Wed, 29 May 2013 08:04:19 +0900 Message-id: <000301ce5bf7$af821270$0e863750$%choi@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4vhL6OHdYi6A9aR4m9yzeDEXJPogAflJswAu8tBWABA4TFIAFsOElwAIhNXzAAnKxWYACLd58QADUgf7AB+cfNsAAATvIgAGq8R4ABU82dgA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAIsWRmVeSWpSXmKPExsVy+t8zA90v5ksDDb7c5La4emsBk8WSZm6L y7vmsFmcv3+a3WLBxkeMDqwed67tYfN4v+8qm0ffllWMHp83yQWwRHHZpKTmZJalFunbJXBl vOlsYyt4zFEx4ehu1gbGNexdjBwcEgImEgtm83UxcgKZYhIX7q1n62Lk4hASWMYo0fV9PSNE wkRi6avf7BCJRYwSDd83MUI4fxkl3my6CVbFJqArcWz9FlYQW0TAW+LUlF/MIDazQIHEt70H 2UC2CQlwS6xuDgIJcwrwSKz70wlWIiyQINExazETiM0ioCrR/LgTbAyvgJ3EnKWnmCBsQYkf k++xQIzUkli/8zgThC0vsXnNW2aIZ9QlHv3VBTlNRKCBUeL5569QNSI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6dyCwl mpwPTEx5JfGGxiZmRpZGZhZGJubmpAkrifMebLUOFBJITyxJzU5NLUgtgtnCxMEp1cA46/Rn CdlavsvXmM8Jri4POffeuYNPz5m/gGNbprLcuv4ih4tZTcvf8H5fkJy++EZ29OPIg184SmsX r2kPXrHCqOhpkfKqj122r6zsWhSyJ588JHyiX9Boh9nKUtUfM/fkM/t/lJ0Z0eyXI6NTLr/O /oSlbWci34mUO3ftFEwUX2bLMv43uaTEUpyRaKjFXFScCAAjnh6QQgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1329 Lines: 44 This patch looks like it should be in the 3.9-stable tree, should we apply it? ------------------ From: "Paul Sokolovsky " commit b6330548383cf18d608faf1c2dc0c81c60476233 upstream An ifdef in drm.h expects to be compiled with full-fledged Linux toolchain, but it's common to compile kernel with just bare-metal toolchain which doesn't define __linux__. So, also add __KERNEL__ check. [nm@ti.com: port forward to 3.9-rc6 and post to dri devel for feedback as RFC] Signed-off-by: Paul Sokolovsky Signed-off-by: Dave Airlie Signed-off-by: Jonghwan Choi --- include/uapi/drm/drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h index 8d1e2bb..73a99e4 100644 --- a/include/uapi/drm/drm.h +++ b/include/uapi/drm/drm.h @@ -36,7 +36,7 @@ #ifndef _DRM_H_ #define _DRM_H_ -#if defined(__linux__) +#if defined(__KERNEL__) || defined(__linux__) #include #include -- 1.7.9.5 -- 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/