Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3537087rwb; Mon, 7 Aug 2023 15:33:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsglClAqzRwl7sJ42pCaKQDfgZRFlSsBmlsTz8Z+XBSjwe02wQTjtdg8240ncI6b35kqVD X-Received: by 2002:a17:907:2e0b:b0:99c:a65a:c4b7 with SMTP id ig11-20020a1709072e0b00b0099ca65ac4b7mr8647222ejc.43.1691447607302; Mon, 07 Aug 2023 15:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691447607; cv=none; d=google.com; s=arc-20160816; b=JMiknd/vqAu4eaFlTXF4NI+EmE444Vmv5F04JAtBqL09Bjyt302PQy02F/urmKg/2R jMHVcW733EmCL9jSfWBsHKS4vjKJ9HpTjP2Q4LILN5yPN8W+tQwv4vJaQSieOkFRhBDZ Dm3gKxmTR+siqnz4+w7lOuDt16ymhyE6YJKnHq9JLLqCK3zkedYWInrLLjGpq1SfXvbY +fiOAfaSOnX0wUl7u4yD2G+Eni7SdjfSjpwZY1ujo88IpUMgie6KvyuUnWkFqAHu7u0U M6PnsYNfUPggdAsCycY7GbLBdg0ety3e9RYBenyowtpExDDpiCaUbNtcWOdpSJILGcUG V/UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=GntzaJI5qVtIG0zDofrEQL/33uQmFjmp4U/D80pbvSc=; fh=pF4MuTKgYKq9sYAfGkasi795HM6tMuhaV2HcJXbId/Y=; b=LJAqxsL7hle9+y0dhXJQGiXgacPNYatKg6aOyAFVndZaGm4fz76bwqadgrtutQTfhn anItLmkcJtaDkoodsIuB57l6fKx6D4FANig4CWC+O87KUUS7UqNRgH+hZBnu4ovQcpMs yELWbnNYw99+PGXVBnNfFSGdKgmoq/kvhOTHvJajoFT3D3wbrk7I9LbwyBKZPE0yFX6f 2ED/f7wzjJKUOcVkVlXIoW+mtnJZZ5ZbX+AHZl3Zj8WQ6HdovefW4fOi8jBvPNs7+VGp 1lJ+Ee0mc4oz7RPnZg9FMpiuGxYdsvVpxuDJiMmSg6r+2oegntMO65Ju7gOi+bSHMRVm fraw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i27-20020a170906251b00b0099a1f78de48si6122184ejb.638.2023.08.07.15.33.02; Mon, 07 Aug 2023 15:33:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229823AbjHGV6a (ORCPT + 99 others); Mon, 7 Aug 2023 17:58:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbjHGV63 (ORCPT ); Mon, 7 Aug 2023 17:58:29 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 79D738F for ; Mon, 7 Aug 2023 14:58:28 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 208879200C1; Mon, 7 Aug 2023 23:58:27 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 197439200BF; Mon, 7 Aug 2023 22:58:27 +0100 (BST) Date: Mon, 7 Aug 2023 22:58:27 +0100 (BST) From: "Maciej W. Rozycki" To: Borislav Petkov cc: Arnd Bergmann , Arnd Bergmann , linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" Subject: Re: [PATCH 2/5] [RESEND] x86: avoid unneeded __div64_32 function definition In-Reply-To: <20230807211659.GKZNFfS+7PK71yYt0p@fat_crate.local> Message-ID: References: <20230725134837.1534228-1-arnd@kernel.org> <20230725134837.1534228-3-arnd@kernel.org> <20230801170315.GGZMk60zojZOeuUwX7@fat_crate.local> <20230802172030.GEZMqQXmeb98Tm+Qhg@fat_crate.local> <20230807211659.GKZNFfS+7PK71yYt0p@fat_crate.local> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 On Mon, 7 Aug 2023, Borislav Petkov wrote: > On Mon, Aug 07, 2023 at 09:37:00PM +0100, Maciej W. Rozycki wrote: > > Otherwise you risk `__div64_32(n, base)' getting expanded to `(n, base)', > > You mean in the very obscure case of a 32-bit kernel where they don't call > do_div() but call this low level function? > > I'd say if they can't be bothered to even grep the tree for the right usage, > they deserve both pieces... :) Well, people do make mistakes and life is tough enough already, so why make it tougher when we can have a free sanity check? I mean there's hardly any cost from the extra characters added and it can save someone hassle with debugging, which is always tough by definition. I've suffered from silly mistakes myself on many occasions, possibly from being distracted in the middle of doing something, and while I figured things out eventually, it often cost me a day of effort or so wasted in chasing them. Maciej