fix 39 'make headers_check' warnings
Subsystems (5)
The following changes since commit 2a927058df624d1c19bd42a90cb91ae148f12651:
Ingo Molnar (1):
Merge branch 'core/header-fixes'
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jaswinder/linux-2.6-tiptop.git master
Jaswinder Singh Rajput (14):
headers_check fix: linux/atmdev.h
headers_check fix: linux/cm4000_cs.h
headers_check fix: linux/elf-fdpic.h
headers_check fix: linux/elfcore.h
headers_check fix: linux/fb.h
headers_check fix: linux/flat.h
headers_check fix: linux/kernel.h
headers_check fix: linux/kvm.h
headers_check fix: linux/pkt_cls.h
headers_check fix: linux/pktcdvd.h
headers_check fix: linux/raw.h
headers_check fix: linux/socket.h
headers_check fix: linux/sound.h
headers_check fix: linux/videodev2.h
include/linux/atmdev.h | 2 ++ include/linux/cm4000_cs.h | 2 +- include/linux/elf-fdpic.h | 2 ++ include/linux/elfcore.h | 2 ++ include/linux/fb.h | 4 ++-- include/linux/flat.h | 8 +++++--- include/linux/kernel.h | 3 ++- include/linux/kvm.h | 8 ++++++++ include/linux/pkt_cls.h | 4 ++-- include/linux/pktcdvd.h | 2 ++ include/linux/raw.h | 2 ++ include/linux/socket.h | 3 ++- include/linux/sound.h | 2 ++ include/linux/videodev2.h | 2 +- 14 files changed, 35 insertions(+), 11 deletions(-)
This patchset fix the following 'make headers_check' warnings:/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/atmdev.h:103: leaks CONFIG_COMPAT to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/cm4000_cs.h:22: leaks CONFIG_COMPAT to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/elf-fdpic.h:61: leaks CONFIG_MMU to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/elf-fdpic.h:62: extern's make no sense in userspace /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/elfcore.h:59: leaks CONFIG_BINFMT to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/fb.h:4: include of <linux/types.h> is preferred over <asm/types.h> /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/fb.h:152: found __[us]{8,16,32,64} type without #include <linux/types.h> /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/fb.h:381: leaks CONFIG_FB to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/flat.h:16: leaks CONFIG_BINFMT to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kernel.h:39: leaks CONFIG_NUMA to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kernel.h:40: leaks CONFIG_NUMA to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kernel.h:46: leaks CONFIG_FTRACE to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kernel.h:47: leaks CONFIG_FTRACE to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:10: include of <linux/types.h> is preferred over <asm/types.h> /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:19: found __[us]{8,16,32,64} type without #include <linux/types.h> /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:61: leaks CONFIG_X86 to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:64: leaks CONFIG_X86 to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:387: leaks CONFIG_X86 to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:391: leaks CONFIG_X86 to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:396: leaks CONFIG_X86 to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/pkt_cls.h:122: found __[us]{8,16,32,64} type without #include <linux/types.h> /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/pkt_cls.h:306: leaks CONFIG_NET to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/pkt_cls.h:307: leaks CONFIG_NET to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/pktcdvd.h:36: leaks CONFIG_CDROM to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/ppp_defs.h:50: found __[us]{8,16,32,64} type without #include <linux/types.h> /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/raw.h:16: leaks CONFIG_MAX to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/socket.h:27: leaks CONFIG_PROC to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/socket.h:29: extern's make no sense in userspace /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/socket.h:262: leaks CONFIG_COMPAT to userspace where it is not valid /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:33: extern's make no sense in userspace /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:34: extern's make no sense in userspace /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:35: extern's make no sense in userspace /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:36: extern's make no sense in userspace /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:37: extern's make no sense in userspace /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:39: extern's make no sense in userspace /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:40: extern's make no sense in userspace /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:41: extern's make no sense in userspace /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:42: extern's make no sense in userspace /home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/videodev2.h:1477: leaks CONFIG_VIDEO to userspace where it is not valid
include/linux/atmdev.h +2 -0
@@ -100,10 +100,12 @@ struct atm_dev_stats {/* use backend to make new if */ #define ATM_ADDPARTY _IOW('a', ATMIOC_SPECIAL+4,struct atm_iobuf)/* add party to p2mp call */ +#ifdef __KERNEL__#ifdef CONFIG_COMPAT /* It actually takes struct sockaddr_atmsvc, not struct atm_iobuf */ #define COMPAT_ATM_ADDPARTY _IOW('a', ATMIOC_SPECIAL+4,struct compat_atm_iobuf)#endif +#endif /* __KERNEL__ */ #define ATM_DROPPARTY _IOW('a', ATMIOC_SPECIAL+5,int)/* drop party from p2mp call */
include/linux/cm4000_cs.h +1 -1
@@ -19,7 +19,7 @@ typedef struct atreq {/* what is particularly stupid in the original driver is the arch-dependant -* member sizes. This leads to CONFIG_COMPAT breakage, since 32bit userspace +* member sizes. This leads to COMPAT breakage, since 32bit userspace * will lay out the structure members differently than the 64bit kernel. * * I've changed "ptsreq.protocol" from "unsigned long" to "u_int32_t".
include/linux/elf-fdpic.h +2 -0
@@ -58,11 +58,13 @@ struct elf_fdpic_params {#define ELF_FDPIC_FLAG_PRESENT 0x80000000/* T if this object is present */ }; +#ifdef __KERNEL__#ifdef CONFIG_MMU extern void elf_fdpic_arch_lay_out_mm (struct elf_fdpic_params *exec_params,struct elf_fdpic_params *interp_params,unsigned long *start_stack,unsigned long *start_brk);#endif +#endif /* __KERNEL__ */ #endif /* _LINUX_ELF_FDPIC_H */
include/linux/elfcore.h +2 -0
@@ -64,6 +64,7 @@ struct elf_prstatuslong pr_instr;/* Current instruction */ #endif elf_gregset_t pr_reg;/* GP registers */ +#ifdef __KERNEL__#ifdef CONFIG_BINFMT_ELF_FDPIC /* When using FDPIC, the loadmap addresses need to be communicated * to GDB in order for GDB to do the necessary relocations. The
@@ -74,6 +75,7 @@ struct elf_prstatusunsigned long pr_exec_fdpic_loadmap;unsigned long pr_interp_fdpic_loadmap;#endif +#endif /* __KERNEL__ */ int pr_fpvalid;/* True if math co-processor being used. */ };
include/linux/fb.h +2 -2
@@ -382,14 +382,14 @@ struct fb_cursor {struct fb_image image;/* Cursor image */ }; +#ifdef __KERNEL__ +#ifdef CONFIG_FB_BACKLIGHT /* Settings for the generic backlight code */ #define FB_BACKLIGHT_LEVELS 128#define FB_BACKLIGHT_MAX 0xFF#endif -#ifdef __KERNEL__ -#include <linux/fs.h> #include <linux/init.h> #include <linux/device.h>
include/linux/flat.h +5 -3
@@ -10,17 +10,19 @@#ifndef _LINUX_FLAT_H#define _LINUX_FLAT_H +#define FLAT_VERSION 0x00000004L +#ifdef __KERNEL__#include <asm/flat.h> -#endif - -#define FLAT_VERSION 0x00000004L#ifdef CONFIG_BINFMT_SHARED_FLAT #define MAX_SHARED_LIBS (4)#else #define MAX_SHARED_LIBS (1)#endif +#else /* __KERNEL__ */ +#define MAX_SHARED_LIBS (1) +#endif /* __KERNEL__ */ /* * To make everything easier to port and manage cross platform
include/linux/kernel.h +2 -1
@@ -528,6 +528,7 @@ struct sysinfo {/* Trap pasters of __FUNCTION__ at compile-time */ #define __FUNCTION__ (__func__) +#ifdef __KERNEL__/* This helps us to avoid #ifdef CONFIG_NUMA */ #ifdef CONFIG_NUMA #define NUMA_BUILD 1
@@ -539,5 +540,5 @@ struct sysinfo {#ifdef CONFIG_FTRACE_MCOUNT_RECORD # define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD #endif - +#endif /* __KERNEL__ */ #endif
include/linux/kvm.h +8 -0
@@ -58,12 +58,14 @@ struct kvm_irqchip {__u32 pad;union {char dummy[512 ];/* reserving space */ +#ifdef __KERNEL__#ifdef CONFIG_X86 struct kvm_pic_state pic;#endif #if defined(CONFIG_X86 ) || defined(CONFIG_IA64 )struct kvm_ioapic_state ioapic;#endif +#endif /* __KERNEL__ */ } chip; };
@@ -384,18 +386,24 @@ struct kvm_trace_rec {#define KVM_CAP_MP_STATE 14#define KVM_CAP_COALESCED_MMIO 15#define KVM_CAP_SYNC_MMU 16/* Changes to host mmap are reflected in guest */ +#ifdef __KERNEL__#if defined(CONFIG_X86 )||defined(CONFIG_IA64 )#define KVM_CAP_DEVICE_ASSIGNMENT 17#endif +#endif /* __KERNEL__ */ #define KVM_CAP_IOMMU 18 +#ifdef __KERNEL__#if defined(CONFIG_X86 )#define KVM_CAP_DEVICE_MSI 20#endif +#endif /* __KERNEL__ */ /* Bug in KVM_SET_USER_MEMORY_REGION fixed: */ #define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21 +#ifdef __KERNEL__#if defined(CONFIG_X86 )#define KVM_CAP_USER_NMI 22#endif +#endif /* __KERNEL__ */ /* * ioctls for VM fds
include/linux/pkt_cls.h +2 -2
@@ -304,8 +304,8 @@ enumTCA_FW_UNSPEC ,TCA_FW_CLASSID ,TCA_FW_POLICE , -TCA_FW_INDEV ,/* used by CONFIG_NET_CLS_IND */ -TCA_FW_ACT ,/* used by CONFIG_NET_CLS_ACT */ +TCA_FW_INDEV ,/* used by NET_CLS_IND */ +TCA_FW_ACT ,/* used by NET_CLS_ACT */ TCA_FW_MASK , __TCA_FW_MAX };
include/linux/pktcdvd.h +2 -0
@@ -33,11 +33,13 @@* able to sucessfully recover with this option (drive will return good * status as soon as the cdb is validated). */ +#ifdef __KERNEL__#if defined(CONFIG_CDROM_PKTCDVD_WCACHE )#define USE_WCACHING 1#else #define USE_WCACHING 0#endif +#endif /* __KERNEL__ */ /* * No user-servicable parts beyond this point ->
include/linux/raw.h +2 -0
@@ -13,6 +13,8 @@ struct raw_config_request __u64 block_minor; }; +#ifdef __KERNEL__#define MAX_RAW_MINORS CONFIG_MAX_RAW_DEVS +#endif /* __KERNEL__ */ #endif /* __LINUX_RAW_H */
include/linux/socket.h +2 -1
@@ -256,12 +256,13 @@ struct ucred {#define MSG_CMSG_CLOEXEC 0x40000000/* Set close_on_exit for file descriptor received through SCM_RIGHTS */ +#ifdef __KERNEL__#if defined(CONFIG_COMPAT )#define MSG_CMSG_COMPAT 0x80000000/* This message needs 32 bit fixups */ #else #define MSG_CMSG_COMPAT 0/* We never have 32 bit fixups */ #endif - +#endif /* __KERNEL__ */ /* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx */ #define SOL_IP 0
include/linux/sound.h +2 -0
@@ -25,6 +25,7 @@#define SND_DEV_AMIDI 13/* Like /dev/midi (obsolete) */ #define SND_DEV_ADMMIDI 14/* Like /dev/dmmidi (onsolete) */ +#ifdef __KERNEL__/* * Sound core interface functions */
@@ -40,3 +41,4 @@ extern void unregister_sound_special(int unit);extern void unregister_sound_mixer (int unit);extern void unregister_sound_midi (int unit);extern void unregister_sound_dsp (int unit); +#endif /* __KERNEL__ */
include/linux/videodev2.h +1 -1
@@ -1480,7 +1480,7 @@ struct v4l2_chip_ident_old {#if 1 /* Experimental, meant for debugging, testing and internal use. -Only implemented if CONFIG_VIDEO_ADV_DEBUG is defined. +Only implemented if VIDEO_ADV_DEBUG is defined. You must be root to use these ioctls. Never use these in applications! */ #define VIDIOC_DBG_S_REGISTER _IOW('V', 79, struct v4l2_dbg_register)#define VIDIOC_DBG_G_REGISTER _IOWR('V', 80, struct v4l2_dbg_register)
Quoted 72 lines · Jaswinder Singh Rajput
The following changes since commit
2a927058df624d1c19bd42a90cb91ae148f12651:
Ingo Molnar (1):
Merge branch 'core/header-fixes'are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jaswinder/linux-2.6-tiptop.gitmasterJaswinder Singh Rajput (14):
headers_checkfix:linux/atmdev.h
headers_checkfix:linux/cm4000_cs.h
headers_checkfix:linux/elf-fdpic.h
headers_checkfix:linux/elfcore.h
headers_checkfix:linux/fb.h
headers_checkfix:linux/flat.h
headers_checkfix:linux/kernel.h
headers_checkfix:linux/kvm.h
headers_checkfix:linux/pkt_cls.h
headers_checkfix:linux/pktcdvd.h
headers_checkfix:linux/raw.h
headers_checkfix:linux/socket.h
headers_checkfix:linux/sound.h
headers_checkfix:linux/videodev2.hinclude/linux/atmdev.h | 2 ++ include/linux/cm4000_cs.h | 2 +- include/linux/elf-fdpic.h | 2 ++ include/linux/elfcore.h | 2 ++ include/linux/fb.h | 4 ++-- include/linux/flat.h | 8 +++++--- include/linux/kernel.h | 3 ++- include/linux/kvm.h | 8 ++++++++ include/linux/pkt_cls.h | 4 ++-- include/linux/pktcdvd.h | 2 ++ include/linux/raw.h | 2 ++ include/linux/socket.h | 3 ++- include/linux/sound.h | 2 ++ include/linux/videodev2.h | 2 +- 14 files changed, 35 insertions(+), 11 deletions(-)This patchset fix the following 'make
headers_check' warnings:/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/atmdev.h:103: leaksCONFIG_COMPATto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/cm4000_cs.h:22: leaksCONFIG_COMPATto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/elf-fdpic.h:61: leaksCONFIG_MMUto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/elf-fdpic.h:62: extern's make no sense in userspace/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/elfcore.h:59: leaksCONFIG_BINFMTto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/fb.h:4: include of <linux/types.h> is preferred over <asm/types.h>/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/fb.h:152: found __[us]{8,16,32,64} type without #include <linux/types.h>/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/fb.h:381: leaksCONFIG_FBto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/flat.h:16: leaksCONFIG_BINFMTto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kernel.h:39: leaksCONFIG_NUMAto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kernel.h:40: leaksCONFIG_NUMAto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kernel.h:46: leaksCONFIG_FTRACEto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kernel.h:47: leaksCONFIG_FTRACEto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:10: include of <linux/types.h> is preferred over <asm/types.h>/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:19: found __[us]{8,16,32,64} type without #include <linux/types.h>/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:61: leaksCONFIG_X86to userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:64: leaksCONFIG_X86to userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:387: leaksCONFIG_X86to userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:391: leaksCONFIG_X86to userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/kvm.h:396: leaksCONFIG_X86to userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/pkt_cls.h:122: found __[us]{8,16,32,64} type without #include <linux/types.h>/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/pkt_cls.h:306: leaksCONFIG_NETto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/pkt_cls.h:307: leaksCONFIG_NETto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/pktcdvd.h:36: leaksCONFIG_CDROMto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/ppp_defs.h:50: found __[us]{8,16,32,64} type without #include <linux/types.h>/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/raw.h:16: leaksCONFIG_MAXto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/socket.h:27: leaksCONFIG_PROCto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/socket.h:29: extern's make no sense in userspace/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/socket.h:262: leaksCONFIG_COMPATto userspace where it is not valid/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:33: extern's make no sense in userspace/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:34: extern's make no sense in userspace
Quoted 8 lines
/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:35: extern's make no sense in userspace/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:36: extern's make no sense in userspace/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:37: extern's make no sense in userspace/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:39: extern's make no sense in userspace/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:40: extern's make no sense in userspace/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:41: extern's make no sense in userspace/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/sound.h:42: extern's make no sense in userspace/home/jaswinder/jaswinder-git/linux-2.6-tip/usr/include/linux/videodev2.h:1477: leaksCONFIG_VIDEOto userspace where it is not valid
pulled into tip/core/header-fixes, thanks Jaswinder!
Ingo
hm, i just noticed this detail:
commit 3521c5eef990515719614e212b26ea49e610d072
Author: Jaswinder Singh Rajput <[email protected]> Date: Sat Jan 17 19:25:46 2009 +0530
headers_check fix: x86, swab.h
fix the following 'make headers_check' warnings:
usr/include/asm/swab.h:4: include of <linux/types.h> is preferred over <asm/types.h> usr/include/asm/swab.h:7: found __[us]{8,16,32,64} type without #include <linux/types.h> usr/include/asm/swab.h:10: leaks CONFIG_X86 to userspace where it is not valid usr/include/asm/swab.h:40: leaks CONFIG_X86 to userspace where it is not valid
arch/x86/include/asm/swab.h +19 -2
@@ -1,12 +1,15 @@#ifndef _ASM_X86_SWAB_H#define _ASM_X86_SWAB_H -#include <asm/types.h> +#include <linux/types.h> +#ifdef __KERNEL__#include <linux/compiler.h> +#endif /* __KERNEL__ */ static inline __attribute_const__ __u32 __arch_swab32(__u32 val) {#ifdef __i386__ +#ifdef __KERNEL__# ifdef CONFIG_X86_BSWAP asm("bswap %0" :"=r" (val) :"0" (val));# else
@@ -16,7 +19,13 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 val) : "=q" (val) : "0" (val));# endif - +#else /* __KERNEL__ */ + asm("xchgb %b0,%h0\n\t" /* swap lower bytes */ +"rorl $16,%0\n\t" /* swap words */ +"xchgb %b0,%h0" /* swap higher bytes */ + :"=q" (val) + :"0" (val)); +#endif /* __KERNEL__ */ #else /* __i386__ */ asm("bswapl %0" : "=r" (val)
@@ -37,6 +46,7 @@ static inline __attribute_const__ __u64 __arch_swab64(__u64 val)__u64 u; } v; v.u = val; +#ifdef __KERNEL__# ifdef CONFIG_X86_BSWAP asm("bswapl %0 ; bswapl %1 ; xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b)
@@ -48,6 +58,13 @@ static inline __attribute_const__ __u64 __arch_swab64(__u64 val) : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));# endif +#else /* __KERNEL__ */ + v.s.a =__arch_swab32 (v.s.a); + v.s.b =__arch_swab32 (v.s.b); + asm("xchgl %0,%1" + :"=r" (v.s.a),"=r" (v.s.b) + :"0" (v.s.a),"1" (v.s.b)); +#endif /* __KERNEL__ */ return v.u;#else /* __i386__ */ asm("bswapq %0"
why does such a change introduce new code? It is duplicating existing code instead of cleaning it all up.
Ingo
Quoted 2 lines · Ingo Molnar
why does such a change introduce new code? It is duplicating existing code instead of cleaning it all up.
this has the same problem too:
#ifdef CONFIG_BINFMT_SHARED_FLAT
#define MAX_SHARED_LIBS (4)
#else
#define MAX_SHARED_LIBS (1)
#endif
+#else /* __KERNEL__ */
+#define MAX_SHARED_LIBS (1)
+#endif /* __KERNEL__ */
Ingo
(Avi Cc:-ed)
Quoted 10 lines · Jaswinder Singh Rajput
headers_checkfix:linux/kvm.hinclude/linux/kvm.h +0
-0@@ -58,12 +58,14 @@ struct kvm_irqchip {__u32 pad;union {char dummy[512 ];/* reserving space */
include/linux/kvm.h struct kvm_irqchip { · line 70
Quoted 10 lines
include/linux/kvm.h +2
-0+#ifdef __KERNEL__#ifdef CONFIG_X86 struct kvm_pic_state pic;#endif #if defined(CONFIG_X86 ) || defined(CONFIG_IA64 )struct kvm_ioapic_state ioapic;#endif +#endif /* __KERNEL__ */ } chip; };
Avi, does user-space need the kvm_irqchip definition from this header? If not then it would be cleaner to mark this whole structure as #ifdef __KERNEL__.
Quoted 12 lines
include/linux/kvm.h +3
-0@@ -384,18 +386,24 @@ struct kvm_trace_rec {#define KVM_CAP_MP_STATE 14#define KVM_CAP_COALESCED_MMIO 15#define KVM_CAP_SYNC_MMU 16/* Changes to host mmap are reflected in guest */ +#ifdef __KERNEL__#if defined(CONFIG_X86 )||defined(CONFIG_IA64 )#define KVM_CAP_DEVICE_ASSIGNMENT 17#endif +#endif /* __KERNEL__ */ #define KVM_CAP_IOMMU 18 +#ifdef __KERNEL__#if defined(CONFIG_X86 )
include/linux/kvm.h struct kvm_trace_rec { · line 406
Quoted 10 lines
include/linux/kvm.h +3
-0#define KVM_CAP_DEVICE_MSI 20#endif +#endif /* __KERNEL__ */ /* Bug in KVM_SET_USER_MEMORY_REGION fixed: */ #define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21 +#ifdef __KERNEL__#if defined(CONFIG_X86 )#define KVM_CAP_USER_NMI 22#endif +#endif /* __KERNEL__ */
likewise, are these bits really used by user-space KVM bits? If not then the whole thing could go into an #ifdef __KERNEL__ block.
Ingo
Quoted 24 lines · Ingo Molnar
hm, i just noticed this detail:
commit
3521c5eef990515719614e212b26ea49e610d072Author: Jaswinder Singh Rajput <[email protected]> Date: Sat Jan 17 19:25:46 2009 +0530
headers_checkfix: x86,swab.hfix the following 'make
headers_check' warnings:
usr/include/asm/swab.h:4: include of <linux/types.h> is preferred over <asm/types.h>usr/include/asm/swab.h:7: found __[us]{8,16,32,64} type without #include <linux/types.h>usr/include/asm/swab.h:10: leaksCONFIG_X86to userspace where it is not validusr/include/asm/swab.h:40: leaksCONFIG_X86to userspace where it is not validSigned-off-by Jaswinder Singh Rajput <[email protected]>Signed-off-by Ingo Molnar <[email protected]>arch/x86/include/asm/swab.h +0
-0
arch/x86/include/asm/swab.h line 7
Quoted 8 lines
arch/x86/include/asm/swab.h +3
-1@@ -1,12 +1,15 @@#ifndef _ASM_X86_SWAB_H#define _ASM_X86_SWAB_H -#include <asm/types.h> +#include <linux/types.h> +#ifdef __KERNEL__#include <linux/compiler.h> +#endif /* __KERNEL__ */
compiler.h includes should be nuked by make headers_instll automatically.
Sam
Quoted 28 lines · Sam Ravnborg
Quoted 27 lines · Ingo Molnar
hm, i just noticed this detail:
commit
3521c5eef990515719614e212b26ea49e610d072Author: Jaswinder Singh Rajput <[email protected]> Date: Sat Jan 17 19:25:46 2009 +0530
headers_checkfix: x86,swab.hfix the following 'make
headers_check' warnings:
usr/include/asm/swab.h:4: include of <linux/types.h> is preferred over <asm/types.h>usr/include/asm/swab.h:7: found __[us]{8,16,32,64} type without #include <linux/types.h>usr/include/asm/swab.h:10: leaksCONFIG_X86to userspace where it is not validusr/include/asm/swab.h:40: leaksCONFIG_X86to userspace where it is not validSigned-off-by Jaswinder Singh Rajput <[email protected]>Signed-off-by Ingo Molnar <[email protected]>arch/x86/include/asm/swab.h +0
-0@@ -1,12 +1,15 @@#ifndef _ASM_X86_SWAB_H#define _ASM_X86_SWAB_H
Quoted 7 lines
arch/x86/include/asm/swab.h line 7
Quoted 5 lines
arch/x86/include/asm/swab.h +3
-1-#include <asm/types.h> +#include <linux/types.h> +#ifdef __KERNEL__#include <linux/compiler.h> +#endif /* __KERNEL__ */
compiler.hincludes should be nuked by makeheaders_instllautomatically.
So the compiler.h include can be left there, and headers_check will not warn about it?
Ingo
Quoted 38 lines · Ingo Molnar
Quoted 28 lines · Sam Ravnborg
Quoted 27 lines · Ingo Molnar
hm, i just noticed this detail:
commit
3521c5eef990515719614e212b26ea49e610d072Author: Jaswinder Singh Rajput <[email protected]> Date: Sat Jan 17 19:25:46 2009 +0530
headers_checkfix: x86,swab.hfix the following 'make
headers_check' warnings:
usr/include/asm/swab.h:4: include of <linux/types.h> is preferred over <asm/types.h>usr/include/asm/swab.h:7: found __[us]{8,16,32,64} type without #include <linux/types.h>usr/include/asm/swab.h:10: leaksCONFIG_X86to userspace where it is not validusr/include/asm/swab.h:40: leaksCONFIG_X86to userspace where it is not validSigned-off-by Jaswinder Singh Rajput <[email protected]>Signed-off-by Ingo Molnar <[email protected]>arch/x86/include/asm/swab.h +0
-0@@ -1,12 +1,15 @@#ifndef _ASM_X86_SWAB_H#define _ASM_X86_SWAB_HQuoted 7 lines
arch/x86/include/asm/swab.h line 7
Quoted 5 lines
arch/x86/include/asm/swab.h +3
-1-#include <asm/types.h> +#include <linux/types.h> +#ifdef __KERNEL__#include <linux/compiler.h> +#endif /* __KERNEL__ */
compiler.hincludes should be nuked by makeheaders_instllautomatically.
Quoted 2 lines
So the
compiler.hinclude can be left there, andheaders_checkwill not warn about it?
Correct.
Sam
Quoted 47 lines · Ingo Molnar
static inline
__attribute_const____u32__arch_swab32(__u32 val){
#ifdef__i386__arch/x86/include/asm/swab.h +16
-1+#ifdef __KERNEL__# ifdef CONFIG_X86_BSWAP asm("bswap %0" :"=r" (val) :"0" (val));# else @@ -16,7 +19,13 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 val) : "=q" (val) : "0" (val));# endif - +#else /* __KERNEL__ */ + asm("xchgb %b0,%h0\n\t" /* swap lower bytes */ +"rorl $16,%0\n\t" /* swap words */ +"xchgb %b0,%h0" /* swap higher bytes */ + :"=q" (val) + :"0" (val)); +#endif /* __KERNEL__ */ #else /* __i386__ */ asm("bswapl %0" : "=r" (val)@@ -37,6 +46,7 @@ static inline __attribute_const__ __u64 __arch_swab64(__u64 val)__u64 u; } v; v.u = val; +#ifdef __KERNEL__# ifdef CONFIG_X86_BSWAP asm("bswapl %0 ; bswapl %1 ; xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b)@@ -48,6 +58,13 @@ static inline __attribute_const__ __u64 __arch_swab64(__u64 val) : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));# endif +#else /* __KERNEL__ */ + v.s.a =__arch_swab32 (v.s.a); + v.s.b =__arch_swab32 (v.s.b); + asm("xchgl %0,%1" + :"=r" (v.s.a),"=r" (v.s.b) + :"0" (v.s.a),"1" (v.s.b)); +#endif /* __KERNEL__ */ return v.u;#else /* __i386__ */ asm("bswapq %0"
Quoted 3 lines
why does such a change introduce new code? It is duplicating existing code instead of cleaning it all up.
That's why I was requesting you to check asm/swab.h because I was in doubt whether we need these functions in userspace or not.
If we do not need these functions in userspace then I will clean these up.
--
JSR
Quoted 9 lines · Sam Ravnborg
Quoted 9 lines
arch/x86/include/asm/swab.h +0
-0@@ -1,12 +1,15 @@#ifndef _ASM_X86_SWAB_H#define _ASM_X86_SWAB_H
Quoted 8 lines
arch/x86/include/asm/swab.h line 7
Quoted 5 lines
arch/x86/include/asm/swab.h +3
-1-#include <asm/types.h> +#include <linux/types.h> +#ifdef __KERNEL__#include <linux/compiler.h> +#endif /* __KERNEL__ */
compiler.hincludes should be nuked by makeheaders_instllautomatically.
But the problem is compiler.h provide extra line space in userspace header files because of nuking them.
So I moved compiler.h in __KERNEL__ as extra cleanup, it is not harmful but looks much nicer in userspace header files
--
JSR
Quoted 6 lines · Jaswinder Singh Rajput
Quoted 4 lines · Ingo Molnar
why does such a change introduce new code? It is duplicating existing code instead of cleaning it all up.
Quoted 6 lines
That's why I was requesting you to check
asm/swab.hbecause I was in doubt whether we need these functions in userspace or not.If we do not need these functions in userspace then I will clean these up.
As part of doing the swab.h splitout it was very tempting to just stop exporting _all_ of the asm/swab.h files now that there is a linux/swab.h. But I ended up leaving things as they were on arches that did expose their arch specific versions to userspace.
Just a thought.
Harvey
Quoted 19 lines · Jaswinder Singh Rajput
Quoted 9 lines · Sam Ravnborg
Quoted 9 lines
arch/x86/include/asm/swab.h +0
-0@@ -1,12 +1,15 @@#ifndef _ASM_X86_SWAB_H#define _ASM_X86_SWAB_HQuoted 8 lines
arch/x86/include/asm/swab.h line 7
Quoted 5 lines
arch/x86/include/asm/swab.h +3
-1-#include <asm/types.h> +#include <linux/types.h> +#ifdef __KERNEL__#include <linux/compiler.h> +#endif /* __KERNEL__ */
compiler.hincludes should be nuked by makeheaders_instllautomatically.
Quoted 5 lines
But the problem is
compiler.hprovide extra line space in userspace header files because of nuking them.So I moved
compiler.hin__KERNEL__as extra cleanup, it is not harmful but looks much nicer in userspace header files
We should fix scripts/headers_install.pl to drop the newline too. This is much better than adding of ifdef __KERNEL__ around the include of compiler.h.
Sam
Quoted 22 lines · Ingo Molnar
(Avi Cc:-ed)
Quoted 17 lines · Jaswinder Singh Rajput
headers_checkfix:linux/kvm.hinclude/linux/kvm.h +1
-0@@ -58,12 +58,14 @@ struct kvm_irqchip {__u32 pad;union {char dummy[512 ];/* reserving space */ +#ifdef __KERNEL__#ifdef CONFIG_X86 struct kvm_pic_state pic;#endif #if defined(CONFIG_X86 ) || defined(CONFIG_IA64 )
Quoted 10 lines
include/linux/kvm.h struct kvm_irqchip { · line 71
Quoted 6 lines
include/linux/kvm.h +1
-0struct kvm_ioapic_state ioapic;#endif +#endif /* __KERNEL__ */ } chip; };Avi, does user-space need the
kvm_irqchipdefinition from this header? If not then it would be cleaner to mark this whole structure as #ifdef__KERNEL__.
It does. This patch will break userspace.
Doesn't 'make headers_install' unifder the CONFIG_ stuff?
Quoted 17 lines
Quoted 17 lines
include/linux/kvm.h +4
-0@@ -384,18 +386,24 @@ struct kvm_trace_rec {#define KVM_CAP_MP_STATE 14#define KVM_CAP_COALESCED_MMIO 15#define KVM_CAP_SYNC_MMU 16/* Changes to host mmap are reflected in guest */ +#ifdef __KERNEL__#if defined(CONFIG_X86 )||defined(CONFIG_IA64 )#define KVM_CAP_DEVICE_ASSIGNMENT 17#endif +#endif /* __KERNEL__ */ #define KVM_CAP_IOMMU 18 +#ifdef __KERNEL__#if defined(CONFIG_X86 )#define KVM_CAP_DEVICE_MSI 20#endif +#endif /* __KERNEL__ */ /* Bug in KVM_SET_USER_MEMORY_REGION fixed: */ #define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21
Quoted 9 lines
include/linux/kvm.h struct kvm_trace_rec { · line 407
Quoted 6 lines
include/linux/kvm.h +2
-0+#ifdef __KERNEL__#if defined(CONFIG_X86 )#define KVM_CAP_USER_NMI 22#endif +#endif /* __KERNEL__ */ likewise, are these bits really used by user-space KVM bits? If not then the whole thing could go into an #ifdef
__KERNEL__block.
They are. This bits advertise to userspace what features kvm supports, both compile- and run-time.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 4 lines
It does. This patch will break userspace.
Doesn't 'make
headers_install' unifder theCONFIG_stuff?
Nope. headers_install only unifdef __KERNEL__ stuff.
Quoted 30 lines
Quoted 20 lines
Quoted 20 lines
include/linux/kvm.h +0
-0@@ -384,18 +386,24 @@ struct kvm_trace_rec {#define KVM_CAP_MP_STATE 14#define KVM_CAP_COALESCED_MMIO 15#define KVM_CAP_SYNC_MMU 16/* Changes to host mmap are reflected in guest */
+#ifdef__KERNEL__
#if defined(CONFIG_X86)||defined(CONFIG_IA64)
#defineKVM_CAP_DEVICE_ASSIGNMENT17
#endif
+#endif /*__KERNEL__*/
#defineKVM_CAP_IOMMU18
+#ifdef__KERNEL__
#ifdefined(CONFIG_X86)
#defineKVM_CAP_DEVICE_MSI20
#endif
+#endif /*__KERNEL__*/
/* Bug inKVM_SET_USER_MEMORY_REGIONfixed: */
#defineKVM_CAP_DESTROY_MEMORY_REGION_WORKS21
+#ifdef__KERNEL__Quoted 9 lines
Quoted 5 lines
#if
defined(CONFIG_X86)
#defineKVM_CAP_USER_NMI22
#endif
+#endif /*__KERNEL__*/likewise, are these bits really used by user-space KVM bits? If not then the whole thing could go into an #ifdef
__KERNEL__block.
Quoted 2 lines
They are. This bits advertise to userspace what features kvm supports, both compile- and run-time.
This is wrong...
The headers does not change with the kernel configuration and advertising the kvm features via a .h file like this is simply plain broken.
You cannot assume that the header files are generated with the exact same config as used by the running kernel.
And userspace has in no way access to the CONFIG_ namespace which is purely kernel-internal.
I cannot see how you have ever seen kcm advertise that for example KVM_CAP_USER_NMI equals to 22 because CONFIG_X86 is never (supposed to be) defined in userspace - except if you did so yourself by some means.
Sam
Quoted 10 lines · Harvey Harrison
Quoted 9 lines · Jaswinder Singh Rajput
Quoted 4 lines · Ingo Molnar
why does such a change introduce new code? It is duplicating existing code instead of cleaning it all up.
That's why I was requesting you to check
asm/swab.hbecause I was in doubt whether we need these functions in userspace or not.
Quoted 8 lines
Quoted 3 lines
If we do not need these functions in userspace then I will clean these up.
As part of doing the
swab.hsplitout it was very tempting to just stop exporting _all_ of theasm/swab.hfiles now that there is alinux/swab.h. But I ended up leaving things as they were on arches that did expose their arch specific versions to userspace.
i'd argue for a much narrower interface to user-space - we export so much stuff (more than 700 headers) and in such an unstructured way (75,000 lines of code) that it's plain crazy.
So if you think no x86 userspace actually needs swab.h, we can just wrap it all in __KERNEL__. I guess we cannot remove swab.h from include/linux/Kbuild, right?
Ingo
Quoted 7 lines · Sam Ravnborg
Quoted 2 lines
They are. This bits advertise to userspace what features kvm supports, both compile- and run-time.
This is wrong...
The headers does not change with the kernel configuration and advertising the kvm features via a .h file like this is simply plain broken.
Ok. Don't know why I thought unifdef was supplied with the full configuration.
Quoted 3 lines
You cannot assume that the header files are generated with the exact same config as used by the running kernel.
This is just for arch specific defines. I'll move these to asm/kvm.h.
Quoted 6 lines
And userspace has in no way access to the
CONFIG_namespace which is purely kernel-internal.I cannot see how you have ever seen kcm advertise that for example
KVM_CAP_USER_NMIequals to 22 becauseCONFIG_X86is never (supposed to be) defined in userspace - except if you did so yourself by some means.
We did, we ship a hacked-up kvm.h (generated by unifdef) with our userspace.
Thanks for the clarifications, helpful as always.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 7 lines · Ingo Molnar
Quoted 5 lines · Harvey Harrison
As part of doing the
swab.hsplitout it was very tempting to just stop exporting _all_ of theasm/swab.hfiles now that there is alinux/swab.h. But I ended up leaving things as they were on arches that did expose their arch specific versions to userspace.
Quoted 8 lines
i'd argue for a much narrower interface to user-space - we export so much stuff (more than 700 headers) and in such an unstructured way (75,000 lines of code) that it's plain crazy.
So if you think no x86 userspace actually needs
swab.h, we can just wrap it all in__KERNEL__. I guess we cannot removeswab.hfrominclude/linux/Kbuild, right?
Correct, include/linux/swab.h must stay as it provides the actual implementation for the endian helpers cpu_to_le16, etc. But now that I've gotten all of this split out of byteorder.h, we can hide all of the arch overrides by wrapping the include of asm/swab.h in ifdef __KERNEL__ and unexporting it. That would mean userpsace only gets the open-coded C versions and no inline asm from arch overrides.
So, there wouldn't be any breakage, just possibly pessimization of generated code if the compiler won't generate the optimized byteswaps on that arch.
Harvey
Quoted 25 lines · Avi Kivity
Quoted 10 lines · Sam Ravnborg
Quoted 4 lines
They are. This bits advertise to userspace what features kvm supports, both compile- and run-time.
This is wrong...
The headers does not change with the kernel configuration and advertising the
kvm features via a .h file like this is simply plain broken.Ok. Don't know why I thought unifdef was supplied with the full configuration.
Quoted 4 lines
You cannot assume that the header files are generated with the exact same config
as used by the running kernel.This is just for arch specific defines. I'll move these to
asm/kvm.h.Quoted 3 lines
And userspace has in no way access to the
CONFIG_namespace which is purely kernel-internal.
Quoted 9 lines
Quoted 6 lines
I cannot see how you have ever seen kcm advertise that for example
KVM_CAP_USER_NMI
equals to 22 becauseCONFIG_X86is never (supposed to be) defined in userspace -
except if you did so yourself by some means.We did, we ship a hacked-up
kvm.h(generated by unifdef) with our userspace.
latest -tip is still giving 'make headers_check' warnings:
usr/include/linux/kvm.h:61: leaks CONFIG_X86 to userspace where it is not valid usr/include/linux/kvm.h:64: leaks CONFIG_X86 to userspace where it is not valid usr/include/linux/kvm.h:387: leaks CONFIG_X86 to userspace where it
is not valid
usr/include/linux/kvm.h:391: leaks CONFIG_X86 to userspace where it
is not valid
usr/include/linux/kvm.h:396: leaks CONFIG_X86 to userspace where it
is not valid
So should I resend my patch or you are going to move this stuff
--
JSR
Quoted 50 lines · Jaswinder Singh Rajput
Quoted 27 lines · Avi Kivity
Quoted 10 lines · Sam Ravnborg
Quoted 4 lines
They are. This bits advertise to userspace what features kvm supports, both compile- and run-time.
This is wrong...
The headers does not change with the kernel configuration and advertising the
kvm features via a .h file like this is simply plain broken.Ok. Don't know why I thought unifdef was supplied with the full configuration.
Quoted 5 lines
You cannot assume that the header files are generated with the exact same config
as used by the running kernel.This is just for arch specific defines. I'll move these to
asm/kvm.h.Quoted 3 lines
And userspace has in no way access to the
CONFIG_namespace which is purely kernel-internal.Quoted 10 lines
Quoted 7 lines
I cannot see how you have ever seen kcm advertise that for example
KVM_CAP_USER_NMI
equals to 22 becauseCONFIG_X86is never (supposed to be) defined in userspace -
except if you did so yourself by some means.We did, we ship a hacked-up
kvm.h(generated by unifdef) with our userspace.latest -tip is still giving 'make
headers_check' warnings:
usr/include/linux/kvm.h:61: leaksCONFIG_X86to userspace where it is not validusr/include/linux/kvm.h:64: leaksCONFIG_X86to userspace where it is not validusr/include/linux/kvm.h:387: leaksCONFIG_X86to userspace where it
is not valid
usr/include/linux/kvm.h:391: leaksCONFIG_X86to userspace where it
is not valid
usr/include/linux/kvm.h:396: leaksCONFIG_X86to userspace where it
is not valid
Quoted 2 lines
So should I resend my patch or you are going to move this stuff
Your patch is broken. I'll push mine shortly.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 12 lines · Avi Kivity
Quoted 11 lines · Jaswinder Singh Rajput
latest -tip is still giving 'make
headers_check' warnings:
usr/include/linux/kvm.h:61: leaksCONFIG_X86to userspace where it is not validusr/include/linux/kvm.h:64: leaksCONFIG_X86to userspace where it is not validusr/include/linux/kvm.h:387: leaksCONFIG_X86to userspace where it
is not valid
usr/include/linux/kvm.h:391: leaksCONFIG_X86to userspace where it
is not valid
usr/include/linux/kvm.h:396: leaksCONFIG_X86to userspace where it
is not valid
Quoted 5 lines
Quoted 2 lines
So should I resend my patch or you are going to move this stuff
Your patch is broken. I'll push mine shortly.
hmm. it seems you are looking at old patches which we already dropped.
Please check the latest patches and kbuild at:
http://git.kernel.org/?p=linux/kernel/git/mingo/linux-2.6-x86.git;a=shortlog;h=core/header-fixes
--
JSR
Quoted 17 lines · Jaswinder Singh Rajput
Quoted 15 lines · Avi Kivity
Quoted 13 lines · Jaswinder Singh Rajput
latest -tip is still giving 'make
headers_check' warnings:
usr/include/linux/kvm.h:61: leaksCONFIG_X86to userspace where it is not validusr/include/linux/kvm.h:64: leaksCONFIG_X86to userspace where it is not validusr/include/linux/kvm.h:387: leaksCONFIG_X86to userspace where it
is not valid
usr/include/linux/kvm.h:391: leaksCONFIG_X86to userspace where it
is not valid
usr/include/linux/kvm.h:396: leaksCONFIG_X86to userspace where it
is not validSo should I resend my patch or you are going to move this stuff
Quoted 10 lines
Quoted 3 lines
Your patch is broken. I'll push mine shortly.
hmm. it seems you are looking at old patches which we already dropped.
Please check the latest patches and kbuild at:
http://git.kernel.org/?p=linux/kernel/git/mingo/linux-2.6-x86.git;a=shortlog;h=core/header-fixes
These are the <linux/types.h> patches. I was talking about the CONFIG_X86 in the headers.
If there's such a patch in the URL you posted, please point to it directly.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 8 lines · Avi Kivity
Quoted 6 lines · Jaswinder Singh Rajput
hmm. it seems you are looking at old patches which we already dropped.
Please check the latest patches and kbuild at:
http://git.kernel.org/?p=linux/kernel/git/mingo/linux-2.6-x86.git;a=shortlog;h=core/header-fixes
Quoted 5 lines
These are the <
linux/types.h> patches. I was talking about theCONFIG_X86in the headers.If there's such a patch in the URL you posted, please point to it directly.
All CONFIG_* patches are dropped.
--
JSR
Quoted 4 lines · Jaswinder Singh Rajput
Quoted 2 lines · Avi Kivity
If there's such a patch in the URL you posted, please point to it directly.
All CONFIG_* patches are dropped.
Well, the kvm.h patch was one of two that AFAICT are actually needed:
If you don't define CONFIG_X86 or CONFIG_IA64 in user space, you won't see the definitions for kvm_irqchip->pic, kvm_irqchip->ioapic or KVM_CAP_{DEVICE_ASSIGNMENT,DEVICE_MSI,USER_MSI}.
The other patch that we still need is the one I posted for asm/ptrace-abi.h.
Arnd <><
Quoted 7 lines · Arnd Bergmann
Quoted 5 lines · Jaswinder Singh Rajput
Quoted 3 lines · Avi Kivity
If there's such a patch in the URL you posted, please point to it directly.
Quoted 8 lines
Quoted 2 lines
All CONFIG_* patches are dropped.
Well, the
kvm.hpatch was one of two that AFAICT are actually needed:
If you don't defineCONFIG_X86orCONFIG_IA64in user space, you won't see the definitions forkvm_irqchip->pic,kvm_irqchip->ioapicor KVM_CAP_{DEVICE_ASSIGNMENT,DEVICE_MSI,USER_MSI}.
I have a fix for that queued.
Signature · 1 line
error compiling committee.c: too many arguments to function