Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753109AbbGKHHY (ORCPT ); Sat, 11 Jul 2015 03:07:24 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36712 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751870AbbGKHHW (ORCPT ); Sat, 11 Jul 2015 03:07:22 -0400 Message-ID: <55A0C0A6.8060600@samsung.com> Date: Sat, 11 Jul 2015 16:07:18 +0900 From: Krzysztof Kozlowski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Stephen Boyd , Mike Turquette CC: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Chanwoo Choi , Sylwester Nawrocki Subject: Re: [PATCH 22/45] clk: samsung: Properly include clk.h and clkdev.h References: <1436571223-10959-1-git-send-email-sboyd@codeaurora.org> <1436571223-10959-23-git-send-email-sboyd@codeaurora.org> In-Reply-To: <1436571223-10959-23-git-send-email-sboyd@codeaurora.org> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2947 Lines: 84 W dniu 11.07.2015 o 08:33, Stephen Boyd pisze: > Clock provider drivers generally shouldn't include clk.h because > it's the consumer API. Only include clk.h in files that are > using it. The clkdev.h header isn't always used either, so remove > it and add in slab.h where files were relying on it to include > slab for them. > > Cc: Chanwoo Choi > Cc: Sylwester Nawrocki > Signed-off-by: Stephen Boyd > --- > drivers/clk/samsung/clk-cpu.c | 3 +++ > drivers/clk/samsung/clk-exynos-audss.c | 3 ++- > drivers/clk/samsung/clk-exynos-clkout.c | 2 +- > drivers/clk/samsung/clk-exynos3250.c | 2 -- > drivers/clk/samsung/clk-exynos4.c | 2 +- > drivers/clk/samsung/clk-exynos4415.c | 2 -- > drivers/clk/samsung/clk-exynos5250.c | 2 -- > drivers/clk/samsung/clk-exynos5260.c | 2 -- > drivers/clk/samsung/clk-exynos5410.c | 2 -- > drivers/clk/samsung/clk-exynos5420.c | 3 +-- > drivers/clk/samsung/clk-exynos5433.c | 2 -- > drivers/clk/samsung/clk-exynos5440.c | 2 -- > drivers/clk/samsung/clk-exynos7.c | 2 -- > drivers/clk/samsung/clk-pll.c | 2 ++ > drivers/clk/samsung/clk-s3c2410.c | 2 -- > drivers/clk/samsung/clk-s3c2412.c | 2 -- > drivers/clk/samsung/clk-s3c2443.c | 2 -- > drivers/clk/samsung/clk-s3c64xx.c | 2 -- > drivers/clk/samsung/clk-s5pv210.c | 2 -- > drivers/clk/samsung/clk.c | 4 ++++ > drivers/clk/samsung/clk.h | 3 ++- > 21 files changed, 16 insertions(+), 32 deletions(-) One comment at the end. (...) > diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c > index 0117238391d6..f38a6c49f744 100644 > --- a/drivers/clk/samsung/clk.c > +++ b/drivers/clk/samsung/clk.c > @@ -11,6 +11,10 @@ > * clock framework for Samsung platforms. > */ > > +#include > +#include > +#include > +#include > #include > #include > > diff --git a/drivers/clk/samsung/clk.h b/drivers/clk/samsung/clk.h > index b775fc29caa5..aa872d2c5105 100644 > --- a/drivers/clk/samsung/clk.h > +++ b/drivers/clk/samsung/clk.h > @@ -13,10 +13,11 @@ > #ifndef __SAMSUNG_CLK_H > #define __SAMSUNG_CLK_H > > -#include > #include > #include "clk-pll.h" > > +struct clk; > + Hmmm... why? Including clk-provider (which declares struct clk in your last patch) is not sufficient? Best regards, Krzysztof > /** > * struct samsung_clk_provider: information about clock provider > * @reg_base: virtual address for the register base. > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/