Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2479792rwo; Thu, 3 Aug 2023 09:58:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlGWmZekyUGeaanHcUQb9eupSJW9zqdUAayvEs/4Jb1nlANLetoGnk0Qi8on0E9YGI8hZmdK X-Received: by 2002:a05:6a20:4299:b0:133:2fb2:917d with SMTP id o25-20020a056a20429900b001332fb2917dmr21121818pzj.5.1691081888202; Thu, 03 Aug 2023 09:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691081888; cv=none; d=google.com; s=arc-20160816; b=u2zgt+K6uvhS6IcTmvVdPyT/F9QTPNeQ6AOzbKLT6lYXoDFKGBGXiakH7HwshuLe+K t6txrSTpSQCtLg8gyhkJ+n1Qw/clRnl0GqO2yuNF5ixnFiW7MJRrZlZBP9cJvrPkoy/f kT7QtwPciXRTYjz+ayyulyiWl+AQX64DnQUa/QDDyjOshGQRg2Fgl8oBoZHgX8qoQUGn GGK8vawOAIwZmy1yBHrXj60D3Ds9lu4P9+KOgo3+njSmds7izK4bbf62u+xRDry8FOCS 25Z/ebxyxGpWszLFT1LsoPpkv0SJQzTnd87xUpw0lO8717mQAp1HjW+Kew52/Y72WYmJ tYDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=8CGDd2kSv+5ScAGu3AuIQTXMiwiyG4QuN8Ija4eWBgw=; fh=GmswEOGbKr3VXwADkGMdbYvANKaeXXy9MxNXblyNAM0=; b=CsYx2GbayRklLr1FYO1mSSE5v96mLPDxdDgxqGednjJNAUuDt7uLMjZbSvObJSqrye bEUcw4EvzM/xyOdSkLZ0XUEUfDK2+DOdG3wHCnM/T8HsebF3jHNbHMmmgnkyN7xyEF6T TEK4Bn//0GWJ7UIO7q2L6lfga9uc2Of6cGivmVApI95bzbPkypVHqck9JRiz5lWuXjzh pMU+egdEEcraWWIqGoBWw92HeQdTBZZOlp7sqna1Gl1HRJJxUP6m6SQNyibSMY8C2n27 PB1WFvShBXwYdKSXWIFZrrqC0w2NQOMsIzC86qemw1mWFF087pq7+WIbPiT7fGvnPc6i 0SyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fHqKZhAm; dkim=neutral (no key) header.i=@linutronix.de header.b=0JGsXdHX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j190-20020a638bc7000000b00563e89482f8si161832pge.754.2023.08.03.09.57.39; Thu, 03 Aug 2023 09:58:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fHqKZhAm; dkim=neutral (no key) header.i=@linutronix.de header.b=0JGsXdHX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237284AbjHCP73 (ORCPT + 99 others); Thu, 3 Aug 2023 11:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236513AbjHCP7R (ORCPT ); Thu, 3 Aug 2023 11:59:17 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD2BB119; Thu, 3 Aug 2023 08:59:16 -0700 (PDT) Date: Thu, 03 Aug 2023 15:59:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691078355; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8CGDd2kSv+5ScAGu3AuIQTXMiwiyG4QuN8Ija4eWBgw=; b=fHqKZhAmbCAU2hRQf++LWiiSWlFb7PIQ86VPEHgUTksu2pXkoCMNx/Vw0uR1P/FN+U0NCa RmQXFXeC5bCf112Q6ihg89vghZEBh/U4zFByt6QLG7Re4Qh672l85xb6uQ3RytpD/oybRs VGgZu+q9JdaXZpAiS3s5OcL6lVryrrLCTURE7TupaWMRweJRX1kF9Ee8N1XqEmJHh7jxkB MHxR+Yi9CSBxJGlaLr3pA3HK14c9DP9mAxQT+YcsxoPGoysi1EAeKTr4S4NO8txA4P6O5F b7PKNKcNcs/PjI5r/f8n/XsJeI2sqk1WbkIzy5xs1bHSIiSv2sP3L+/r9rHgnA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691078355; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8CGDd2kSv+5ScAGu3AuIQTXMiwiyG4QuN8Ija4eWBgw=; b=0JGsXdHXgWYoxl/c6B3BQpNGzSjLwqb+SjKFIvnaKn6RdQMMqHlKl12QXPsffGtwS88iWK NZiJqcEn3E2tzCDA== From: "tip-bot2 for Arnd Bergmann" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/asm: Avoid unneeded __div64_32 function definition Cc: Arnd Bergmann , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230803082619.1369127-4-arnd@kernel.org> References: <20230803082619.1369127-4-arnd@kernel.org> MIME-Version: 1.0 Message-ID: <169107835487.28540.16453020083177349536.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 65412c8d72741cc6e6b082b478b8957d7e7c0480 Gitweb: https://git.kernel.org/tip/65412c8d72741cc6e6b082b478b8957d7e7c0480 Author: Arnd Bergmann AuthorDate: Thu, 03 Aug 2023 10:26:15 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Thu, 03 Aug 2023 12:08:35 +02:00 x86/asm: Avoid unneeded __div64_32 function definition The __div64_32() function is provided for 32-bit architectures that don't have a custom do_div() implementation. x86_32 has one, and does not use the header file that declares the function prototype, so the definition causes a W=1 warning: lib/math/div64.c:31:32: error: no previous prototype for '__div64_32' [-Werror=missing-prototypes] Define an empty macro to prevent the function definition from getting built, which avoids the warning and saves a little .text space. Signed-off-by: Arnd Bergmann Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20230803082619.1369127-4-arnd@kernel.org --- arch/x86/include/asm/div64.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/include/asm/div64.h b/arch/x86/include/asm/div64.h index b8f1dc0..9931e4c 100644 --- a/arch/x86/include/asm/div64.h +++ b/arch/x86/include/asm/div64.h @@ -71,6 +71,12 @@ static inline u64 mul_u32_u32(u32 a, u32 b) } #define mul_u32_u32 mul_u32_u32 +/* + * __div64_32() is never called on x86, so prevent the + * generic definition from getting built. + */ +#define __div64_32 + #else # include