Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp899461ybt; Fri, 10 Jul 2020 15:37:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxm/lUNfG439Npb0o37sfvSj4IU2FtKohuLVc+qQl9WAmjarcY6gpYvW3FIDmXaE06whstl X-Received: by 2002:a17:907:72cf:: with SMTP id du15mr61222245ejc.151.1594420623275; Fri, 10 Jul 2020 15:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594420623; cv=none; d=google.com; s=arc-20160816; b=qnOJDe4Koakl4hRaqCQwYYNlgnZoLAGZXgLbPodf2W0qOzWMhiISeURrf4VfHNURn8 5XJHMryzsDJ/UCKezlkWVwQ+Pp8jKTY05m+sXxU5FLd+zFv8+N0lkoK2c5lkVzMp8sbo a2H4jyovNQ/CuvBxDKGMDj+X56+91wOBv/yPAc9UCFGwWH6OZaiNB/HAL3euVmaVILnk CGF0yxkTIdhUdsoYikFXWDDzIK/jGUiOZ0jlaoR1syfnXgCVyih8Sy1yH/TQrVR6gbSU 0uUdtnKvcz+8PZZXtCd0O4lprAugue/3LB6nDxUBaDR6BtEiXQfip7pWb/zbNvuVHLzk ndnQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DivSEld72ml8UTqRFMIcUkbiemFCRo0SWplyKdIEijY=; b=SmOxTRDbFyhGHCS+XmvwpgJcnQ2THwUYyqWBgychQypnXup0oSYl/uzmWZ+h2EFUyj DMnZo6BR5pcBzmVLvftRwRtuFwIY7e1cztCKAm6Yi6RjlMbo1wHuPBcLg3tJ9u5LaUfg shkuA1l7f+DYbQzXS5npjGsFcDOmiEJz1sLJSNM5ye/QbtY+kLvtldJAUodCtY/j3W95 6cBoqgxELUnw0iFrY56UoGGO+lOk7bwN8OPw/92p4Kaz7F+Z4zqOsJE84hO3nzeIQcWw jMpfo21Q5OuehKq0PO9SCsfE5WKc5nwk4JmhB8urA/RfBDc1f+aBRJAWeHh+yogvenaK /f/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gEu3ivm6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p27si4810251ejd.590.2020.07.10.15.36.39; Fri, 10 Jul 2020 15:37:03 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gEu3ivm6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727038AbgGJWfA (ORCPT + 99 others); Fri, 10 Jul 2020 18:35:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726863AbgGJWez (ORCPT ); Fri, 10 Jul 2020 18:34:55 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55071C08C5DC for ; Fri, 10 Jul 2020 15:34:55 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id cm21so3198340pjb.3 for ; Fri, 10 Jul 2020 15:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DivSEld72ml8UTqRFMIcUkbiemFCRo0SWplyKdIEijY=; b=gEu3ivm6U22TdvJqmNQgrAe8nAYy+fXfTEgDwR6q8Ka1STCVn26RtJ6+OM4ZlOg8wi 4fHwKZkIWzjd+o5GSNHF3+oipT4/9cjFAYrRtpyUHXJewsRVXd9iJCAcCHXGoNs+7LH3 WxqsZ74oaU4irPDCSOxWUEtq+g+xNsR38p1XSYbdQllZSkdqiH5CqJKF2Mwnwu0l5qtP UyKqYhtz52OuW6o7SkhH5zyESGr3gvBaQgEJDmP7GnHJ0lfv09MHMxRDJjAVV/w3CP6E xXTuOXTcMPbcvfpDc5q/0JoUmeTVCyMRoz9IdgllB2OJq+YNiFFkI/19ouCbH4Fn3Z3G emgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DivSEld72ml8UTqRFMIcUkbiemFCRo0SWplyKdIEijY=; b=b9ZAkcNFhhkVPZ0e6AiHJbTZOKnV1QWsbGMLRCbSfsWuL7A39WY8bfh7dbzhN0q03M G46XvERulMYXMC90pNjXwkCLYH9KyTGkFpzBYnrRLjDwbDEcjhuLyMh4eqVdIoqeSDMm XPmCUdSBEOiRU7FVrLrtJqC8vuh5QrTymn3bEoCZwWONwEPkC0rx5129mndzkl2Z4ymK mHxO0rc6NxBPf1wGXm49YBUwCSj8qi/1DrradGbuSV8H+dfx9IxtsbNvZkAQy7ofI5ZT oM8nN/KGzUxrxqi2AqsEFlLEyOI3Y5Ih9YruMSka5CZvfQpnI3gqX2bCh60rW+MvFKUg jXnA== X-Gm-Message-State: AOAM533aFDqlowldpp+6p/aL0bx0tWmTb9jAmVhYOsnbK/iZH6mozRZg YJYSfQJXDpjKu3jWvb1B3+QWcrIB X-Received: by 2002:a17:902:b694:: with SMTP id c20mr61200519pls.123.1594420494803; Fri, 10 Jul 2020 15:34:54 -0700 (PDT) Received: from localhost.localdomain ([2604:1380:1000:7a00::1]) by smtp.gmail.com with ESMTPSA id u128sm6564079pfu.148.2020.07.10.15.34.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 15:34:54 -0700 (PDT) From: Nathan Chancellor To: torvalds@linux-foundation.org Cc: linux-kernel@vger.kernel.org, cesarb@cesarb.eti.br, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH] mips: Remove compiler check in unroll macro Date: Fri, 10 Jul 2020 15:34:41 -0700 Message-Id: <20200710223441.756320-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200709221102.323356-1-cesarb@cesarb.eti.br> References: <20200709221102.323356-1-cesarb@cesarb.eti.br> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CONFIG_CC_IS_GCC is undefined when Clang is used, which breaks the build (see our Travis link below). Clang 8 was chosen as a minimum version for this check because there were some improvements around __builtin_constant_p in that release. In reality, MIPS was not even buildable until clang 9 so that check was not technically necessary. Just remove all compiler checks and just assume that we have a working compiler. Fixes: d4e60453266b ("Restore gcc check in mips asm/unroll.h") Link: https://travis-ci.com/github/ClangBuiltLinux/continuous-integration/jobs/359642821 Signed-off-by: Nathan Chancellor --- arch/mips/include/asm/unroll.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/mips/include/asm/unroll.h b/arch/mips/include/asm/unroll.h index 49009319ac2c..7dd4a80e05d6 100644 --- a/arch/mips/include/asm/unroll.h +++ b/arch/mips/include/asm/unroll.h @@ -25,9 +25,7 @@ * generate reasonable code for the switch statement, \ * so we skip the sanity check for those compilers. \ */ \ - BUILD_BUG_ON((CONFIG_CC_IS_GCC || \ - CONFIG_CLANG_VERSION >= 80000) && \ - !__builtin_constant_p(times)); \ + BUILD_BUG_ON(!__builtin_constant_p(times)); \ \ switch (times) { \ case 32: fn(__VA_ARGS__); /* fall through */ \ base-commit: aa0c9086b40c17a7ad94425b3b70dd1fdd7497bf -- 2.27.0