Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1336724pxb; Wed, 10 Feb 2021 06:16:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzALIZl9Q0t53fYkYJQHCSgYCVhgJAC2cgbIBnFK0CnK0Yo53Uab3vk7eHvQdOi9Q2SgVta X-Received: by 2002:a05:6402:2053:: with SMTP id bc19mr3271287edb.230.1612966601682; Wed, 10 Feb 2021 06:16:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612966601; cv=none; d=google.com; s=arc-20160816; b=YCP+t90LyF6sjOK1TeXfEUYnzm9DReR0B+55Qi2H5805gBfNO7lJuMbECrYKtGh/bJ Ljj0uja9O7qu1JMF/icJQcUTLPy8SOOIwv+DgYUvXqJvXb6ZyCaI5Nd6YZPMVosrOawv Yf+F9cSXAybM2Xm5wLCdx1E8nK1XCjTkkhFg/s0x7Msc4ZtaIp9/1YN7cVolrZIwYepD y0J57qT9KDpB/7lg+cevrxShNromMeqGfk7kX7aJCQJoABmDwLZdxrx9j4mNtg8RHkqZ cU1Sh4SgrH/VCg9gQ+wzmx3tSIFoTIBM9ibS7SUcU3I6qtZsBVf87sE24iYtC8KtEsrC z8SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=x13p7NDHeeRG+4kAbukTaaHCAWEnjnZs+GdcrP2ki70=; b=CdE4pSsK19+vtKpeLWEbFdBhQ1FpOiT10qyO1TrR+XWq8e8KhuiEK0TRlI1OyP1SqM uGivqluAnLOn+uhUg+vjeZPnGmglZG1D7glzlYwwyCi7f1cpT1JONkkTKIcrPHIQqy6g DlK36sP2LsyndDK3vX51QgwJfCVeqDz/YnV0yvm7CM8abxbDIrUp9RIC55y3sFGE7si3 IWpklm4jAwIzgx8kaztwmDs5W4igsdrU4AlFb6+SByU0XqgLX7yhl6S2+QcoI69B2hjj ur6unxXsd9UYJAaWnIIcLoWeAszDE7pQzEdm5oKQmwqtoUTuJVFGSbVeaoBG06W0NdDi hYRQ== 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 b8si1341782eds.433.2021.02.10.06.16.18; Wed, 10 Feb 2021 06:16:41 -0800 (PST) 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 S232034AbhBJOOV (ORCPT + 99 others); Wed, 10 Feb 2021 09:14:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231990AbhBJOMa (ORCPT ); Wed, 10 Feb 2021 09:12:30 -0500 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 822CDC061574 for ; Wed, 10 Feb 2021 06:11:45 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by xavier.telenet-ops.be with bizsmtp id TSBj2400Y4C55Sk01SBjrX; Wed, 10 Feb 2021 15:11:43 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l9qDX-005Hsx-5S; Wed, 10 Feb 2021 15:11:43 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1l9qDW-006Jqe-Qh; Wed, 10 Feb 2021 15:11:42 +0100 From: Geert Uytterhoeven To: Russell King , Michal Simek , Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/4] ARM: div64: Remove always-true __div64_const32_is_OK() duplicate Date: Wed, 10 Feb 2021 15:11:37 +0100 Message-Id: <20210210141140.1506212-2-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210210141140.1506212-1-geert+renesas@glider.be> References: <20210210141140.1506212-1-geert+renesas@glider.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit cafa0010cd51fb71 ("Raise the minimum required gcc version to 4.6"), the kernel can no longer be compiled using gcc-3. Hence __div64_const32_is_OK() is always true. Moreover, __div64_const32_is_OK() is defined in the same way in include/asm-generic/div64.h, so the ARM-specific definition can be removed regardless. Signed-off-by: Geert Uytterhoeven --- arch/arm/include/asm/div64.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/arm/include/asm/div64.h b/arch/arm/include/asm/div64.h index 595e538f5bfb5055..4b69cf850451b076 100644 --- a/arch/arm/include/asm/div64.h +++ b/arch/arm/include/asm/div64.h @@ -52,17 +52,6 @@ static inline uint32_t __div64_32(uint64_t *n, uint32_t base) #else -/* - * gcc versions earlier than 4.0 are simply too problematic for the - * __div64_const32() code in asm-generic/div64.h. First there is - * gcc PR 15089 that tend to trig on more complex constructs, spurious - * .global __udivsi3 are inserted even if none of those symbols are - * referenced in the generated code, and those gcc versions are not able - * to do constant propagation on long long values anyway. - */ - -#define __div64_const32_is_OK (__GNUC__ >= 4) - static inline uint64_t __arch_xprod_64(uint64_t m, uint64_t n, bool bias) { unsigned long long res; -- 2.25.1