Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2706863ybc; Mon, 25 Nov 2019 02:51:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxKteWMo9TuxHNzEBKYzBZa9wTgqCqYa8vrbf5b546o/pDUqJDklNebkB7eRNIMDE0eKh3n X-Received: by 2002:a17:906:48b:: with SMTP id f11mr36328875eja.225.1574679073518; Mon, 25 Nov 2019 02:51:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574679073; cv=none; d=google.com; s=arc-20160816; b=vMKAz7eN/smkIFVY9ZzERY9hKlKh2D7m283ikM51fdgN97if7ZXGnrO+2CUhXBgbSr 7Vv/cMICCjUIDUQKi8z4wrz4Kk9bOwnQeKeTCYJ3v4aM4YP8TTzpfcEykOW9mu7N/h7a Lp40HvYp4iQTJ3Q/VknFab6srWWc7ci8CPNGoe0VUGsNgAlEbEFe+14HSKrfyBTiwBDY z11O3/u8fbFDpwNBv32T9/fXctXikZ5njZM1NuaBS2dudnKfn/yHpU84xXkwDD1pej4s KcDfAlMKBWBvZhDGOvvj3nDT2Rhc7WYV4aUx/S3Ss9j+DMYt9iGC71eNFu9mQ7ifPTHz Bi2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=9wS0yqC00UTNCE0PT2ZlfheHhVnc0BNpwTjitrykRuY=; b=hvPIMw+4eUzW+lsAQUG/pQcV+kviaRLze5kD+k9zWFl1O/VzbRDqDXOnjU9rOcL8BJ lljbjKozXkWc2nYORcY3lDqsdHx0K/DmDPdHHS/w7BMZszZksyDr/ZkfK7HGWED1u+Ql 3rKLeXZhu10+G26+oBgGzkz0HCMt5fVHf3r8gtS80IvEAhmBMfdRqxri+uhi+d6KUTpj pK3JWg3PR5k8062CQAEaEn/rXznUkv02KZyrsSFjeQDnaCY4UK9lrVexV4YuMuxM+Qas 1XWFTQ3wtvVCVXDOJtpwpjX2Io0WyBQvtmCZpheodOz4hcA5v+1uPT0pjj4GrR+wh7jE nlWQ== 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 i30si5333361edd.124.2019.11.25.02.50.48; Mon, 25 Nov 2019 02:51:13 -0800 (PST) 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 S1727851AbfKYKrJ (ORCPT + 99 others); Mon, 25 Nov 2019 05:47:09 -0500 Received: from ozlabs.org ([203.11.71.1]:38755 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727830AbfKYKrH (ORCPT ); Mon, 25 Nov 2019 05:47:07 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 47M3d43gCcz9sRD; Mon, 25 Nov 2019 21:47:04 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 77693a5fb57be4606a6024ec8e3076f9499b906b In-Reply-To: To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , npiggin@gmail.com, hch@infradead.org From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 2/4] powerpc/fixmap: Use __fix_to_virt() instead of fix_to_virt() Message-Id: <47M3d43gCcz9sRD@ozlabs.org> Date: Mon, 25 Nov 2019 21:47:04 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-09-12 at 13:49:42 UTC, Christophe Leroy wrote: > Modify back __set_fixmap() to using __fix_to_virt() instead > of fix_to_virt() otherwise the following happens because it > seems GCC doesn't see idx as a builtin const. > > CC mm/early_ioremap.o > In file included from ./include/linux/kernel.h:11:0, > from mm/early_ioremap.c:11: > In function ‘fix_to_virt’, > inlined from ‘__set_fixmap’ at ./arch/powerpc/include/asm/fixmap.h:87:2, > inlined from ‘__early_ioremap’ at mm/early_ioremap.c:156:4: > ./include/linux/compiler.h:350:38: error: call to ‘__compiletime_assert_32’ declared with attribute error: BUILD_BUG_ON failed: idx >= __end_of_fixed_addresses > _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) > ^ > ./include/linux/compiler.h:331:4: note: in definition of macro ‘__compiletime_assert’ > prefix ## suffix(); \ > ^ > ./include/linux/compiler.h:350:2: note: in expansion of macro ‘_compiletime_assert’ > _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) > ^ > ./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’ > #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) > ^ > ./include/linux/build_bug.h:50:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’ > BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) > ^ > ./include/asm-generic/fixmap.h:32:2: note: in expansion of macro ‘BUILD_BUG_ON’ > BUILD_BUG_ON(idx >= __end_of_fixed_addresses); > ^ > > Signed-off-by: Christophe Leroy > Fixes: 4cfac2f9c7f1 ("powerpc/mm: Simplify __set_fixmap()") Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/77693a5fb57be4606a6024ec8e3076f9499b906b cheers