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: 3523401 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 020459F2E9 for ; Wed, 22 Jan 2014 14:19:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF51A2013D for ; Wed, 22 Jan 2014 14:19:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D264520117 for ; Wed, 22 Jan 2014 14:19:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755209AbaAVOTI (ORCPT ); Wed, 22 Jan 2014 09:19:08 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:11871 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753856AbaAVOTG (ORCPT ); Wed, 22 Jan 2014 09:19:06 -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 <0MZT002UG3RQTY60@mailout2.w1.samsung.com>; 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) Content-transfer-encoding: 8BIT 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 Cc: Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Kyungmin Park 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= 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 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