From patchwork Mon Sep 8 06:13:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Turquette X-Patchwork-Id: 4860401 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D8DEF9F32E for ; Mon, 8 Sep 2014 08:30:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B3C242013D for ; Mon, 8 Sep 2014 08:30:57 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 149B62012F for ; Mon, 8 Sep 2014 08:30:56 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C6B11261ACA; Mon, 8 Sep 2014 10:30:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 5C1BA2619E3; Mon, 8 Sep 2014 10:30:22 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0946D261785; Mon, 8 Sep 2014 08:14:20 +0200 (CEST) Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by alsa0.perex.cz (Postfix) with ESMTP id ADAD626168C for ; Mon, 8 Sep 2014 08:14:11 +0200 (CEST) Received: by mail-pd0-f173.google.com with SMTP id ft15so4017537pdb.4 for ; Sun, 07 Sep 2014 23:14:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version :content-transfer-encoding:to:from:in-reply-to:cc:references :message-id:user-agent:subject:date; bh=rswn+9KXnbK5QoA6hKojfnWiqZdrJPFt27x6uHG+/zQ=; b=MEQ5GYLewqElwx5FYARQAEIRbgAvDBsZtJ3n8CXvQPDW601o1DdDrrA8w4+0Nwfnsv exYoOy+gV6wn6V8g/YnI2GtPnkujecq50gzGUeUR21ylp8ZPUSynkna+zb3ZrssDzG53 GdO7+XpsF+fGsUnyiRKhFL3da3vAh2xYYbzidh3cOmn9ROR2Hvk4H6KgWfphno0htiRU A8xhXi1OfeZhYL6awvNLs4Uz2clhu7rlLBIza86LQfwOxfytubR7eV1Nh+hOnQzuH2Ql 21j1eXXmCpcpKIELOGElWbt20QpIRFtCLZgR4/70lpf9czZzd7zTjJgfrOuUbTE9qyPU BxvA== X-Gm-Message-State: ALoCoQks2oZM9bV4AkwJM3I/MdIdqitraiKIl4eMouxcGq9IvyKHHrBVQ1dqnoy8dHykf7vrdH4b X-Received: by 10.70.131.12 with SMTP id oi12mr44520083pdb.116.1410156849660; Sun, 07 Sep 2014 23:14:09 -0700 (PDT) Received: from localhost (pool-108-47-66-231.lsanca.fios.verizon.net. [108.47.66.231]) by mx.google.com with ESMTPSA id j13sm7837384pbq.42.2014.09.07.23.14.08 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 07 Sep 2014 23:14:08 -0700 (PDT) MIME-Version: 1.0 To: Tomeu Vizoso , From: Mike Turquette In-Reply-To: <1409758317-20564-1-git-send-email-tomeu.vizoso@collabora.com> References: <1409758148-20104-2-git-send-email-tomeu.vizoso@collabora.com> <1409758317-20564-1-git-send-email-tomeu.vizoso@collabora.com> Message-ID: <20140908061355.19023.47997@quantum> User-Agent: alot/0.3.5 Date: Sun, 07 Sep 2014 23:13:55 -0700 X-Mailman-Approved-At: Mon, 08 Sep 2014 10:30:21 +0200 Cc: Ulf Hansson , Prashant Gaikwad , "Stephen Warren , Thierry Reding , tomasz.figa@gmail.com, Peter De Schrijver , rabin@rab.in, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Russell King , Shawn Guo , Sascha Hauer , David Brown , Daniel Walker , Bryan Huntsman , Paul Walmsley , Tony Lindgren , =?utf-8?q?=22_Beno=C3=AEt_Cousson?= , Kevin Hilman" , Benjamin Herrenschmidt , alsa-devel@alsa-project.org, Paul Mackerras , Sylwester Nawrocki , linux-arch@vger.kernel.org, Boris Brezillon , Kukjin Kim , =?utf-8?b?IiBFbWlsaW8gTMOzcGV6?= , patches@opensource.wolfsonmicro.com, Michal Simek , Takashi Iwai , Santosh Shilimkar , Anatolij Gustschin , Dinh Nguyen , linux-media@vger.kernel.org, Arnd Bergmann , linux-arm-msm@vger.kernel.org, spear-devel@list.st.com, Mark Brown , linux-rpi-kernel@lists.infradead.org, Ben Dooks , linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Barry Song , Tomeu Vizoso , Liam Girdwood , Kyungmin Park , Viresh Kumar , Maxime Ripard , linuxppc-dev@lists.ozlabs.org, Mauro Carvalho Chehab Subject: Re: [alsa-devel] [PATCH v9 2/6] clk: Move all drivers to use internal API X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Quoting Tomeu Vizoso (2014-09-03 08:31:57) > In preparation to change the public API to return a per-user clk structure, > remove any usage of this public API from the clock implementations. > > The reason for having this in a separate commit from the one that introduces > the implementation of the new functions is to separate the changes generated > with Coccinelle from the rest, and keep the patches' size reasonable. > > Signed-off-by: Tomeu Vizoso > Tested-by: Boris Brezillon > Tested-by: Heiko Stuebner > Acked-by: Boris Brezillon Hi Tomeu, Looks like the Coccinelle script had a false-positive. asm-generic/clkdev.h was converted from clk->clk_core and this blowed up clock drivers for architectures that don't provide an asm-specific clkdev.h implementation. This fixes x86's LPSS and a Microblaze driver. I've rolled the following fix into your 2/9 patch. No action is necessary. Regards, Mike diff --git a/include/asm-generic/clkdev.h b/include/asm-generic/clkdev.h index 4320225..90a32a6 100644 --- a/include/asm-generic/clkdev.h +++ b/include/asm-generic/clkdev.h @@ -15,10 +15,10 @@ #include -struct clk_core; +struct clk; -static inline int __clk_get(struct clk_core *clk) { return 1; } -static inline void __clk_put(struct clk_core *clk) { } +static inline int __clk_get(struct clk *clk) { return 1; } +static inline void __clk_put(struct clk *clk) { } static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size) {