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: 3523461 Return-Path: X-Original-To: patchwork-linux-arm@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 4AC219F2D6 for ; Wed, 22 Jan 2014 14:31:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F26820171 for ; Wed, 22 Jan 2014 14:31:10 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 78BA2200D7 for ; Wed, 22 Jan 2014 14:31:05 +0000 (UTC) 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 (-------) 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-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 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