Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5510271pxv; Wed, 7 Jul 2021 05:36:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN35ZVD2ex24iKaKw4y8FQGUede+qeneVEVbz+sxY/JxyU3sOeaiEXLCFz+asW1l1YykGC X-Received: by 2002:a6b:630d:: with SMTP id p13mr19905550iog.198.1625661364171; Wed, 07 Jul 2021 05:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625661364; cv=none; d=google.com; s=arc-20160816; b=z/z77XirPeo9lHoKhmJ8pYLHNqg3vsizvp7Xz1jCKUi0V3hhAmpENHBKzKhm378DNP XwYWYx/xjpw+8Uhcdr+lmaqlKcjMyY2MpSWQ0gLYgrN98lCtpqyl6aO/t/WxnWZngcsj DHQY8yk0CWUfLF62aiPFLXw0dtI5buolGcVxYBjxxK4zT9RaA0ylPhb9gkYXTfuvd/bT Li72k/DnUfO7Yc7/V9r9XjA63TxTl1SLlKTOvcD1mZGxvOYHrzwZLdZxo1LFokd83OTw eHGQKySe8AX6yEAiLRG86FCpCVpB7/iIrDeG2ETZn90LisuNC1bHUtLr0OSiUISrawgB bCQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=wHbLpIklBafsqxfevjQngRI5pTHKbKBtfw8dz4OyTjI=; b=NKB56O3MKkVMBBznojG6mgc2AK9BjMTMo0dvXRvB8W8Xs6php/QmyxHyx4HQayoMFN +5HCz7uA5pbWChRx8XlTUiGWmosBUA1hXcKMk80WzURQl2u1b7Zgzw/IDZtXdb6bppwj RTvIsAtldlrX1yPa2q0mhoibsHu37mu/JjZFoOWroJeLu7fvezXC8bsvdF+UnnEvoGAU mw65oJLmMeaMB7q5iW3V9eU0AnNsxSB//rr9ANDtHVE4w21lOgz/bHgqj7SccpRjpGz0 +o6g5iUTlGyU8tSAP3+Pba3z3iiH04okquprOoFg4J2kGpHgtHhnNiTHXdQfC2sDJ+vb Nz7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si22882305jac.37.2021.07.07.05.35.51; Wed, 07 Jul 2021 05:36:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231744AbhGGMdh (ORCPT + 99 others); Wed, 7 Jul 2021 08:33:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:47788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231660AbhGGMd1 (ORCPT ); Wed, 7 Jul 2021 08:33:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 213BF61C82; Wed, 7 Jul 2021 12:30:33 +0000 (UTC) Subject: Re: [PATCH] m68k/coldfire: change pll var. to clk_pll To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: kernel test robot , linux-m68k@lists.linux-m68k.org, uclinux-dev@uclinux.org, Arnd Bergmann References: <20210704230137.28915-1-rdunlap@infradead.org> From: Greg Ungerer Message-ID: <024360ce-41b2-c072-f399-7e87f516bfd0@linux-m68k.org> Date: Wed, 7 Jul 2021 22:30:32 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210704230137.28915-1-rdunlap@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/7/21 9:01 am, Randy Dunlap wrote: > DEFINE_CLK() makes the variable name be clk_xyz, so variable > 'pll' should instead be 'clk_pll'. > > In file included from ../arch/m68k/coldfire/m525x.c:12: > ../arch/m68k/coldfire/m525x.c:29:30: error: 'pll' undeclared here (not in a function) > 29 | CLKDEV_INIT(NULL, "pll.0", &pll), > | ^~~ > ../include/linux/clkdev.h:30:10: note: in definition of macro 'CLKDEV_INIT' > 30 | .clk = c, \ > | ^ > In file included from ../arch/m68k/coldfire/m525x.c:21: > ../arch/m68k/include/asm/mcfclk.h:43:27: warning: 'clk_pll' defined but not used [-Wunused-variable] > 43 | static struct clk clk_##clk_ref = { \ > | ^~~~ > ../arch/m68k/coldfire/m525x.c:25:1: note: in expansion of macro 'DEFINE_CLK' > 25 | DEFINE_CLK(pll, "pll.0", MCF_CLK); > | ^~~~~~~~~~ > > Fixes: 63aadb77669a ("m68k: coldfire: use clkdev_lookup on most coldfire") > Reported-by: kernel test robot > Signed-off-by: Randy Dunlap > Cc: Greg Ungerer > Cc: linux-m68k@lists.linux-m68k.org > Cc: uclinux-dev@uclinux.org > Cc: Arnd Bergmann Thanks Randy. Arnd: since this has hit mainline do you want me to pick it up in the m68knommu git tree and push to Linus from there? Regards Greg > --- > arch/m68k/coldfire/m525x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- linux-next-20210701.orig/arch/m68k/coldfire/m525x.c > +++ linux-next-20210701/arch/m68k/coldfire/m525x.c > @@ -26,7 +26,7 @@ DEFINE_CLK(pll, "pll.0", MCF_CLK); > DEFINE_CLK(sys, "sys.0", MCF_BUSCLK); > > static struct clk_lookup m525x_clk_lookup[] = { > - CLKDEV_INIT(NULL, "pll.0", &pll), > + CLKDEV_INIT(NULL, "pll.0", &clk_pll), > CLKDEV_INIT(NULL, "sys.0", &clk_sys), > CLKDEV_INIT("mcftmr.0", NULL, &clk_sys), > CLKDEV_INIT("mcftmr.1", NULL, &clk_sys), >