mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chen Gang <xili_gchen_5257@hotmail.com>
To: realmz6@gmail.com
Cc: "adi-buildroot-devel@lists.sourceforge.net" 
	<adi-buildroot-devel@lists.sourceforge.net>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH] blackfin: Makefile: Add -D__linux__ flag for KBUILD_CFLAGS
Date: Sat, 4 Apr 2015 04:19:47 +0800	[thread overview]
Message-ID: <BLU436-SMTP66360DEECE43B208F66439B9F10@phx.gbl> (raw)

The related error with allmodconfig:

    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 <gang.chen.5i5j@gmail.com>
---
 arch/blackfin/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile
index 1fce086..2ece4e3 100644
--- a/arch/blackfin/Makefile
+++ b/arch/blackfin/Makefile
@@ -13,7 +13,7 @@ LDFLAGS_vmlinux  := -X
 OBJCOPYFLAGS     := -O binary -R .note -R .comment -S
 GZFLAGS          := -9
 
-KBUILD_CFLAGS           += $(call cc-option,-mno-fdpic)
+KBUILD_CFLAGS           += $(call cc-option,-mno-fdpic) -D__linux__
 ifeq ($(CONFIG_ROMKERNEL),y)
 KBUILD_CFLAGS           += -mlong-calls
 endif
-- 
1.9.3

             reply	other threads:[~2015-04-03 20:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-03 20:19 Chen Gang [this message]
2015-04-03 22:56 ` Richard Weinberger
2015-04-04 21:13   ` Chen Gang
2015-04-04 21:17     ` Richard Weinberger
2015-04-04 21:29       ` Chen Gang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BLU436-SMTP66360DEECE43B208F66439B9F10@phx.gbl \
    --to=xili_gchen_5257@hotmail.com \
    --cc=adi-buildroot-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=realmz6@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®