Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3178911imm; Tue, 29 May 2018 02:30:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI6F8beTEdXRwp4OJ0VGlmzf+0ppivBJ9xOzQXzu5p3bvJT224lD20/e4127ASktYsCJPYy X-Received: by 2002:a17:902:b216:: with SMTP id t22-v6mr13047199plr.199.1527586229642; Tue, 29 May 2018 02:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527586229; cv=none; d=google.com; s=arc-20160816; b=qzkv4UgGggqwD+IGXRqNYGWvwXA3hTRCtWvpymLk3FfufJN4SCOHXgj52f3cYS+Qsf tU4Z2GZya9c7b/n3gl/4O4jtio8gURJ37430y4i0QyfDtL5wTGoxAsucrPOIGBlGMWQV x7uE+EpEvT29feA8CgEgU/H42BcDFmZDMBLHJGMqEdNf2AXkDTuJMxOwRfPDMnY0cF4L 974KSHY7FQwlzODB+ISUng+tMdbf4HJoCeI+pe+Bf+1tW2ApFWSYPaoYK14byVfB5dpl sRieJGzKvDXNBgqmqDGX2wVnprZr5+XxJtdQdeNud0D8D9pFyB3ccYzFNTgHUXjts7Uw 1stg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=P6o57Gft9AvO5NvtcHIrhL6agGuPwCyMSO+X5HA+S9o=; b=VwTNlSDmN5Ic9gpNOxbq/tlKHikUoLNo9pLbXhb5U5y5BubcMXnNgpY8Tk97wX8ZOc yfbgcTjdaZ8mcwDfqJmoJEs7yu0tPzjfeWPs7d4+ZfyyhrtIxw56ADk/fLtrK3whu46z 8buVd+TqnqBjtnSqRbHqG8JG0YnCWo9usyYqMRwz0X1w6myQWoqV3x+5pG5QQC7G1rKX 1jC7+FWT3Yw5BjsV/cjNUiwRdkInz57xtkV/7tNpBIXLuBsLh9EJvuCDz8Sg4KTSvu+K TMD4O2ITf0gh7sOPc0Tq7sxs+xQq6NRyTEGsX4n8axJwQZ32USTnUelwutWWxljSr1Mn ZxJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dHLor6rZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q19-v6si7377456pls.139.2018.05.29.02.30.15; Tue, 29 May 2018 02:30:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dHLor6rZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932406AbeE2J3s (ORCPT + 99 others); Tue, 29 May 2018 05:29:48 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:44308 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932231AbeE2J3o (ORCPT ); Tue, 29 May 2018 05:29:44 -0400 Received: by mail-ua0-f195.google.com with SMTP id f30-v6so7734660uab.11 for ; Tue, 29 May 2018 02:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=P6o57Gft9AvO5NvtcHIrhL6agGuPwCyMSO+X5HA+S9o=; b=dHLor6rZVEvqDVKkqbyqck/b4S44upi7T4IP+eICsCcQmtiMB60bdRxUqluxg7+oy3 4QcypWifou1XUhVbf2BankJLOrlqzWCiuO5FjZFyUYGzV5GJSK09p5rugbCuuBGyPgZH 8BJtjdZ23iG2EGHU3hv1/ZbMNIoURtDeUeJ6G3OvOZfu1pb8Acm+srgmaVo/ClrsPqV3 ow/b8YHwdVUc5/mvB8MoZOOEh54VnQf/FFwjE314BAbfTSfLXKWhMrKxzTd+zoJXnX+W AtRwR/Zub0phVkOlRgJ30wGtD3fZgUk0VxnE56DJrItwa9UkcuUNooKlQ5R1NLNgwI0Z DEnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=P6o57Gft9AvO5NvtcHIrhL6agGuPwCyMSO+X5HA+S9o=; b=Qh5Z8T5cYHLGV0u7ckAlVnz4CudEUyriOUXPmHuG5wd5+JtQEQqTPX9JFgdxltdHTh VmOd7J4DrVNdhmXYrRGKX5QYPBIRKpdrdlglfTBCudHpDRAOccAChKKEit9eQ85Z2LH9 j3I9DXWeiyxGrMAHFVe6rBZ666LBkF7nrAugOW37ks9W+JGV0hG3YnUu4DzZA2yDu3CW TgL/z7OMN/MmOVK89M2lFtuc1Ip53mGNqfzDVxwzWEVdncH+0/0Ai7PYER04IsOoZLas ycEToYrRfPgGyKq9n7EyI7f5SYAzWKbUE7ETrdQ4NjUNyYgOdmCbEBxDxBK4Wb2Coumt Gmzg== X-Gm-Message-State: ALKqPwc4qa9+Ntube8aIJMp0U3DByuDW0kXoeHKRcwDnUVkTflPOIREy 2WfjGGV7pVnLbyU4KCLQUAvmuyfQF6lgTPsIXnA= X-Received: by 2002:ab0:7089:: with SMTP id m9-v6mr4401678ual.141.1527586183522; Tue, 29 May 2018 02:29:43 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:4f23:0:0:0:0:0 with HTTP; Tue, 29 May 2018 02:29:03 -0700 (PDT) In-Reply-To: <20180528162902.15358-1-luc.vanoostenryck@gmail.com> References: <20180528162902.15358-1-luc.vanoostenryck@gmail.com> From: Greentime Hu Date: Tue, 29 May 2018 17:29:03 +0800 Message-ID: Subject: Re: [PATCH] nds32: define __NDS32_E[BL]__ for sparse To: Luc Van Oostenryck Cc: Linux Kernel Mailing List , Vincent Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-05-29 0:29 GMT+08:00 Luc Van Oostenryck : > nds32 depends on the macros '__NDS32_E[BL]__' to correctly > select or define endian-specific macros, structures or pieces > of code. > > These macros are predefined by the compiler but sparse knows nothing > about them and thus may pre-process files differently from what > GCC would. > > Fix this by adding '-D__NDS32_E[BL]__' to CHECKFLAGS. > > Signed-off-by: Luc Van Oostenryck > --- > arch/nds32/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/nds32/Makefile b/arch/nds32/Makefile > index 513bb2e9b..031c67682 100644 > --- a/arch/nds32/Makefile > +++ b/arch/nds32/Makefile > @@ -34,10 +34,12 @@ ifdef CONFIG_CPU_LITTLE_ENDIAN > KBUILD_CFLAGS += $(call cc-option, -EL) > KBUILD_AFLAGS += $(call cc-option, -EL) > LDFLAGS += $(call cc-option, -EL) > +CHECKFLAGS += -D__NDS32_EL__ > else > KBUILD_CFLAGS += $(call cc-option, -EB) > KBUILD_AFLAGS += $(call cc-option, -EB) > LDFLAGS += $(call cc-option, -EB) > +CHECKFLAGS += -D__NDS32_EB__ > endif > > boot := arch/nds32/boot Thank you Luc. I'll pick it in my tree. Acked-by: Greentime Hu