Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4490907rwo; Tue, 25 Jul 2023 06:58:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlG9blF+mpuoiu244/xi1Em3HtIjhzYf9qdxM13GQZNgxhga3yycTlxl82lc4szKd9/uoof9 X-Received: by 2002:a2e:808a:0:b0:2b6:e2c1:6cda with SMTP id i10-20020a2e808a000000b002b6e2c16cdamr8435772ljg.46.1690293506868; Tue, 25 Jul 2023 06:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690293506; cv=none; d=google.com; s=arc-20160816; b=aRZ9bhicNGfWOqsY76kGOkmKf1PQ6QHMDrj2+KPgOGRtz7ADRKllPlsdiXcFgEAmnL h82dkfbSqB5DWuZWFUdXFLvbq6c4eG5g6VUzakn88T3bhat50IDsNUEsvG5XTl9F8DNt TyK0dyEs0bynyxwo0qvoV49rJJuwk1KLJN4VQLnE/WmIB662fcma0/DzVWtBaqi9twry qOwiVC8gjK05gpfESgtxBNGdQBpPPLXAZ9fr6JK2sJMrb7kdMxW/9xmf94mbPoW+9OJe 726LyslwUCIOyoDEjP0AhIx8TQstpJKsj+NIDH3isAa7J4pZVmCM03twnxtSnRZor8kX pfqA== 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 :dkim-signature; bh=DbK5jx3TdIjIeKj44d7qh47lS9C9C5DVRxUFx+zjI2g=; fh=R523ZnP4N7O48iGEbgKYBfM0eoofLeWRxo/bWq35Los=; b=S0iMAbZ2TKIyDxI1FWmNQrj5tj5zF+YnIUZCkpOhhP+Gsd+UQe2A1j+nfu9e0JJs/Z JC5fjXONMGLutXCqK7yxMHAzTdJEViim+qXvvOAytv4zJ0Ovv/W48ojoIhyE5VGBEAtK mjN6t7LgsS05SpZ2r28P4z5lUKQEx2h4N1zlHhawvHL8iv8lzueISwMLHygApIP+snAY Z19YpqipiB/WQxlte8aiFoQw6muAJNWsheZEhGlJhvhyf03BXZJELscRMCR1C0QfhKIz 5Hd6vOFXqiSGXXXfSnY1Rpl6mJU9Nvn9u7w56TwX3yPkXMdhGFbjgrkndyAg3dooLh15 z+zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SFLrP4GF; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a170906454700b0099b6a172f27si6850448ejq.611.2023.07.25.06.58.01; Tue, 25 Jul 2023 06:58:26 -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=@kernel.org header.s=k20201202 header.b=SFLrP4GF; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231665AbjGYNtB (ORCPT + 99 others); Tue, 25 Jul 2023 09:49:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbjGYNs6 (ORCPT ); Tue, 25 Jul 2023 09:48:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78A531FD0 for ; Tue, 25 Jul 2023 06:48:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C5BB46171E for ; Tue, 25 Jul 2023 13:48:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 609C0C433CA; Tue, 25 Jul 2023 13:48:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690292932; bh=v5mmMDcLa9Qz+qTohnDO/9Jf2svRDFSXLGnLYI1Fcc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SFLrP4GFqOQh1yYxfBN3ODV9bJRXnvbtT/GzhtfnMr9ePZxfUcUQ5Tpbu6wCPpWiv DEWidaqarR3eOw48om02/LZ0u+9Rm8NttxomDfeRglYP1kAkaxYz8U7vwU952avJxp 0z4EZWQHx9tE+V6WXJWWFalOHebK3xkhBjtd+p7wxI3Nz22nLbokLkXvbWjdjuZ6zX bgiBdi+0YLD8sUs2wGrHHeDRn18ppYuUEwtRBChFKIc+vtRklup8j10Wj6oeDl6/vG WnGaZP7eTI80FgbsesszEcFL11NNEu0hhaHcJNQsehnI1n5xnpbjlio1NAwdRNFEdd QQjkIiZqz2AyA== From: Arnd Bergmann To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: [PATCH 2/5] [RESEND] x86: avoid unneeded __div64_32 function definition Date: Tue, 25 Jul 2023 15:48:34 +0200 Message-Id: <20230725134837.1534228-3-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230725134837.1534228-1-arnd@kernel.org> References: <20230725134837.1534228-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Arnd Bergmann 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 --- arch/x86/include/asm/div64.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/div64.h b/arch/x86/include/asm/div64.h index b8f1dc0761e4b..9826d5fc12e34 100644 --- a/arch/x86/include/asm/div64.h +++ b/arch/x86/include/asm/div64.h @@ -71,6 +71,8 @@ static inline u64 mul_u32_u32(u32 a, u32 b) } #define mul_u32_u32 mul_u32_u32 +#define __div64_32 /* not needed */ + #else # include -- 2.39.2