Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp255322ybt; Thu, 9 Jul 2020 21:57:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGPm9MdZEMMkBB9wWPH0mGcYhmzuCmqLT/fa5I20P0XWnwcEddhYgq/m/NBpPgL8mdyRL+ X-Received: by 2002:a17:906:abc9:: with SMTP id kq9mr60472561ejb.493.1594357068950; Thu, 09 Jul 2020 21:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594357068; cv=none; d=google.com; s=arc-20160816; b=Y8ku2rgcgoNHy/C/IRXcnpe+ngT2bdXWQC6FbnMH6LttTnjAj1vgVo571jNwyhFA0U LKmk0z6V9r4HeXmgx6GuPwUomCcQtlTjQ5sbMhR0cx7WzOrO6mhGJogxQ5QLRBiqoboT 2yEPuiLgw1EUxY0/huDO1kdxeNStyHN7A+MXSGeyl5O6ZGaNm+BIfsc7KbHS2YgUWWAd WB1973FlUrk96MOYapDp9D5+vprrimG+5h2qXZtsuIuDRPj57iZ77mZAPX4WTw51CNax 3IeiuMc1+c8uqkmWh800EIxLiaUfVTDNGjAQaQwwyA7Y5V1qwSvupVKQGIFr/CslRJfb eWDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=9ZytHWx2nxZz8wpyiphj2zspwQ7Nclcp9ohKfkJA2w0=; b=KlGzLBlMoAjt0D0prW4jHvO77DsuvOV49yFh/QNFHLvcaq948/NIgNahzrtAah3nU4 YFJoaeIn3i3p4JupNcSdsXX5RURojxlKQTJl/4pazB/yhMVpVI1FIh0ALL85DAoLlT9C O1dKC63hHjJLD1GawQs4/5jqvSFlon66/KMzB3cOTuGpx9LTCrNZJ5dBQGUW3MpshhoO aL0oWUSKE5mgse4BlcpanKPTi3B4Ulq67wVBTpbAv8WudfEnVkjbBxu+Bwk27PDDxdtu ATrAV87r0+xthbaFwYsBnKDJlFI+D2q2LYq/WFs8vyjmYm7gRQkZo/DbzewzbuuReyZ4 OglA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si3351944edy.264.2020.07.09.21.57.26; Thu, 09 Jul 2020 21:57:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726560AbgGJEzM (ORCPT + 99 others); Fri, 10 Jul 2020 00:55:12 -0400 Received: from mcegress-30-lw-30.correio.biz ([191.252.30.30]:8810 "EHLO mcegress-30-lw-30.correio.biz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbgGJEzM (ORCPT ); Fri, 10 Jul 2020 00:55:12 -0400 X-Greylist: delayed 7540 seconds by postgrey-1.27 at vger.kernel.org; Fri, 10 Jul 2020 00:55:09 EDT X-Sender-Id: x-authuser|cesarb@cesarb.eti.br Received: from mcbain0007.email.locaweb.com.br (unknown [10.30.225.41]) by mcrelay.correio.biz (Postfix) with ESMTP id 55D2230F8FD3; Thu, 9 Jul 2020 19:11:24 -0300 (-03) X-Sender-Id: x-authuser|cesarb@cesarb.eti.br Received: from mcbain0007.email.locaweb.com.br (mcbain0007.email.locaweb.com.br [10.30.224.225]) by 0.0.0.0:2500 (trex/5.9.14); Thu, 09 Jul 2020 19:11:24 -0300 X-LW-Relay: Bad X-LW-SenderId: x-authuser|cesarb@cesarb.eti.br Received: from mcbain0007.email.locaweb.com.br (localhost [127.0.0.1]) by mcbain0007.email.locaweb.com.br (Postfix) with ESMTP id B8D245C035F; Thu, 9 Jul 2020 19:11:30 -0300 (-03) Received: from proxy.email-ssl.com.br (bartf0025.email.locaweb.com.br [10.31.120.57]) by mcbain0007.email.locaweb.com.br (Postfix) with ESMTP id A2BCA280069; Thu, 9 Jul 2020 19:11:29 -0300 (-03) x-locaweb-id: 5II90qkwcFl608adNSKU11Mhs1xf0MgAzPC-CIfMoteOMOLYZkorw41aZgtgCBGiz7JOWdNt-MIUbUFIqc5n_VfP5aYHWPJEum0HS-HjJOtj1caloRxiqgYbvP8P_wgmHwNblfkvCn6jCrhDIqFSGQeTZBx1E5oXeQ9zDDTUEye5I0CEEbtBqmQRdepJK3-NFd2BYMkda9wzmP4HD7U6VQ== NjM2NTczNjE3MjYyNDA2MzY1NzM2MTcyNjIyZTY1NzQ2OTJlNjI3Mg== x-locaweb-id: 5II90qkwcFl608adNSKU11Mhs1xf0MgAzPC-CIfMoteOMOLYZkorw41aZgtgCBGiz7JOWdNt-MIUbUFIqc5n_VfP5aYHWPJEum0HS-HjJOtj1caloRxiqgYbvP8P_wgmHwNblfkvCn6jCrhDIqFSGQeTZBx1E5oXeQ9zDDTUEye5I0CEEbtBqmQRdepJK3-NFd2BYMkda9wzmP4HD7U6VQ== NjM2NTczNjE3MjYyNDA2MzY1NzM2MTcyNjIyZTY1NzQ2OTJlNjI3Mg== x-locaweb-id: 5II90qkwcFl608adNSKU11Mhs1xf0MgAzPC-CIfMoteOMOLYZkorw41aZgtgCBGiz7JOWdNt-MIUbUFIqc5n_VfP5aYHWPJEum0HS-HjJOtj1caloRxiqgYbvP8P_wgmHwNblfkvCn6jCrhDIqFSGQeTZBx1E5oXeQ9zDDTUEye5I0CEEbtBqmQRdepJK3-NFd2BYMkda9wzmP4HD7U6VQ== NjM2NTczNjE3MjYyNDA2MzY1NzM2MTcyNjIyZTY1NzQ2OTJlNjI3Mg== X-LocaWeb-COR: locaweb_2009_x-mail X-AuthUser: cesarb@cesarb.eti.br Received: from cesarb-5490.home.cesarb.net (unknown [200.187.118.13]) (Authenticated sender: cesarb@cesarb.eti.br) by proxy.email-ssl.com.br (Postfix) with ESMTPSA id 4A356C017A; Thu, 9 Jul 2020 19:11:19 -0300 (-03) From: Cesar Eduardo Barros To: torvalds@linux-foundation.org Cc: linux-kernel@vger.kernel.org, Cesar Eduardo Barros Subject: [PATCH] Restore gcc check in mips asm/unroll.h Date: Thu, 9 Jul 2020 19:11:02 -0300 Message-Id: <20200709221102.323356-1-cesarb@cesarb.eti.br> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Outbound-RspamD: yes X-MC: yes Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While raising the gcc version requirement to 4.9, the compile-time check in the unroll macro was accidentally changed from being used on gcc and clang to being used on clang only. Restore the gcc check, changing it from "gcc >=3D 4.7" to "all gcc". Fixes: 6ec4476ac825 ("Raise gcc version requirement to 4.9") Signed-off-by: Cesar Eduardo Barros --- arch/mips/include/asm/unroll.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/include/asm/unroll.h b/arch/mips/include/asm/unrol= l.h index 8ed660adc84f..49009319ac2c 100644 --- a/arch/mips/include/asm/unroll.h +++ b/arch/mips/include/asm/unroll.h @@ -25,7 +25,8 @@ * generate reasonable code for the switch statement, \ * so we skip the sanity check for those compilers. \ */ \ - BUILD_BUG_ON((CONFIG_CLANG_VERSION >=3D 80000) && \ + BUILD_BUG_ON((CONFIG_CC_IS_GCC || \ + CONFIG_CLANG_VERSION >=3D 80000) && \ !__builtin_constant_p(times)); \ \ switch (times) { \ --=20 2.26.2