public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* linux-next: incorrect build fix
@ 2011-11-08 21:26 Stephen Rothwell
  2011-11-09  5:08 ` Kukjin Kim
  2011-11-09  6:11 ` Kukjin Kim
  0 siblings, 2 replies; 5+ messages in thread
From: Stephen Rothwell @ 2011-11-08 21:26 UTC (permalink / raw)
  To: Kyungmin Park; +Cc: Kukjin Kim, linux-next, LKML

[-- Attachment #1: Type: text/plain, Size: 565 bytes --]

Hi,

I noticed in commit 8644c202ff42 ("ARM: EXYNOS: Fix compiler error with
THIS_MODULE") in the s5p tree, an include of linux/module.h is used to
get THIS_MODULE. For THIS_MODULE, you only need to include
linux/export.h, now.  To fix the other errors that were fixed by side
effects of including module.h, you should include linux/time.h (for
struct timeval, USEC_PER_SEC and do_gettimeofday).

Please try a bit harder to get these things right.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

* RE: linux-next: incorrect build fix
  2011-11-08 21:26 linux-next: incorrect build fix Stephen Rothwell
@ 2011-11-09  5:08 ` Kukjin Kim
  2011-11-09  6:11 ` Kukjin Kim
  1 sibling, 0 replies; 5+ messages in thread
From: Kukjin Kim @ 2011-11-09  5:08 UTC (permalink / raw)
  To: 'Stephen Rothwell', 'Kyungmin Park'
  Cc: linux-next, 'LKML'

Stephen Rothwell wrote:
> 
> Hi,
> 
Hi Stephen,

> I noticed in commit 8644c202ff42 ("ARM: EXYNOS: Fix compiler error with
> THIS_MODULE") in the s5p tree, an include of linux/module.h is used to
> get THIS_MODULE. For THIS_MODULE, you only need to include
> linux/export.h, now.  To fix the other errors that were fixed by side
> effects of including module.h, you should include linux/time.h (for
> struct timeval, USEC_PER_SEC and do_gettimeofday).
> 
OK, I will fix it in my tree.

> Please try a bit harder to get these things right.

Thanks for your pointing out :)

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


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

* RE: linux-next: incorrect build fix
  2011-11-08 21:26 linux-next: incorrect build fix Stephen Rothwell
  2011-11-09  5:08 ` Kukjin Kim
@ 2011-11-09  6:11 ` Kukjin Kim
  2011-11-09  6:37   ` Stephen Rothwell
  1 sibling, 1 reply; 5+ messages in thread
From: Kukjin Kim @ 2011-11-09  6:11 UTC (permalink / raw)
  To: 'Kukjin Kim', 'Stephen Rothwell',
	'Kyungmin Park'
  Cc: linux-next, 'LKML'

Kukjin Kim wrote:
> 
> Stephen Rothwell wrote:
> >
> > Hi,
> >
> Hi Stephen,
> 
> > I noticed in commit 8644c202ff42 ("ARM: EXYNOS: Fix compiler error with
> > THIS_MODULE") in the s5p tree, an include of linux/module.h is used to
> > get THIS_MODULE. For THIS_MODULE, you only need to include
> > linux/export.h, now.  To fix the other errors that were fixed by side
> > effects of including module.h, you should include linux/time.h (for
> > struct timeval, USEC_PER_SEC and do_gettimeofday).
> >
> OK, I will fix it in my tree.
> 
> > Please try a bit harder to get these things right.
> 
Stephen,

I'm not sure following......
So only for THIS_MODULE, <linux/export.h> should be added instead of
<linux/module.h>?

> Thanks for your pointing out :)
> 

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] 5+ messages in thread

* Re: linux-next: incorrect build fix
  2011-11-09  6:11 ` Kukjin Kim
@ 2011-11-09  6:37   ` Stephen Rothwell
  2011-11-09  7:12     ` Kukjin Kim
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2011-11-09  6:37 UTC (permalink / raw)
  To: Kukjin Kim; +Cc: 'Kyungmin Park', linux-next, 'LKML'

[-- Attachment #1: Type: text/plain, Size: 568 bytes --]

Hi,

On Wed, 09 Nov 2011 15:11:50 +0900 Kukjin Kim <kgene.kim@samsung.com> wrote:
>
> I'm not sure following......
> So only for THIS_MODULE, <linux/export.h> should be added instead of
> <linux/module.h>?

Yes, that is correct.   It means that much less code is included.  If
replacing module.h with export.h causes other build errors, they should
be fixed by including the correct files directly (module.h include a lot
of other include files).

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

* RE: linux-next: incorrect build fix
  2011-11-09  6:37   ` Stephen Rothwell
@ 2011-11-09  7:12     ` Kukjin Kim
  0 siblings, 0 replies; 5+ messages in thread
From: Kukjin Kim @ 2011-11-09  7:12 UTC (permalink / raw)
  To: 'Stephen Rothwell'
  Cc: 'Kyungmin Park', linux-next, 'LKML'

Stephen Rothwell wrote:
> 
> Hi,
> 
> On Wed, 09 Nov 2011 15:11:50 +0900 Kukjin Kim <kgene.kim@samsung.com>
> wrote:
> >
> > I'm not sure following......
> > So only for THIS_MODULE, <linux/export.h> should be added instead of
> > <linux/module.h>?
> 
> Yes, that is correct.   It means that much less code is included.  If
> replacing module.h with export.h causes other build errors, they should
> be fixed by including the correct files directly (module.h include a lot
> of other include files).

I agree, okay. Will update Samsung stuff :)

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] 5+ messages in thread

end of thread, other threads:[~2011-11-09  7:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-08 21:26 linux-next: incorrect build fix Stephen Rothwell
2011-11-09  5:08 ` Kukjin Kim
2011-11-09  6:11 ` Kukjin Kim
2011-11-09  6:37   ` Stephen Rothwell
2011-11-09  7:12     ` Kukjin Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox