From patchwork Thu Aug 3 15:59:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 130731 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp1267116vqx; Thu, 3 Aug 2023 09:33:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlFK6TS7zxodRLpZV7k++VsFh7zv63J1D1U3JjJgQyj9iarVh9YGbbTb4PMV+q+FKHSWUCDz X-Received: by 2002:a05:6808:13ca:b0:3a3:78dc:8c4c with SMTP id d10-20020a05680813ca00b003a378dc8c4cmr26212799oiw.46.1691080432064; Thu, 03 Aug 2023 09:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691080432; cv=none; d=google.com; s=arc-20160816; b=l47AuRv336oWTbatzzYgMOW9qLs/tHB9GaITiFItotjm48CfMIuuYpxuxhcwv8jf4f vkd1UoI8lWckWW451IpP+SIQ0kmWE4ZdP+ik2tCmE9LDzCp729I/ETn91vPaMiWi31Xs cKT2UGC8lie5+HYGJ53/5Oqa6gUuFSC85ris9AfmtV3ssB2TXzI9A9OlRiEWxDv1jgeW hXfyOayO+te2O3ViOzggskSobbm9klIqSOtu2n5A1I6MqqrslvQ2QaFVTrQ16Zh92nO5 uvsxshSdc7QFbPtJf7TgJQ5j8QmehuGdGW40ru7FG9rHTwPLCMp6nwn0272WScO8QguP +A7A== 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.s=2020e 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a631d01000000b00563da4d2a75si146774pgd.23.2023.08.03.09.33.37; Thu, 03 Aug 2023 09:33:52 -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.s=2020e 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 S237285AbjHCP73 (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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773226354745370129 X-GMAIL-MSGID: 1773226354745370129 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