linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: exynos: Fix compiler error with THIS_MODULE
@ 2011-11-07  5:45 Kyungmin Park
  2011-11-08  5:21 ` Kukjin Kim
  0 siblings, 1 reply; 2+ messages in thread
From: Kyungmin Park @ 2011-11-07  5:45 UTC (permalink / raw)
  To: linux-arm-kernel

From: Kyungmin Park <kyungmin.park@samsung.com>

  CC      arch/arm/mach-exynos/cpuidle.o
arch/arm/mach-exynos/cpuidle.c:36: error: 'THIS_MODULE' undeclared here (not in a function)
arch/arm/mach-exynos/cpuidle.c: In function 'exynos4_enter_idle':
arch/arm/mach-exynos/cpuidle.c:42: error: storage size of 'before' isn't known
arch/arm/mach-exynos/cpuidle.c:42: error: storage size of 'after' isn't known
arch/arm/mach-exynos/cpuidle.c:46: error: implicit declaration of function 'do_gettimeofday'
arch/arm/mach-exynos/cpuidle.c:52: error: 'USEC_PER_SEC' undeclared (first use in this function)
arch/arm/mach-exynos/cpuidle.c:52: error: (Each undeclared identifier is reported only once
arch/arm/mach-exynos/cpuidle.c:52: error: for each function it appears in.)
arch/arm/mach-exynos/cpuidle.c:42: warning: unused variable 'after'
arch/arm/mach-exynos/cpuidle.c:42: warning: unused variable 'before'
make[1]: *** [arch/arm/mach-exynos/cpuidle.o] Error 1

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c
index bf7e96f..84628a8 100644
--- a/arch/arm/mach-exynos/cpuidle.c
+++ b/arch/arm/mach-exynos/cpuidle.c
@@ -9,6 +9,7 @@
 */
 
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/init.h>
 #include <linux/cpuidle.h>
 #include <linux/io.h>

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] arm: exynos: Fix compiler error with THIS_MODULE
  2011-11-07  5:45 [PATCH] arm: exynos: Fix compiler error with THIS_MODULE Kyungmin Park
@ 2011-11-08  5:21 ` Kukjin Kim
  0 siblings, 0 replies; 2+ messages in thread
From: Kukjin Kim @ 2011-11-08  5:21 UTC (permalink / raw)
  To: linux-arm-kernel

Kyungmin Park wrote:
> 
> From: Kyungmin Park <kyungmin.park@samsung.com>
> 
>   CC      arch/arm/mach-exynos/cpuidle.o
> arch/arm/mach-exynos/cpuidle.c:36: error: 'THIS_MODULE' undeclared here
(not in
> a function)
> arch/arm/mach-exynos/cpuidle.c: In function 'exynos4_enter_idle':
> arch/arm/mach-exynos/cpuidle.c:42: error: storage size of 'before' isn't
known
> arch/arm/mach-exynos/cpuidle.c:42: error: storage size of 'after' isn't
known
> arch/arm/mach-exynos/cpuidle.c:46: error: implicit declaration of function
> 'do_gettimeofday'
> arch/arm/mach-exynos/cpuidle.c:52: error: 'USEC_PER_SEC' undeclared (first
use
> in this function)
> arch/arm/mach-exynos/cpuidle.c:52: error: (Each undeclared identifier is
reported
> only once
> arch/arm/mach-exynos/cpuidle.c:52: error: for each function it appears
in.)
> arch/arm/mach-exynos/cpuidle.c:42: warning: unused variable 'after'
> arch/arm/mach-exynos/cpuidle.c:42: warning: unused variable 'before'
> make[1]: *** [arch/arm/mach-exynos/cpuidle.o] Error 1
> 
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> diff --git a/arch/arm/mach-exynos/cpuidle.c
b/arch/arm/mach-exynos/cpuidle.c
> index bf7e96f..84628a8 100644
> --- a/arch/arm/mach-exynos/cpuidle.c
> +++ b/arch/arm/mach-exynos/cpuidle.c
> @@ -9,6 +9,7 @@
>  */
> 
>  #include <linux/kernel.h>
> +#include <linux/module.h>
>  #include <linux/init.h>
>  #include <linux/cpuidle.h>
>  #include <linux/io.h>

Yes, that happened due to the commit 32aaeffbd4a7 (Merge branch
'modsplit-Oct31_2011'...) and I need to fix other Samsung stuff also.

OK, will apply.
Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-08  5:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07  5:45 [PATCH] arm: exynos: Fix compiler error with THIS_MODULE Kyungmin Park
2011-11-08  5:21 ` Kukjin Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).