From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753950AbbCBWiq (ORCPT ); Mon, 2 Mar 2015 17:38:46 -0500 Received: from mail113-248.mail.alibaba.com ([205.204.113.248]:47914 "EHLO us-alimail-mta2.hst.scl.en.alidc.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751237AbbCBWip (ORCPT ); Mon, 2 Mar 2015 17:38:45 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08559983|-1;FP=0|0|0|0|0|-1|-1|-1;HT=r46d02036;MF=gang.chen@sunrus.com.cn;PH=DS;RN=2;RT=2;SR=0; Message-ID: <54F4E831.3080508@sunrus.com.cn> Date: Tue, 03 Mar 2015 06:46:09 +0800 From: Chen Gang S User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Chen Gang <762976180@qq.com>, "linux-kernel@vger.kernel.org" Subject: Fwd: [PATCH] c6x: Makefile: Add -D__linux__ References: <54F4E546.9090906@qq.com> In-Reply-To: <54F4E546.9090906@qq.com> X-Forwarded-Message-Id: <54F4E546.9090906@qq.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just forward mail. -------- Forwarded Message -------- Subject: [PATCH] c6x: Makefile: Add -D__linux__ Date: Tue, 03 Mar 2015 06:33:42 +0800 From: Chen Gang <762976180@qq.com> To: Mark Salter , a-jacquiot@ti.com CC: linux-c6x-dev@linux-c6x.org , linux-kernel@vger.kernel.org For gcc5 c6x raw compiler, at present, it may not define __linux__, so c6x kernel still needs to define __linux__ just like another archs have done. The related error: CC [M] fs/coda/psdev.o In file included from include/linux/coda.h:64:0, from fs/coda/psdev.c:45: include/uapi/linux/coda.h:221:2: error: unknown type name 'u_quad_t' u_quad_t va_size; /* file size in bytes */ ^ include/uapi/linux/coda.h:229:2: error: unknown type name 'u_quad_t' u_quad_t va_bytes; /* bytes of disk space held by file */ ^ include/uapi/linux/coda.h:230:2: error: unknown type name 'u_quad_t' u_quad_t va_filerev; /* file modification number */ ^ Signed-off-by: Chen Gang --- arch/c6x/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/c6x/Makefile b/arch/c6x/Makefile index e72eb34..6b0be67 100644 --- a/arch/c6x/Makefile +++ b/arch/c6x/Makefile @@ -8,7 +8,7 @@ KBUILD_DEFCONFIG := dsk6455_defconfig -cflags-y += -mno-dsbt -msdata=none +cflags-y += -mno-dsbt -msdata=none -D__linux__ cflags-$(CONFIG_C6X_BIG_KERNEL) += -mlong-calls -- 1.9.3