All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] romfs: have romfs_fs.h pull in necessary headers
@ 2010-11-22  0:24 Mike Frysinger
  2010-11-22 21:58 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2010-11-22  0:24 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

This header uses things like __be32, so pull in linux/types.h.

Further, it uses BLOCK_SIZE, so pull in linux/fs.h.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 include/linux/romfs_fs.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/romfs_fs.h b/include/linux/romfs_fs.h
index c490fbc..5f57f93 100644
--- a/include/linux/romfs_fs.h
+++ b/include/linux/romfs_fs.h
@@ -1,6 +1,9 @@
 #ifndef __LINUX_ROMFS_FS_H
 #define __LINUX_ROMFS_FS_H
 
+#include <linux/types.h>
+#include <linux/fs.h>
+
 /* The basic structures of the romfs filesystem */
 
 #define ROMBSIZE BLOCK_SIZE
-- 
1.7.3.1


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

* Re: [PATCH] romfs: have romfs_fs.h pull in necessary headers
  2010-11-22  0:24 [PATCH] romfs: have romfs_fs.h pull in necessary headers Mike Frysinger
@ 2010-11-22 21:58 ` Andrew Morton
  2010-11-23  0:40   ` Mike Frysinger
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2010-11-22 21:58 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: linux-kernel

On Sun, 21 Nov 2010 19:24:21 -0500
Mike Frysinger <vapier@gentoo.org> wrote:

> This header uses things like __be32, so pull in linux/types.h.
> 
> Further, it uses BLOCK_SIZE, so pull in linux/fs.h.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  include/linux/romfs_fs.h |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/include/linux/romfs_fs.h b/include/linux/romfs_fs.h
> index c490fbc..5f57f93 100644
> --- a/include/linux/romfs_fs.h
> +++ b/include/linux/romfs_fs.h
> @@ -1,6 +1,9 @@
>  #ifndef __LINUX_ROMFS_FS_H
>  #define __LINUX_ROMFS_FS_H
>  
> +#include <linux/types.h>
> +#include <linux/fs.h>
> +
>  /* The basic structures of the romfs filesystem */
>  
>  #define ROMBSIZE BLOCK_SIZE

Better changelogs please.

Does this fix any build error?  If so, is that build error present in
2.6.36 or earlier?


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

* Re: [PATCH] romfs: have romfs_fs.h pull in necessary headers
  2010-11-22 21:58 ` Andrew Morton
@ 2010-11-23  0:40   ` Mike Frysinger
  2010-11-23  0:43     ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Frysinger @ 2010-11-23  0:40 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

On Mon, Nov 22, 2010 at 16:58, Andrew Morton wrote:
> On Sun, 21 Nov 2010 19:24:21 -0500 Mike Frysinger wrote:
>> This header uses things like __be32, so pull in linux/types.h.
>>
>> Further, it uses BLOCK_SIZE, so pull in linux/fs.h.
>>
>> --- a/include/linux/romfs_fs.h
>> +++ b/include/linux/romfs_fs.h
>> @@ -1,6 +1,9 @@
>>  #ifndef __LINUX_ROMFS_FS_H
>>  #define __LINUX_ROMFS_FS_H
>>
>> +#include <linux/types.h>
>> +#include <linux/fs.h>
>> +
>>  /* The basic structures of the romfs filesystem */
>>
>>  #define ROMBSIZE BLOCK_SIZE
>
> Better changelogs please.
>
> Does this fix any build error?  If so, is that build error present in
> 2.6.36 or earlier?

headers should include the headers that define types/things that the
header itself needs
-mike

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

* Re: [PATCH] romfs: have romfs_fs.h pull in necessary headers
  2010-11-23  0:40   ` Mike Frysinger
@ 2010-11-23  0:43     ` Andrew Morton
  2010-11-23  1:27       ` Mike Frysinger
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2010-11-23  0:43 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: linux-kernel

On Mon, 22 Nov 2010 19:40:16 -0500
Mike Frysinger <vapier@gentoo.org> wrote:

> On Mon, Nov 22, 2010 at 16:58, Andrew Morton wrote:
> > On Sun, 21 Nov 2010 19:24:21 -0500 Mike Frysinger wrote:
> >> This header uses things like __be32, so pull in linux/types.h.
> >>
> >> Further, it uses BLOCK_SIZE, so pull in linux/fs.h.
> >>
> >> --- a/include/linux/romfs_fs.h
> >> +++ b/include/linux/romfs_fs.h
> >> @@ -1,6 +1,9 @@
> >> __#ifndef __LINUX_ROMFS_FS_H
> >> __#define __LINUX_ROMFS_FS_H
> >>
> >> +#include <linux/types.h>
> >> +#include <linux/fs.h>
> >> +
> >> __/* The basic structures of the romfs filesystem */
> >>
> >> __#define ROMBSIZE BLOCK_SIZE
> >
> > Better changelogs please.
> >
> > Does this fix any build error? __If so, is that build error present in
> > 2.6.36 or earlier?
> 
> headers should include the headers that define types/things that the
> header itself needs

I take that to mean "no" and "no", hence the fix is not needed in
2.6.37 and is not needed in -stable.

Thanks for being so helpful.

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

* Re: [PATCH] romfs: have romfs_fs.h pull in necessary headers
  2010-11-23  0:43     ` Andrew Morton
@ 2010-11-23  1:27       ` Mike Frysinger
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2010-11-23  1:27 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

On Mon, Nov 22, 2010 at 19:43, Andrew Morton wrote:
> On Mon, 22 Nov 2010 19:40:16 -0500 Mike Frysinger wrote:
>> On Mon, Nov 22, 2010 at 16:58, Andrew Morton wrote:
>> > On Sun, 21 Nov 2010 19:24:21 -0500 Mike Frysinger wrote:
>> >> This header uses things like __be32, so pull in linux/types.h.
>> >>
>> >> Further, it uses BLOCK_SIZE, so pull in linux/fs.h.
>> >>
>> >> --- a/include/linux/romfs_fs.h
>> >> +++ b/include/linux/romfs_fs.h
>> >> @@ -1,6 +1,9 @@
>> >> __#ifndef __LINUX_ROMFS_FS_H
>> >> __#define __LINUX_ROMFS_FS_H
>> >>
>> >> +#include <linux/types.h>
>> >> +#include <linux/fs.h>
>> >> +
>> >> __/* The basic structures of the romfs filesystem */
>> >>
>> >> __#define ROMBSIZE BLOCK_SIZE
>> >
>> > Better changelogs please.
>> >
>> > Does this fix any build error? __If so, is that build error present in
>> > 2.6.36 or earlier?
>>
>> headers should include the headers that define types/things that the
>> header itself needs
>
> I take that to mean "no" and "no", hence the fix is not needed in
> 2.6.37 and is not needed in -stable.

it's been broken for years, so people have long worked around it.  the
history is clear that there is no regression.  but headers should be
correct unto themselves.
-mike

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

end of thread, other threads:[~2010-11-23  1:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-22  0:24 [PATCH] romfs: have romfs_fs.h pull in necessary headers Mike Frysinger
2010-11-22 21:58 ` Andrew Morton
2010-11-23  0:40   ` Mike Frysinger
2010-11-23  0:43     ` Andrew Morton
2010-11-23  1:27       ` Mike Frysinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.