Message ID | 1390400337-22850-1-git-send-email-k.kozlowski@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 20B4F9F2E9 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 22 Jan 2014 14:19:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1186C2013D for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 22 Jan 2014 14:19:46 +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 931DD20117 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 22 Jan 2014 14:19:44 +0000 (UTC) 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 <k.kozlowski@samsung.com> To: Russell King <linux@arm.linux.org.uk>, Kukjin Kim <kgene.kim@samsung.com>, 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 (-------) Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>, Kyungmin Park <kyungmin.park@samsung.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> 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 |
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 <linux/io.h> #include <linux/export.h> #include <linux/time.h> +#include <linux/module.h> #include <linux/platform_device.h> #include <asm/proc-fns.h>
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 <k.kozlowski@samsung.com> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> --- arch/arm/mach-exynos/cpuidle.c | 1 + 1 file changed, 1 insertion(+)