Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8348187rwi; Tue, 25 Oct 2022 05:45:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6U+3l757lrgoXWiaKoAzFFmlXW+RoMQB1OG2fOuSnALjYJ6lYaenvLgP9xkaipXmLupusf X-Received: by 2002:a17:907:75d4:b0:78d:efa7:f78c with SMTP id jl20-20020a17090775d400b0078defa7f78cmr31667482ejc.454.1666701909096; Tue, 25 Oct 2022 05:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666701909; cv=none; d=google.com; s=arc-20160816; b=M7PjlGHuoNtbayld9XLpghUmCxr51Rr5g/QB3B7oZmRu8IjunuENywN56OFX2WLC5K Ut5ZPZTKvoezberucIF5Fe+7kZeD0yZDA18rlcvcc/Ml3W7+NQc5HK5G1mGG+HSsgETa E/7BL8ZR9e04HM59u+j8oG9VbDeKtowZPPG99bvj+n/e8HVCv/al88O1R+socfFGM2cU 83++ZYzKW0fS31FAKJr/ehnIk6ojUsdjCMjK+0Xof/gKSI9A6ndd8h9ZI37VcMnHx6bw x9bRP9ZCVfeDRtYs2DWbQ5eymOQLBUreCgb8h++b1WL59zgCxI+sv6VlGbfSOc+VZa5u 9nsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1GLLDI99fTLFVk7UHyLsLRMZqShPEgCumFtxPIsX+Wc=; b=gvW1GpVxUidg0m0LTNS2VmDynNkXFPFCGC254Z/OckUESseaiPF1PbPdrQbeALztje ygLFG7u4kRicSFthNglwkpO+zxKpCIh3gBxiuVYB3FKWtmPGA7Ud5r33MhkmjMcv6YfV MyhoZrNU31M/NhdH7Fe5EUQMMa4rdi2IlW5iG15rxndhVotQqZ4WK0SUD89HI8WxpZ4O tKLHIT8bSDj4czYEyjAV/evFVwPzYvbU9iyQ4W0Yx9n5+twCpXLoZeqpFLfAq6zcHMjI m14+JQ+RSvfipiBtTw4fCaKLFW96ENYkcOdvDhIK6NVhfAdfENGRfuSVysLqR1KGNCiH bl4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=O+DlVwkK; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs41-20020a1709073ea900b0078e2f4c8851si1802595ejc.595.2022.10.25.05.44.44; Tue, 25 Oct 2022 05:45:09 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=O+DlVwkK; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231356AbiJYMMj (ORCPT + 99 others); Tue, 25 Oct 2022 08:12:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbiJYMMg (ORCPT ); Tue, 25 Oct 2022 08:12:36 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BDCE2FC2C; Tue, 25 Oct 2022 05:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1GLLDI99fTLFVk7UHyLsLRMZqShPEgCumFtxPIsX+Wc=; b=O+DlVwkKqDxVFj9SutyvUOq/vH RwP08FVS4SER5XjmDApbsgbkufJNZrT8qqpbm9cW4Mf8yyi5wCnC56IViXb6e+3mVR9hiQvWc0XNR FsBbea57NNHwF+IeGrxEjbL+RgMxK18Vft6iQCSEWWLfA1ixt+FxxOO+cm09foJ+mSWn2+kAbutzG wsk5LXvRagU8cDBOYCphomgBn8O0Jp2PZqbZAZergWemCaHHB/tVV3QiT+tNmSP+bG0PIY9AbAPpU FrwxaMq9vE6BkP20I3syeqytDAexB22Z21ClAjFTK32iHA4zGxQhvdZnTgTg6S9qTOqRuU2uiJDiH YYhPGxvg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:34946) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1onIn5-0004Sr-7S; Tue, 25 Oct 2022 13:12:19 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1onImw-00086k-St; Tue, 25 Oct 2022 13:12:10 +0100 Date: Tue, 25 Oct 2022 13:12:10 +0100 From: "Russell King (Oracle)" To: Arnd Bergmann Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Linus Walleij , Lubomir Rintel , "Rafael J . Wysocki" , Viresh Kumar , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 04/11] ARM: sa1100: make cpufreq driver build standalone Message-ID: References: <20221021155000.4108406-1-arnd@kernel.org> <20221021155000.4108406-5-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED 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 Tue, Oct 25, 2022 at 12:14:19PM +0200, Arnd Bergmann wrote: > On Tue, Oct 25, 2022, at 10:28, Russell King (Oracle) wrote: > > On Fri, Oct 21, 2022 at 05:49:34PM +0200, Arnd Bergmann wrote: > >> From: Arnd Bergmann > >> > >> Commit 59a2e613d07f ("cpufreq: sa11x0: move cpufreq driver > >> to drivers/cpufreq") added an unnecessary reference to > >> mach/generic.h. Just remove it again after moving the code > >> into the corresponding driver. > > > > So how does arch/arm/mach-sa1100/clock.c get the MPLL rate with this > > change? > > You are right, that's broken. It works for the defconfigs that > enable the cpufreq driver, Umm. How? I think your testing must be seriously flawed! You add sa11x0_getspeed() to the sa1110 cpufreq driver as a static function, which means it won't be visible to clock.c - and clock.c is always built, and always references sa11x0_getspeed()... so you should be getting an unconditional build failure at link time and a compiler warning that sa11x0_getspeed() is not declared. Are you not seeing that? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!