From patchwork Wed Jan 22 14:18:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: y@samsung.com X-Patchwork-Id: 3523371 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C1B6EC02DC for ; Wed, 22 Jan 2014 14:18:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A86E320155 for ; Wed, 22 Jan 2014 14:18:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A969320117 for ; Wed, 22 Jan 2014 14:18:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755476AbaAVOSm (ORCPT ); Wed, 22 Jan 2014 09:18:42 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:11843 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754553AbaAVOSl (ORCPT ); Wed, 22 Jan 2014 09:18:41 -0500 MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZT002U53R0TY60@mailout2.w1.samsung.com>; Wed, 22 Jan 2014 14:18:36 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-a4-52dfd33ed0f1 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id A1.07.23059.E33DFD25; Wed, 22 Jan 2014 14:18:38 +0000 (GMT) Content-transfer-encoding: 8BIT Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MZT00DLB3QZEM60@eusync3.samsung.com>; Wed, 22 Jan 2014 14:18:38 +0000 (GMT) From: y@samsung.com 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 Cc: Krzysztof Kozlowski , Lukasz Majewski , Tomasz Figa , Kyungmin Park Subject: [PATCH] cpufreq: exynos: Fix build error of no type of module_init Date: Wed, 22 Jan 2014 15:18:29 +0100 Message-id: <1390400309-22806-1-git-send-email-y@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: References: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrELMWRmVeSWpSXmKPExsVy+t/xq7p2l+8HGUxq4Ld42vSD3eL1C0OL 3gVX2SzONr1ht3jzcDOjxabH11gtLu+aw2bxufcIo8WM8/uYLM6cvsRqsX7GaxaLjV89HHg8 7lzbw+axeUm9x5ar7SwefVtWMXp83iQXwBrFZZOSmpNZllqkb5fAlfHr4wf2giv8FX3v/jA3 MD7g7WLk5JAQMJE4/OQpE4QtJnHh3nq2LkYuDiGBpYwS+38/ZwZJ8AoISvyYfI+li5GDg1lA XuLIpWyQMLOAusSkeYuYIer7mCSWLTnDDFLDJiAsMfWAFkhcRGAmk8TTd3vYQRxmgTWMEhPf NrCBdAsLeEtM23kWbDOLgKrEn9bZUMtsJVadnMEKMkhCQEFiziQbkDCngIzEnNmr2EFsIQFp ifvdPSwTGAVmITlvFsJ5s5Cct4CReRWjaGppckFxUnquoV5xYm5xaV66XnJ+7iZGSDx82cG4 +JjVIUYBDkYlHt7AXfeChFgTy4orcw8xSnAwK4nweqy6HyTEm5JYWZValB9fVJqTWnyIkYmD U6qBUeKj7/35k7rkfT3Nu5OeCz46vqdNdvOynca7dJ59mfPgj/B212pDc7EZtv6tqxXiP3+1 jJl55HRA9tzTESGPfIRk1SK+GR5/o3f/c4xy4YIXam//b7QM7l/Xc+FH8cEt/1n/PG194e4z nWHDntXtKd385tuDLhxgnuvFFVGyVXxabrr6W/sbPkosxRmJhlrMRcWJAI8sqAZlAgAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Krzysztof Kozlowski 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