From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752858AbbKYV6N (ORCPT ); Wed, 25 Nov 2015 16:58:13 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:55378 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751710AbbKYV6J (ORCPT ); Wed, 25 Nov 2015 16:58:09 -0500 From: Arnd Bergmann To: Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, Eric Miao , Michael Turquette , linux-kernel@vger.kernel.org, Haojian Zhuang , Chao Xie , Mike Turquette , linux-clk@vger.kernel.org Subject: Re: [PATCH 1/7] clk: mmp: stop using platform headers Date: Wed, 25 Nov 2015 22:57:33 +0100 Message-ID: <3842139.m8b6S96gUd@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20151125213222.GF11298@codeaurora.org> References: <1448465875-435039-1-git-send-email-arnd@arndb.de> <3508030.Q62gfHvXvx@wuerfel> <20151125213222.GF11298@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:jAFuOjvaYR4n/6HBEaA6oyWgJORKqpSIeVMNNu/T3bMw31ZXK9/ QH818jB6DNov1vazLv+6oPWU9Sy23RnpPZY9v8sOHKT2u6qTkN5Wk3kW/S2epwcv4XRa3Rm Y9yf5F4PQFO10/cLTSWFbF26p1gNjvH20RdxHngOIfZM/0Z7PsU/QMpkw7fae/+fSAQ0Lk+ 4UttZvIRuDChVR1PYNU7g== X-UI-Out-Filterresults: notjunk:1;V01:K0:rKCIfs7w12U=:bc72rjo8nmesPZYKCMv63V anGHori3pP44evt8q9b6CKdkExSlUCf2z58yvXmlDq8QSh2Y24fvPEKGeI/4GLQDXvSJw+6F0 qmUhoKmJblNYSd5K3avrLIb4XTXCPCrvMS/ct7Aadm679a+C7yjuWrmoiEj1bbf4NEKspbrpG c1UhyGJxtjdkeEkDEFWvFuk/LiR1Blhxhr/Xo34WLaE7DnpFr1TAjO+lsh+GeZzwpRhmNfslP P3o7xQLgQGUSySXZ1pJ9yxIIU8zeglrO+lhM9iVPAnTvq00T2J+qjeD3KYJaY/jPIvor8QuYA u1yJ3D0GFlal6EgfpOLK+cbRSD7wJtQv8vv+EFzYcLX5KUHv6TVX448bZHvNBUNdlhMgbdrGp GvOcCZipWsAkAgNTK0cpf+KIbjB9dUtZ8PDxoMZKUvIPGMekB8wr6siEDvcNofkqHLMZTdWVn lIuE4iZ5Mzm8fQiK1hMeSvlvK7I8pBib2P1/gM0/c7q1vtzxVZDrhl5ioDUQGlLFCERZ/Wk0D zOYvnECVT92b1o3lve+/4uext4ALcvns82y3/+qE6DuPr6Q0BviYuUpaTxqFGX1Lt/r338pMf uROJC6+0x7QnCoxF3gWUa9pKOEpgixOXRPJhdTs5gvLXrzooDl3x9rYkvSL6L464sgwDBIC+q WJzZR0q126ix8q2kB/NR7zbvHK2uN37LbGLfdgyr+oiS0vvIp1hagq0kbR1mbCKL4P4F3wbOH 3yMIEhhlYbOHme9v Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 25 November 2015 13:32:22 Stephen Boyd wrote: > On 11/25, Arnd Bergmann wrote: > > On Wednesday 25 November 2015 11:21:14 Stephen Boyd wrote: > > > On 11/25, Arnd Bergmann wrote: > > > > diff --git a/drivers/clk/mmp/clk-mmp2.c b/drivers/clk/mmp/clk-mmp2.c > > > > index 09d2832fbd78..38931dbd1eff 100644 > > > > --- a/drivers/clk/mmp/clk-mmp2.c > > > > +++ b/drivers/clk/mmp/clk-mmp2.c > > > > @@ -9,6 +9,7 @@ > > > > * warranty of any kind, whether express or implied. > > > > */ > > > > > > > > +#include > > > > > > Why are we adding this include? I don't see any clk consumer API > > > usage being added. > > > > drivers/clk/mmp/clk-pxa910.c: In function 'pxa910_clk_init': > > drivers/clk/mmp/clk-pxa910.c:166:2: error: implicit declaration of function 'clk_set_rate' [-Werror=implicit-function-declaration] > > clk_set_rate(uart_pll, 14745600); > > ^ > > drivers/clk/mmp/clk-pxa910.c:209:2: error: implicit declaration of function 'clk_set_parent' [-Werror=implicit-function-declaration] > > clk_set_parent(clk, uart_pll); > > ^ > > > > Is there anything I need to change here? > > > > Hmph. I seems this broke when we removed the clk.h include from > clk-provider.h, but nobody has noticed for months. Can you make a > different commit to add the header? Otherwise we're sneaking in > that include to get this file to compile again. Ok, I hadn't noticed at all that it was broken in mainline already, as the three mmp defconfigs do not use drivers/clk/ at all but instead rely on arch/arm/mach-mmp/clock*.c instead, which has a separate implementation. With the move to multiplatform, the choice goes away and we use the common clock implementation unconditionally. Arnd