Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp245425pxv; Wed, 14 Jul 2021 03:05:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdbV4RBa1bLi090W/VsHpR0JReZIUhaio4B6a5YiHRkbhPvq12SlXE8YZwdKc4uMrnh2mV X-Received: by 2002:aa7:db50:: with SMTP id n16mr12495732edt.298.1626257138814; Wed, 14 Jul 2021 03:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626257138; cv=none; d=google.com; s=arc-20160816; b=mpeMnUxaDacYF0RsG5j8MJVFN0RxF6rSoQQIAlP+ggjIkh+DRkbmCIY5uvgxGtimfB oH281by7Pmgx3K2k1C5PIzHcukC8JwegeOFjRconQPUK/Lc2VuChOq3UoPhGnQBhWASY t34PyfDOfKeRZ3EqRExsm4WzTUDDX/I06PBFgTIxkQgWJilBp7eYl66rRFy3o8qFxkuU vFfVBrlAVurQ31v+a6OVDyMAYhksoC/LEXAkFRxLBk9Kiwlo6f7Fsf0bCdzOmuIMDDYI mRt2j4ogI9y6+rlUYlQlRFSgCltytfKGgDSzVTRrYg5iN4Bd97DvJFVbzxekXtwGyA80 yyAw== 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=RYPbfrWt81GZ9TC5ar9OC7YiD8dA/rvmRnGhCjILqcY=; b=v2H90myZMWwVcwXlkEMpA/LUVJwKgjwVhlu0TjSXyQqPCsFNJFGAa6W9625kpregaI eDXLeAnnjKYE2Ly2JSnBA/WQokomTeDNEaKaPdX1StUChxUPJZhlXfCSCG81I2ksO3Im yrOsvuEuYviWWsqB5KMb8vLEvRhkVkWhS0mIXpAPucG8Mrfr5xGZu6QKnxJX0xEUNZxb sH0fiPfMiurwfHw+zzFUeRd81jsRIcVl6kyzWsXBkII1BECRhDPfxbr1ei4b4MEG5y3V Z+p5XV6OjuUs+jIWYMsDy2zGV++XWqRPQxsWSEYUXcoyM6E7OrfE1PVmfMtimtw74N+Y rSXA== 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 ak17si2569677ejc.234.2021.07.14.03.05.14; Wed, 14 Jul 2021 03:05:38 -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 S239012AbhGNKHJ (ORCPT + 99 others); Wed, 14 Jul 2021 06:07:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239005AbhGNKHH (ORCPT ); Wed, 14 Jul 2021 06:07:07 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D0BDC06175F for ; Wed, 14 Jul 2021 03:04:16 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed10:39cc:190a:2775:cfe7]) by michel.telenet-ops.be with bizsmtp id Uy4E2500Q1ccfby06y4ETC; Wed, 14 Jul 2021 12:04:14 +0200 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 1m3bkU-0016Eo-AW; Wed, 14 Jul 2021 12:04:14 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1m3bkT-00A4K9-UO; Wed, 14 Jul 2021 12:04:13 +0200 From: Geert Uytterhoeven To: Russell King , Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 1/3] ARM: div64: Remove always-true __div64_const32_is_OK() duplicate Date: Wed, 14 Jul 2021 12:04:08 +0200 Message-Id: <3212709f56973b4e4d543d6c30a040fe8a525585.1626256876.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: 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 --- v2: - No changes. 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