Skip to contentSkip to conversation

fix headers_check warnings

GIT PULL Jaswinder Singh Rajput 3 participants 4 messages Feb 2, 2009 – Feb 13, 2009

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

The following changes since commit 1ff8f739c7cc4eaa89b6ba986494f458ff7bdbef:
Jaswinder Singh Rajput (1):
headers_check fix: xtensa, swab.h

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jaswinder/linux-2.6-tipclean.git core/header-fixes

Jaswinder Singh Rajput (7):
headers_check fix: linux/coda_psdev.h
headers_check fix: linux/in6.h
headers_check fix: linux/nubus.h
headers_check fix: linux/socket.h
headers_check fix: linux/reinserfs_fs.h
headers_check fix: x86, prctl.h
headers_check fix: x86, setup.h

 arch/x86/include/asm/prctl.h    |    4 ---
 arch/x86/include/asm/setup.h    |   45 +++++++++++++++++++--------------------
 arch/x86/include/asm/syscalls.h |    1 +
 include/linux/coda_psdev.h      |   15 ++++++-------
 include/linux/in6.h             |    2 +-
 include/linux/nubus.h           |    2 +
 include/linux/reiserfs_fs.h     |    8 +++++++
 include/linux/socket.h          |    6 +++-
 8 files changed, 45 insertions(+), 38 deletions(-)

This patchset fixes 31 headers_check warnings as shown earlier.

Complete diff:

arch/x86/include/asm/prctl.h +0 -4
index a889464..3ac5032 100644
@@ -6,8 +6,4 @@
 #define ARCH_GET_FS 0x1003
 #define ARCH_GET_GS 0x1004
 
-#ifdef CONFIG_X86_64
-extern long sys_arch_prctl(int, unsigned long);
-#endif /* CONFIG_X86_64 */
-
 #endif /* _ASM_X86_PRCTL_H */
arch/x86/include/asm/setup.h +22 -23

63 lines not on this page · raw message

arch/x86/include/asm/syscalls.h +1 -0
index c0b0bda..e26d34b 100644
@@ -74,6 +74,7 @@ asmlinkage long sys_vfork(struct pt_regs *);
 asmlinkage long sys_execve(char __user *, char __user * __user *,
 			   char __user * __user *,
 			   struct pt_regs *);
+long sys_arch_prctl(int, unsigned long);
 
 /* kernel/ioport.c */
 asmlinkage long sys_iopl(unsigned int, struct pt_regs *);
include/linux/coda_psdev.h +7 -8
index 07ae8f8..6f06352 100644
@@ -24,7 +24,7 @@ static inline struct venus_comm *coda_vcp(struct super_block *sb)
 	return (struct venus_comm *)((sb)->s_fs_info);
 }
 
-
+#ifdef __KERNEL__
 /* upcalls */
 int venus_rootfid(struct super_block *sb, struct CodaFid *fidp);
 int venus_getattr(struct super_block *sb, struct CodaFid *fid,
@@ -64,6 +64,12 @@ int coda_downcall(int opcode, union outputArgs *out, struct super_block *sb);
 int venus_fsync(struct super_block *sb, struct CodaFid *fid);
 int venus_statfs(struct dentry *dentry, struct kstatfs *sfs);
 
+/*
+ * Statistics
+ */
+
+extern struct venus_comm coda_comms[];
+#endif /* __KERNEL__ */
 
 /* messages between coda filesystem in kernel and Venus */
 struct upc_req {
@@ -82,11 +88,4 @@ struct upc_req {
 #define REQ_WRITE  0x4
 #define REQ_ABORT  0x8
 
-
-/*
- * Statistics
- */
-
-extern struct venus_comm coda_comms[];
-
 #endif
include/linux/in6.h +1 -1
index bc49204..718bf21 100644
@@ -44,11 +44,11 @@ struct in6_addr
  * NOTE: Be aware the IN6ADDR_* constants and in6addr_* externals are defined
  * in network byte order, not in host byte order as are the IPv4 equivalents
  */
+#ifdef __KERNEL__
 extern const struct in6_addr in6addr_any;
 #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }
 extern const struct in6_addr in6addr_loopback;
 #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
-#ifdef __KERNEL__
 extern const struct in6_addr in6addr_linklocal_allnodes;
 #define IN6ADDR_LINKLOCAL_ALLNODES_INIT	\
 		{ { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
include/linux/nubus.h +2 -0
index 7382af3..9be57d9 100644
@@ -296,6 +296,7 @@ struct nubus_dev {
 	struct nubus_board* board;
 };
 
+#ifdef __KERNEL__
 /* This is all NuBus devices (used to find devices later on) */
 extern struct nubus_dev* nubus_devices;
 /* This is all NuBus cards */
@@ -351,6 +352,7 @@ void nubus_get_rsrc_mem(void* dest,
 void nubus_get_rsrc_str(void* dest,
 			const struct nubus_dirent *dirent,
 			int maxlen);
+#endif /* __KERNEL__ */
 
 /* We'd like to get rid of this eventually.  Only daynaport.c uses it now. */
 static inline void *nubus_slot_addr(int slot)
include/linux/reiserfs_fs.h +8 -0
index bc5114d..a4db55f 100644
@@ -698,7 +698,9 @@ static inline void cpu_key_k_offset_dec(struct cpu_key *key)
 /* object identifier for root dir */
 #define REISERFS_ROOT_OBJECTID 2
 #define REISERFS_ROOT_PARENT_OBJECTID 1
+#ifdef __KERNEL__
 extern struct reiserfs_key root_key;
+#endif /* __KERNEL__ */
 
 /* 
  * Picture represents a leaf of the S+tree
@@ -1006,10 +1008,12 @@ struct reiserfs_de_head {
 #define de_visible(deh)	    	    test_bit_unaligned (DEH_Visible, &((deh)->deh_state))
 #define de_hidden(deh)	    	    !test_bit_unaligned (DEH_Visible, &((deh)->deh_state))
 
+#ifdef __KERNEL__
 extern void make_empty_dir_item_v1(char *body, __le32 dirid, __le32 objid,
 				   __le32 par_dirid, __le32 par_objid);
 extern void make_empty_dir_item(char *body, __le32 dirid, __le32 objid,
 				__le32 par_dirid, __le32 par_objid);
+#endif /* __KERNEL__ */
 
 /* array of the entry headers */
  /* get item body */
@@ -1478,7 +1482,9 @@ struct item_operations {
 	void (*print_vi) (struct virtual_item * vi);
 };
 
+#ifdef __KERNEL__
 extern struct item_operations *item_ops[TYPE_ANY + 1];
+#endif /* __KERNEL__ */
 
 #define op_bytes_number(ih,bsize)                    item_ops[le_ih_k_type (ih)]->bytes_number (ih, bsize)
 #define op_is_left_mergeable(key,bsize)              item_ops[le_key_k_type (le_key_version (key), key)]->is_left_mergeable (key, bsize)
@@ -1679,6 +1685,7 @@ struct reiserfs_transaction_handle {
 	struct list_head t_list;
 };
 
+#ifdef __KERNEL__
 /* used to keep track of ordered and tail writes, attached to the buffer
  * head through b_journal_head.
  */
@@ -2203,4 +2210,5 @@ int reiserfs_unpack(struct inode *inode, struct file *filp);
 /* xattr stuff */
 #define REISERFS_XATTR_DIR_SEM(s) (REISERFS_SB(s)->xattr_dir_sem)
 
+#endif /* __KERNEL__ */
 #endif				/* _LINUX_REISER_FS_H */
include/linux/socket.h +4 -2
index 20fc4bb..afc0190 100644
@@ -24,10 +24,12 @@ struct __kernel_sockaddr_storage {
 #include <linux/types.h>		/* pid_t			*/
 #include <linux/compiler.h>		/* __user			*/
 
-#ifdef CONFIG_PROC_FS
+#ifdef __KERNEL__
+# ifdef CONFIG_PROC_FS
 struct seq_file;
 extern void socket_seq_show(struct seq_file *seq);
-#endif
+# endif
+#endif /* __KERNEL__ */
 
 typedef unsigned short	sa_family_t;
 
#1 lore raw
Quoted 28 lines · Jaswinder Singh Rajput

The following changes since commit 1ff8f739c7cc4eaa89b6ba986494f458ff7bdbef:
Jaswinder Singh Rajput (1):
headers_check fix: xtensa, swab.h

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jaswinder/linux-2.6-tipclean.git core/header-fixes

Jaswinder Singh Rajput (7):
headers_check fix: linux/coda_psdev.h
headers_check fix: linux/in6.h
headers_check fix: linux/nubus.h
headers_check fix: linux/socket.h
headers_check fix: linux/reinserfs_fs.h
headers_check fix: x86, prctl.h
headers_check fix: x86, setup.h

 arch/x86/include/asm/prctl.h    |    4 ---
 arch/x86/include/asm/setup.h    |   45 +++++++++++++++++++--------------------
 arch/x86/include/asm/syscalls.h |    1 +
 include/linux/coda_psdev.h      |   15 ++++++-------
 include/linux/in6.h             |    2 +-
 include/linux/nubus.h           |    2 +
 include/linux/reiserfs_fs.h     |    8 +++++++
 include/linux/socket.h          |    6 +++-
 8 files changed, 45 insertions(+), 38 deletions(-)
Quoted 1 line

This patchset fixes 31 headers_check warnings as shown earlier.

Pulled into tip/core/header-fixes, thanks Jaswinder.

I'll put this through the -tip testing machinery as the x86 bits have the potential to have build breakage side-effects.

Ingo

#2 lore raw
Quoted 30 lines · Ingo Molnar
Quoted 28 lines · Jaswinder Singh Rajput

The following changes since commit 1ff8f739c7cc4eaa89b6ba986494f458ff7bdbef:
Jaswinder Singh Rajput (1):
headers_check fix: xtensa, swab.h

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jaswinder/linux-2.6-tipclean.git core/header-fixes

Jaswinder Singh Rajput (7):
headers_check fix: linux/coda_psdev.h
headers_check fix: linux/in6.h
headers_check fix: linux/nubus.h
headers_check fix: linux/socket.h
headers_check fix: linux/reinserfs_fs.h
headers_check fix: x86, prctl.h
headers_check fix: x86, setup.h

 arch/x86/include/asm/prctl.h    |    4 ---
 arch/x86/include/asm/setup.h    |   45 +++++++++++++++++++--------------------
 arch/x86/include/asm/syscalls.h |    1 +
 include/linux/coda_psdev.h      |   15 ++++++-------
 include/linux/in6.h             |    2 +-
 include/linux/nubus.h           |    2 +
 include/linux/reiserfs_fs.h     |    8 +++++++
 include/linux/socket.h          |    6 +++-
 8 files changed, 45 insertions(+), 38 deletions(-)
Quoted 7 lines
Quoted 1 line

This patchset fixes 31 headers_check warnings as shown earlier.

Pulled into tip/core/header-fixes, thanks Jaswinder.

I'll put this through the -tip testing machinery as the x86 bits have the potential to have build breakage side-effects.

Regarding headers_check warnings whether anyone would like to see anything beyond what's currently in -tip?

--
JSR

#3 lore raw
In reply to Jaswinder Singh Rajput
Quoted 8 lines · Jaswinder Singh Rajput

Jaswinder Singh Rajput (7):
headers_check fix: linux/coda_psdev.h
headers_check fix: linux/in6.h
headers_check fix: linux/nubus.h
headers_check fix: linux/socket.h
headers_check fix: linux/reinserfs_fs.h
headers_check fix: x86, prctl.h
headers_check fix: x86, setup.h

The new changes look good, thanks for your tireless effort to cut down the warnings. However, my other previous comments still apply.
In particular, the reiserfs_fs.h changes don't look helpful, how about just not exporting that file?

	Arnd <><