Received: by 10.192.165.148 with SMTP id m20csp1096272imm; Thu, 10 May 2018 05:41:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoq398kID5X6DMNtemknl+QBTZrwkMv3qUA9oPiACy3sp7K1PNkB3yO9FqRcNHB3vwXvxYi X-Received: by 2002:a17:902:31a4:: with SMTP id x33-v6mr1248637plb.355.1525956095167; Thu, 10 May 2018 05:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525956095; cv=none; d=google.com; s=arc-20160816; b=IxmFMY68mVmbhKXYqV8+DmK7oGZBK1EqzNf8NONXY1e+KMJIHJvAO8bpiso2wFtWrN IS2pelqzYCf4ADqqwrMWATPIQepsFiGd86j4k2MkfbCx9FgCX7g7i1ZQrn0ZzXQ4sOFH 5I5ohmGxOIJ4mZaO8PWPfnefDSGNv2JwpXkiEdQUq7pNLF6S4vnWRnPFRFaNc78v7LRs +WErJMIYfifZMNFNyxGxYlD8+x90CVpmib+PN14pxOidC0zQ/oZK4bflJhEeV3L+pulY RPQT7e6L7n/TtOnWmd7irtgk8Kbj2nUk3zAOhc+fKGmqMdsamnPqL8Itltlhb3ejXIo7 8eVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=X8H8Kno2gHFTQ7VqV15kaN95d1MVplIbHuXSjAQrH2s=; b=Z7Sj2heTxY/cqlDmQ9EQInc2r3SehW8BXyjvYpctNGnCWTG3PjZuvc+AG4piapbyVc M3DuFRFQVFA0nxhMcDgMF4Mdo3vBJf92U9b+0G6g1WpJENFR+xM24HgLWi27u4i0yJyJ U2VO4aXx5skb1dYQCEI0rZkIMO/U9SwBINa8CuLDVE/8jIrCGfxkGw0zYwEafCLXsWq2 3+ALXWxyQKj2MIdYfY9cE1KPNw1Zze+6D2ECMogG01jsxCqOKf7MJLC4FFVc3iD4S+PO AZBaRcHsw7f1gk2VwHssIMNxYc0kOIywc9xZBajHnRrhR+VIVe/13RPoCsF9YWXYhNcn uQJQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg6-v6si681150plb.243.2018.05.10.05.41.20; Thu, 10 May 2018 05:41:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757370AbeEJMj2 (ORCPT + 99 others); Thu, 10 May 2018 08:39:28 -0400 Received: from mga03.intel.com ([134.134.136.65]:5593 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757217AbeEJMj0 (ORCPT ); Thu, 10 May 2018 08:39:26 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 May 2018 05:39:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,385,1520924400"; d="scan'208";a="38267428" Received: from gvt-dell.bj.intel.com (HELO intel.com) ([10.238.154.59]) by fmsmga007.fm.intel.com with SMTP; 10 May 2018 05:39:22 -0700 Date: Thu, 10 May 2018 20:29:12 +0800 From: "Du, Changbin" To: Steven Rostedt Cc: changbin.du@intel.com, yamada.masahiro@socionext.com, michal.lkml@markovi.net, tglx@linutronix.de, mingo@redhat.com, akpm@linux-foundation.org, rdunlap@infradead.org, x86@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, arnd@arndb.de, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH v4 4/4] asm-generic: fix build error in fix_to_virt with CONFIG_CC_OPTIMIZE_FOR_DEBUGGING Message-ID: <20180510122912.mqmpy4j4dj2trb5r@intel.com> References: <1525855396-7908-1-git-send-email-changbin.du@intel.com> <1525855396-7908-5-git-send-email-changbin.du@intel.com> <20180509085224.34116e36@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180509085224.34116e36@gandalf.local.home> User-Agent: NeoMutt/20180323-6-5ca392 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 08:52:24AM -0400, Steven Rostedt wrote: > On Wed, 9 May 2018 16:43:16 +0800 > changbin.du@intel.com wrote: > > > From: Changbin Du > > > > With '-Og' optimization level, GCC would not optimize a count for a loop > > as a constant value. But BUILD_BUG_ON() only accept compile-time constant > > values. Let's use __fix_to_virt() to avoid the error. > > > > arch/arm/mm/mmu.o: In function `fix_to_virt': > > /home/changbin/work/linux/./include/asm-generic/fixmap.h:31: undefined reference to `__compiletime_assert_31' > > Makefile:1051: recipe for target 'vmlinux' failed > > make: *** [vmlinux] Error 1 > > Perhaps we should put this patch ahead of patch 3. Why allow it to > break? > Agree, let me exchange the last two patches. > Anyway, besides that, I think the series looks good. > > For the series: Acked-by: Steven Rostedt (VMware) > > -- Steve > > > > > > Signed-off-by: Changbin Du > > > > --- > > v2: use __fix_to_virt() to fix the issue. > > --- > > arch/arm/mm/mmu.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c > > index e46a6a4..c08d74e 100644 > > --- a/arch/arm/mm/mmu.c > > +++ b/arch/arm/mm/mmu.c > > @@ -1599,7 +1599,7 @@ static void __init early_fixmap_shutdown(void) > > pte_t *pte; > > struct map_desc map; > > > > - map.virtual = fix_to_virt(i); > > + map.virtual = __fix_to_virt(i); > > pte = pte_offset_early_fixmap(pmd_off_k(map.virtual), map.virtual); > > > > /* Only i/o device mappings are supported ATM */ > -- Thanks, Changbin Du