From patchwork Wed Jan 22 14:21:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 313261 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from casper.infradead.org (unknown [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7EF942C00A6 for ; Thu, 23 Jan 2014 01:31:09 +1100 (EST) Received: from merlin.infradead.org ([205.233.59.134]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5ygx-00022h-Mv; Wed, 22 Jan 2014 14:22:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5ygt-00080q-Cw; Wed, 22 Jan 2014 14:22:03 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5ygp-0007z6-DS for linux-arm-kernel@lists.infradead.org; Wed, 22 Jan 2014 14:22:01 +0000 MIME-version: 1.0 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZT006TL3VVXK60@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 22 Jan 2014 14:21:31 +0000 (GMT) X-AuditID: cbfec7f5-b7fc96d000004885-85-52dfd3ea2432 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id B9.50.18565.AE3DFD25; Wed, 22 Jan 2014 14:21:30 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MZT00FOJ3VRI940@eusync2.samsung.com>; Wed, 22 Jan 2014 14:21:30 +0000 (GMT) From: Krzysztof Kozlowski To: "Rafael J. Wysocki" , Viresh Kumar , Kukjin Kim , cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] cpufreq: exynos: Fix build error of no type of module_init Date: Wed, 22 Jan 2014 15:21:16 +0100 Message-id: <1390400476-22951-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFLMWRmVeSWpSXmKPExsVy+t/xK7qvLt8PMjjdwWHxtOkHu8XrF4YW vQuuslmcbXrDbvHm4WZGi02Pr7FaXN41h83ic+8RRosZ5/cxWZw5fYnVYv2M1ywWG796OPB4 3Lm2h81j85J6jy1X21k8+rasYvT4vEkugDWKyyYlNSezLLVI3y6BK+PiBOOCufwVry+dZGxg 3MDbxcjJISFgInH76l52CFtM4sK99WxdjFwcQgJLGSV+Nu9hA0nwCghK/Jh8j6WLkYODWUBe 4silbJAws4C6xKR5i5gh6vuYJGYuf8wMkmATMJbYvHwJ2CARgZlMEk/f7WEHcZgF1jBKTHzb ADZVWCBEovX2J1YQm0VAVaJ1Qz8LxDZ3iT8dP9hBtkkIKEjMmWQzgZFvFpI7ZiHcMQvJHQsY mVcxiqaWJhcUJ6XnGukVJ+YWl+al6yXn525ihIT31x2MS49ZHWIU4GBU4uEN2HUvSIg1say4 MvcQowQHs5IIr8eq+0FCvCmJlVWpRfnxRaU5qcWHGJk4OKUaGPtzjBtr/VnXvAkWP+PqXGb2 ctXaJRfjdm+o8c/OvZz74MJOz8dn9FY6edoeuKN7dL/XdM5M66uSWvGTc8qz5N4f2qpav6n0 xJEmKb9b3roZFgIPcwykbl5OO9WekJh+i91VPFxP41NDspwOmwhnXtxX5yfyr6TUv3/wyVB/ bM/TfX3fb915SizFGYmGWsxFxYkAgM+5UE0CAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140122_092159_567962_469A24AF X-CRM114-Status: UNSURE ( 9.27 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.5 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [210.118.77.11 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 T_HDRS_LCASE Odd capitalization of message header 0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers Cc: Kyungmin Park , Tomasz Figa , Krzysztof Kozlowski , Lukasz Majewski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Add missing include to fix build error: drivers/cpufreq/exynos-cpufreq.c:292:1: warning: data definition has no type or storage class [enabled by default] drivers/cpufreq/exynos-cpufreq.c:292:1: error: type defaults to ‘int’ in declaration of ‘module_init’ [-Werror=implicit-int] drivers/cpufreq/exynos-cpufreq.c:292:1: warning: parameter names (without types) in function declaration [enabled by default] drivers/cpufreq/exynos-cpufreq.c:292:1: warning: data definition has no type or storage class [enabled by default] drivers/cpufreq/exynos-cpufreq.c:292:1: error: type defaults to ‘int’ in declaration of ‘module_exit’ [-Werror=implicit-int] drivers/cpufreq/exynos-cpufreq.c:292:1: warning: parameter names (without types) in function declaration [enabled by default] drivers/cpufreq/exynos-cpufreq.c:292:1: warning: ‘exynos_cpufreq_platdrv_init’ defined but not used [-Wunused-function] cc1: some warnings being treated as errors make[2]: *** [drivers/cpufreq/exynos-cpufreq.o] Error 1 make[1]: *** [drivers/cpufreq] Error 2 Build error happens on gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) and was introduced by commit d568b6f71df1 (cpufreq: exynos: Convert exynos-cpufreq to platform driver). Signed-off-by: Krzysztof Kozlowski Cc: Lukasz Majewski Cc: Tomasz Figa Cc: Kyungmin Park --- drivers/cpufreq/exynos-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c index fcd2914d081a..fa54c2b88dd7 100644 --- a/drivers/cpufreq/exynos-cpufreq.c +++ b/drivers/cpufreq/exynos-cpufreq.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include