Skip to contentSkip to conversation

romfs: have romfs_fs.h pull in necessary headers

PATCH In review Mike Frysinger 2 participants 5 messages Nov 22, 2010 – Nov 23, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 romfs: have romfs_fs.h pull in necessary headers

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

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

---
 include/linux/romfs_fs.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/linux/romfs_fs.h +3 -0
index c490fbc..5f57f93 100644
@@ -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
Signature · 1 line
1.7.3.1
#1 lore raw
Quoted 14 lines · On Sun, 21 Nov 2010 19:24:21 -0500 Mike Frysinger <[email protected]> wrote:

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

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

---
 include/linux/romfs_fs.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/linux/romfs_fs.h +0 -0
index c490fbc..5f57f93 100644

include/linux/romfs_fs.h line 9

Quoted 9 lines
include/linux/romfs_fs.h +3 -0
@@ -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?

#2 lore raw
Quoted 16 lines · Andrew Morton
Quoted 15 lines · 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.

include/linux/romfs_fs.h +3 -0
@@ -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 */
 
Quoted 6 lines

include/linux/romfs_fs.h line 9

Quoted 1 line
include/linux/romfs_fs.h +0 -0
  #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

#3 lore raw
Quoted 21 lines · On Mon, 22 Nov 2010 19:40:16 -0500 Mike Frysinger <[email protected]> wrote:
Quoted 20 lines · Andrew Morton
Quoted 15 lines · 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.

include/linux/romfs_fs.h +0 -0
@@ -1,6 +1,9 @@

__#ifndef __LINUX_ROMFS_FS_H
__#define __LINUX_ROMFS_FS_H

include/linux/romfs_fs.h +3 -0
+#include <linux/types.h>
+#include <linux/fs.h>
+

__/* The basic structures of the romfs filesystem */

Quoted 1 line

__#define ROMBSIZE BLOCK_SIZE

Better changelogs please.

Quoted 5 lines
Quoted 2 lines

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.

#4 lore raw
Quoted 22 lines · Andrew Morton
Quoted 21 lines · On Mon, 22 Nov 2010 19:40:16 -0500 Mike Frysinger wrote:
Quoted 20 lines · Andrew Morton
Quoted 15 lines · 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.

include/linux/romfs_fs.h +0 -0
@@ -1,6 +1,9 @@

__#ifndef __LINUX_ROMFS_FS_H
__#define __LINUX_ROMFS_FS_H

include/linux/romfs_fs.h +3 -0
+#include <linux/types.h>
+#include <linux/fs.h>
+

__/* The basic structures of the romfs filesystem */

Quoted 1 line

__#define ROMBSIZE BLOCK_SIZE

Better changelogs please.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

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