From patchwork Wed Jan 22 14:18:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 313259 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 2BAD72C0089 for ; Thu, 23 Jan 2014 01:19:51 +1100 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5yeU-0000fI-8N; Wed, 22 Jan 2014 14:19:34 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5yeR-0007sT-Lh; Wed, 22 Jan 2014 14:19:31 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5yeO-0007qi-5m for linux-arm-kernel@lists.infradead.org; Wed, 22 Jan 2014 14:19:29 +0000 MIME-version: 1.0 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 <0MZT002UG3RQTY60@mailout2.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 22 Jan 2014 14:19:03 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-42-52dfd35948ba Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id FB.17.23059.953DFD25; Wed, 22 Jan 2014 14:19:05 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MZT00IH53RPD460@eusync4.samsung.com>; Wed, 22 Jan 2014 14:19:05 +0000 (GMT) From: Krzysztof Kozlowski To: Russell King , Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: EXYNOS: cpuidle: Fix build error of no type of module_init Date: Wed, 22 Jan 2014 15:18:57 +0100 Message-id: <1390400337-22850-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrILMWRmVeSWpSXmKPExsVy+t/xa7qRl+8HGdy/JWuxccZ6VovXLwwt ehdcZbM42/SG3WLT42usFpd3zWGzmHF+H5PF7cu8DhweLc09bB6bl9R79G1ZxejxeZNcAEsU l01Kak5mWWqRvl0CV8ata8fYCjbyVXRta2VpYDzD08XIySEhYCLReOgjM4QtJnHh3no2EFtI YCmjxNSrWiA2r4CgxI/J91i6GDk4mAXkJY5cygYJMwuoS0yatwiolQuovI9JYtWNTWBz2ASM JTYvX8IGkhAR2MEosfzeZXYQh1lgGqPEkb59rCBVwgIBEs9utjOB2CwCqhIHH29ghdjmLnH2 +Rc2kG0SAgoScybZTGDkm4XkjlkId8xCcscCRuZVjKKppckFxUnpuYZ6xYm5xaV56XrJ+bmb GCHB+mUH4+JjVocYBTgYlXh4A3fdCxJiTSwrrsw9xCjBwawkwuux6n6QEG9KYmVValF+fFFp TmrxIUYmDk6pBsYGiWOva68lbvilxl284vv2Z807lod4P3p8rYpBLPmK9D5/xjmR8uWsp7TE VsTbKx8Oe6dsl3X10ONjbxd55U/Z0JPaK6TymHPXCYNSe6ZPB/dsfJfps+BdsFnZjvX+94VZ LLoXFXyx85u96XnabY/QkEVH2xgXndso3y249OrvU0f9fBK0k+8qsRRnJBpqMRcVJwIAW2qH MzQCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140122_091928_290639_338F937C X-CRM114-Status: UNSURE ( 9.48 ) 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.12 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: Krzysztof Kozlowski , Kyungmin Park , Bartlomiej Zolnierkiewicz 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: arch/arm/mach-exynos/cpuidle.c:256:1: warning: data definition has no type or storage class [enabled by default] arch/arm/mach-exynos/cpuidle.c:256:1: error: type defaults to ‘int’ in declaration of ‘module_init’ [-Werror=implicit-int] arch/arm/mach-exynos/cpuidle.c:256:1: warning: parameter names (without types) in function declaration [enabled by default] arch/arm/mach-exynos/cpuidle.c:256:1: warning: data definition has no type or storage class [enabled by default] arch/arm/mach-exynos/cpuidle.c:256:1: error: type defaults to ‘int’ in declaration of ‘module_exit’ [-Werror=implicit-int] arch/arm/mach-exynos/cpuidle.c:256:1: warning: parameter names (without types) in function declaration [enabled by default] arch/arm/mach-exynos/cpuidle.c:256:1: warning: ‘exynos_cpuidle_driver_init’ defined but not used [-Wunused-function] cc1: some warnings being treated as errors make[1]: *** [arch/arm/mach-exynos/cpuidle.o] Error 1 Build error happens on gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) and was introduced by commit 35baa3369d1c (ARM: EXYNOS: convert cpuidle driver to be a platform driver). Signed-off-by: Krzysztof Kozlowski Cc: Bartlomiej Zolnierkiewicz Cc: Kyungmin Park --- arch/arm/mach-exynos/cpuidle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index f57cb91f02aa..53dc1e705b2f 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include