User API split: Preliminary patches
Subsystems (8)
PATCH 1/17 UAPI: Fix arch/mips/include/asm/Kbuild to have separate header-y lines
In reply to David HowellsFix arch/mips/include/asm/Kbuild to have a separate header-y line for each header to make them easier to relocate individually as part of the UAPI header split.
--- arch/mips/include/asm/Kbuild | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
arch/mips/include/asm/Kbuild +3 -1
@@ -1,3 +1,5 @@ include include/asm-generic/Kbuild.asm -header-y += cachectl.h sgidefs.h sysmips.h +header-y += cachectl.h +header-y += sgidefs.h +header-y += sysmips.h
Signature · 1 line
1.7.7.4
PATCH 2/17 UAPI: Don't include linux/compat.h in sparc's asm/siginfo.h
In reply to David HowellsDon't include linux/compat.h in sparc's asm/siginfo.h as it leads to a circular dependency:
asm/siginfo.h -> linux/compat.h -> asm/siginfo.h
--- arch/sparc/include/asm/siginfo.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
arch/sparc/include/asm/siginfo.h +0 -2
@@ -16,8 +16,6 @@#ifdef __KERNEL__ -#include <linux/compat.h> -#ifdef CONFIG_COMPAT struct compat_siginfo ;
Signature · 1 line
1.7.7.4
PATCH 3/17 UAPI: elf_read_implies_exec() is a kernel-only feature - so hide from userspace
In reply to David Howellself_read_implies_exec() is a kernel-only feature as the second parameter is a constant that isn't exported to userspace. Not only that, but the arch-specific overrides are not exported either.
So hide the macro from userspace.
Similarly, struct file should not be predeclared in userspace.
--- include/linux/elf.h | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
include/linux/elf.h +9 -9
@@ -7,15 +7,6 @@#include <asm/elf.h> #endif -struct file ; - -#ifndef elf_read_implies_exec -/* Executables for which elf_read_implies_exec() returns TRUE will -have the READ_IMPLIES_EXEC personality flag set automatically. -Override in asm/elf.h as needed. */ -# define elf_read_implies_exec (ex, have_pt_gnu_stack) 0 -#endif -/* 32-bit ELF base types. */ typedef __u32 Elf32_Addr ;typedef __u16 Elf32_Half ;
@@ -414,6 +405,13 @@ typedef struct elf64_note { } Elf64_Nhdr;#ifdef __KERNEL__ +#ifndef elf_read_implies_exec +/* Executables for which elf_read_implies_exec() returns TRUE will +have the READ_IMPLIES_EXEC personality flag set automatically. +Override in asm/elf.h as needed. */ +# define elf_read_implies_exec (ex, have_pt_gnu_stack) 0 +#endif +#if ELF_CLASS ==ELFCLASS32 extern Elf32_Dyn _DYNAMIC [];
@@ -437,6 +435,8 @@ extern Elf64_Dyn _DYNAMIC [];#endif /* Optional callbacks to write extra ELF notes. */ +struct file ; +#ifndef ARCH_HAVE_EXTRA_ELF_NOTES static inline int elf_coredump_extra_notes_size (void ) {return 0 ; } static inline int elf_coredump_extra_notes_write(struct file *file,
Signature · 1 line
1.7.7.4
PATCH 4/17 UAPI: Make MN10300 use asm-generic/param.h
In reply to David HowellsMake MN10300 use the generic settings to be found in asm-generic/param.h rather than defining its own as they're exactly the same.
This sorts out a problem with HZ being redefined after the UAPI split.
--- arch/mn10300/include/asm/param.h | 18 +----------------- 1 files changed, 1 insertions(+), 17 deletions(-)
arch/mn10300/include/asm/param.h +1 -17
@@ -11,24 +11,8 @@#ifndef _ASM_PARAM_H#define _ASM_PARAM_H -#ifdef __KERNEL__ -#define HZ CONFIG_HZ/* Internal kernel timer frequency */ -#define USER_HZ 100/* .. some user interfaces are in -* "ticks" */ -#define CLOCKS_PER_SEC (USER_HZ)/* like times() */ -#endif +#include <asm-generic/param.h> -#ifndef HZ -#define HZ 100 -#endif - -#define EXEC_PAGESIZE 4096 - -#ifndef NOGROUP -#define NOGROUP (-1) -#endif - -#define MAXHOSTNAMELEN 64/* max length of hostname */ #define COMMAND_LINE_SIZE 256#endif /* _ASM_PARAM_H */
Signature · 1 line
1.7.7.4
PATCH 6/17 UAPI: Make FRV use asm-generic/param.h
In reply to David HowellsMake FRV use the generic settings to be found in asm-generic/param.h where possible rather than defining its own as they're mostly exactly the same.
This sorts out a problem with HZ being redefined after the UAPI split.
--- arch/frv/include/asm/param.h | 16 +--------------- 1 files changed, 1 insertions(+), 15 deletions(-)
arch/frv/include/asm/param.h +1 -15
@@ -1,22 +1,8 @@#ifndef _ASM_PARAM_H#define _ASM_PARAM_H -#ifdef __KERNEL__ -#define HZ CONFIG_HZ/* Internal kernel timer frequency */ -#define USER_HZ 100/* .. some user interfaces are in "ticks" */ -#define CLOCKS_PER_SEC (USER_HZ)/* like times() */ -#endif - -#ifndef HZ -#define HZ 100 -#endif -#define EXEC_PAGESIZE 16384 -#ifndef NOGROUP -#define NOGROUP (-1) -#endif - -#define MAXHOSTNAMELEN 64/* max length of hostname */ +#include <asm-generic/param.h> #endif /* _ASM_PARAM_H */
Signature · 1 line
1.7.7.4
PATCH 7/17 UAPI: Rearrange definition of HZ in asm-generic/param.h
In reply to David HowellsRearrange the definition of HZ in asm-generic/param.h so that the user-specific is declared before the kernel-specific one. We then explicitly #undef the userspace HZ value and replace it with the kernel HZ value.
This allows the userspace params to be excised into a separate header as part of the UAPI header split.
--- include/asm-generic/param.h | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-)
include/asm-generic/param.h +7 -6
@@ -1,12 +1,6 @@#ifndef __ASM_GENERIC_PARAM_H#define __ASM_GENERIC_PARAM_H -#ifdef __KERNEL__ -# define HZ CONFIG_HZ/* Internal kernel timer frequency */ -# define USER_HZ 100/* some user interfaces are */ -# define CLOCKS_PER_SEC (USER_HZ)/* in "ticks" like times() */ -#endif -#ifndef HZ #define HZ 100#endif
@@ -21,4 +15,11 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +#ifdef __KERNEL__ +# undef HZ +# define HZ CONFIG_HZ/* Internal kernel timer frequency */ +# define USER_HZ 100/* some user interfaces are */ +# define CLOCKS_PER_SEC (USER_HZ)/* in "ticks" like times() */ +#endif +#endif /* __ASM_GENERIC_PARAM_H */
Signature · 1 line
1.7.7.4
PATCH 8/17 UAPI: Guard linux/sound.h
In reply to David HowellsPlace reinclusion guards on linux/sound.h otherwise the UAPI splitter script won't insert a #include to make the kernel header include the UAPI header.
--- include/linux/sound.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
include/linux/sound.h +4 -0
@@ -1,3 +1,5 @@ +#ifndef _LINUX_SOUND_H +#define _LINUX_SOUND_H/* * Minor numbers for the sound driver.
@@ -42,3 +44,5 @@ extern void unregister_sound_mixer(int unit);extern void unregister_sound_midi (int unit);extern void unregister_sound_dsp (int unit);#endif /* __KERNEL__ */ + +#endif /* _LINUX_SOUND_H */
Signature · 1 line
1.7.7.4
PATCH 9/17 UAPI: Guard linux/isdn_divertif.h
In reply to David HowellsPlace reinclusion guards on linux/isdn_divertif.h otherwise the UAPI splitter script won't insert the #include to include the UAPI header from the kernel header.
--- include/linux/isdn_divertif.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
include/linux/isdn_divertif.h +4 -0
@@ -10,6 +10,8 @@* */ +#ifndef _LINUX_ISDN_DIVERTIF_H +#define _LINUX_ISDN_DIVERTIF_H/***********************************************************/ /* magic value is also used to control version information */
@@ -45,3 +47,5 @@ typedef struct/*********************/ extern int DIVERT_REG_NAME (isdn_divert_if *);#endif + +#endif /* _LINUX_ISDN_DIVERTIF_H */
Signature · 1 line
1.7.7.4
PATCH 10/17 UAPI: Guard linux/pmu.h
In reply to David HowellsPlace reinclusion guards on linux/pmu.h otherwise the UAPI splitter won't insert the #include to include the UAPI header from the kernel header.
--- include/linux/pmu.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
include/linux/pmu.h +4 -0
@@ -6,6 +6,8 @@* Copyright (C) 1998 Paul Mackerras. */ +#ifndef _LINUX_PMU_H +#define _LINUX_PMU_H#define PMU_DRIVER_VERSION 2
@@ -207,3 +209,5 @@ extern int pmu_sys_suspended;#endif #endif /* __KERNEL__ */ + +#endif /* _LINUX_PMU_H */
Signature · 1 line
1.7.7.4
PATCH 12/17 UAPI: Alter the S390 asm include guards to be recognisable by the UAPI splitter
In reply to David HowellsAlter some of the S390 asm include guards to fit a pattern that the UAPI splitter recognises.
--- arch/s390/include/asm/chpid.h | 2 +- arch/s390/include/asm/itcw.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/s390/include/asm/chpid.h +1 -1
@@ -6,7 +6,7 @@*/ #ifndef _ASM_S390_CHPID_H -#define _ASM_S390_CHPID_H _ASM_S390_CHPID_H +#define _ASM_S390_CHPID_H#include <linux/string.h> #include <linux/types.h>
arch/s390/include/asm/itcw.h +1 -1
@@ -6,7 +6,7 @@*/ #ifndef _ASM_S390_ITCW_H -#define _ASM_S390_ITCW_H _ASM_S390_ITCW_H +#define _ASM_S390_ITCW_H#include <linux/types.h> #include <asm/fcx.h>
Signature · 1 line
1.7.7.4
PATCH 13/17 UAPI: Fix nested __KERNEL__ guards in video/edid.h
In reply to David HowellsFix nested __KERNEL__ guards in video/edid.h to make parsing easier.
--- include/video/edid.h | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-)
include/video/edid.h +2 -4
@@ -1,16 +1,14 @@#ifndef __linux_video_edid_h__#define __linux_video_edid_h__ -#if !defined(__KERNEL__) || defined(CONFIG_X86 ) -struct edid_info {unsigned char dummy[128 ]; };#ifdef __KERNEL__ +#ifdef CONFIG_X86 extern struct edid_info edid_info; -#endif /* __KERNEL__ */ - +#endif #endif #endif /* __linux_video_edid_h__ */
Signature · 1 line
1.7.7.4
PATCH 16/17 UAPI: Don't have a #elif clause in a __KERNEL__ guard in linux/soundcard.h
In reply to David HowellsDon't have a #elif clause in a __KERNEL__ guard in linux/soundcard.h to make parsing easier.
--- include/linux/soundcard.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
include/linux/soundcard.h +3 -1
@@ -198,7 +198,8 @@ typedef struct seq_event_rec {# else # error "could not determine byte order"# endif -#elif defined(__BYTE_ORDER) +#else +# if defined(__BYTE_ORDER)# if __BYTE_ORDER == __BIG_ENDIAN# define AFMT_S16_NE AFMT_S16_BE# elif __BYTE_ORDER == __LITTLE_ENDIAN
@@ -206,6 +207,7 @@ typedef struct seq_event_rec {# else # error "could not determine byte order"# endif +# endif #endif /*
Signature · 1 line
1.7.7.4
PATCH 15/17 UAPI: Fix AHZ multiple inclusion when __KERNEL__ is removed
In reply to David HowellsFix AHZ multiple inclusion when __KERNEL__ is removed as part of the separation of the userspace headers from the kernel headers.
--- include/linux/acct.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
include/linux/acct.h +3 -0
@@ -146,6 +146,9 @@ extern void acct_exit_ns(struct pid_namespace *);* */ +#undef ACCT_VERSION +#undef AHZ +#ifdef CONFIG_BSD_PROCESS_ACCT_V3 #define ACCT_VERSION 3#define AHZ 100
Signature · 1 line
1.7.7.4
PATCH 11/17 UAPI: Guard linux/cuda.h
In reply to David HowellsPlace reinclusion guards on linux/cuda.h otherwise the UAPI splitter script won't insert a #include to make the kernel header include the UAPI header.
--- include/linux/cuda.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
include/linux/cuda.h +5 -0
@@ -5,6 +5,9 @@* Copyright (C) 1996 Paul Mackerras. */ +#ifndef _LINUX_CUDA_H +#define _LINUX_CUDA_H +/* CUDA commands (2nd byte) */ #define CUDA_WARM_START 0#define CUDA_AUTOPOLL 1
@@ -34,3 +37,5 @@ extern int cuda_request(struct adb_request *req,extern void cuda_poll (void );#endif /* __KERNEL */ + +#endif /* _LINUX_CUDA_H */
Signature · 1 line
1.7.7.4
PATCH 14/17 UAPI: Make linux/patchkey.h easier to parse
In reply to David HowellsMake linux/patchkey.h easier to parse by:
(1) Switching the reinclusion guard and the indirect-inclusion checks in linux/patchkey.h to put the guard around the outside.
(2) Making the #elif case associated with the __KERNEL__ guard a nested #if in a #else of the __KERNEL__ guard.
--- include/linux/patchkey.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
include/linux/patchkey.h +3 -1
@@ -32,7 +32,8 @@# else # error "could not determine byte order"# endif -#elif defined(__BYTE_ORDER) +#else +#if defined(__BYTE_ORDER)# if __BYTE_ORDER == __BIG_ENDIAN# define _PATCHKEY (id) (0xfd00|id)# elif __BYTE_ORDER == __LITTLE_ENDIAN
@@ -41,5 +42,6 @@# error "could not determine byte order"# endif #endif +#endif #endif /* _LINUX_PATCHKEY_H */
Signature · 1 line
1.7.7.4
Hi Stephen,
Can you pull the following into linux-next, please?
Here's the first part of the first installment of patches to clean up the kernel header files and sort out the inclusion recursion problems. The patches can be found here:
http://git.infradead.org/users/dhowells/linux-headers.git
at the:
uapi-preliminary
tag.
This batch is just the static fixes to things and can be divided into three groups:
(1) Fixes that should probably be applied anyway.
Tag: uapi-fixes
Fixes for ELF, a loop in Sparc's headers and a separation for MIPS's Kbuild.
(2) sys/param.h cleanup.
Tag: uapi-params
Make MN10300, M32R and FRV use asm-generic/param.h.
(3) Guard cleanup and simple rearrangement.
Tag: uapi-preliminary
Add missing header file guards and split __KERNEL__ combo guards to make them easier for the UAPI splitter to handle.
Do a little rearrangement of some headers to make them more amenable to the UAPI split (some need the UAPI headers #including in the middle of the file, after some definitions have been made).
Could you also the second part into linux-next at this time? That involves some scripted stuff and may need regenerating. You can see those patches from the uapi-preliminary tag up to the uapi-prep tag in the GIT tree.
That then would set the stage for Linus to apply the UAPI disintegration patches (uapi-prep -> uapi-post-split) after -rc1 if he's willing. However, those definitely *will* need regenerating.
I have tried building it with the defconfigs for the following arches: alpha, arm, blackfin, frv, h8300, m32r, m68k, mips, mn10300, powerpc, s390, sh, sparc, x86 (i386 and x86_64) and xtensa.
David
---
The following changes since commit dc47ce90c3a822cd7c9e9339fe4d5f61dcb26b50:
Linux 3.2-rc5 (2011-12-09 15:09:32 -0800)
are available in the git repository at:
git://git.infradead.org/users/dhowells/linux-headers.git ..BRANCH.NOT.VERIFIED..
David Howells (17):
UAPI: Fix arch/mips/include/asm/Kbuild to have separate header-y lines
UAPI: Don't include linux/compat.h in sparc's asm/siginfo.h
UAPI: elf_read_implies_exec() is a kernel-only feature - so hide from userspace
UAPI: Make MN10300 use asm-generic/param.h
UAPI: Make M32R use asm-generic/param.h
UAPI: Make FRV use asm-generic/param.h
UAPI: Rearrange definition of HZ in asm-generic/param.h
UAPI: Guard linux/sound.h
UAPI: Guard linux/isdn_divertif.h
UAPI: Guard linux/pmu.h
UAPI: Guard linux/cuda.h
UAPI: Alter the S390 asm include guards to be recognisable by the UAPI splitter
UAPI: Fix nested __KERNEL__ guards in video/edid.h
UAPI: Make linux/patchkey.h easier to parse
UAPI: Fix AHZ multiple inclusion when __KERNEL__ is removed
UAPI: Don't have a #elif clause in a __KERNEL__ guard in linux/soundcard.h
UAPI: Split trivial #if defined(__KERNEL__) && X conditionals
arch/arm/include/asm/hwcap.h | 4 +++- arch/arm/include/asm/swab.h | 7 +++++-- arch/arm/include/asm/unistd.h | 4 +++- arch/frv/include/asm/param.h | 16 +--------------- arch/ia64/include/asm/intrinsics.h | 21 +++++++++++++-------- arch/m32r/include/asm/param.h | 18 +----------------- arch/mips/include/asm/Kbuild | 4 +++- arch/mips/include/asm/types.h | 10 +++++++--- arch/mn10300/include/asm/param.h | 18 +----------------- arch/s390/include/asm/chpid.h | 2 +- arch/s390/include/asm/itcw.h | 2 +- arch/s390/include/asm/mman.h | 4 +++- arch/sparc/include/asm/siginfo.h | 2 -- arch/tile/include/asm/signal.h | 4 +++- include/asm-generic/param.h | 13 +++++++------ include/linux/acct.h | 3 +++ include/linux/cuda.h | 5 +++++ include/linux/elf.h | 18 +++++++++--------- include/linux/isdn_divertif.h | 4 ++++ include/linux/mroute6.h | 4 +++- include/linux/patchkey.h | 4 +++- include/linux/pmu.h | 4 ++++ include/linux/sound.h | 4 ++++ include/linux/soundcard.h | 4 +++- include/video/edid.h | 6 ++---- 25 files changed, 92 insertions(+), 93 deletions(-)
PATCH 17/17 UAPI: Split trivial #if defined(__KERNEL__) && X conditionals
Split trivial #if defined(__KERNEL__) && X conditionals to make automated disintegration easier.
--- arch/arm/include/asm/hwcap.h | 4 +++- arch/arm/include/asm/swab.h | 7 +++++-- arch/arm/include/asm/unistd.h | 4 +++- arch/ia64/include/asm/intrinsics.h | 21 +++++++++++++-------- arch/mips/include/asm/types.h | 10 +++++++--- arch/s390/include/asm/mman.h | 4 +++- arch/tile/include/asm/signal.h | 4 +++- include/linux/mroute6.h | 4 +++- 8 files changed, 40 insertions(+), 18 deletions(-)
arch/arm/include/asm/hwcap.h +3 -1
@@ -25,7 +25,8 @@#define HWCAP_IDIVT (1 << 18)#define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT) -#if defined(__KERNEL__) && !defined(__ASSEMBLY__) +#if defined(__KERNEL__) +#if !defined(__ASSEMBLY__)/* * This yields a mask that user programs can use to figure out what * instruction set this cpu supports.
@@ -33,5 +34,6 @@#define ELF_HWCAP (elf_hwcap)extern unsigned int elf_hwcap;#endif +#endif #endif
arch/arm/include/asm/swab.h +5 -2
@@ -22,7 +22,8 @@# define __SWAB_64_THRU_32__#endif -#if defined(__KERNEL__) && __LINUX_ARM_ARCH__ >=6 +#if defined(__KERNEL__) +#if __LINUX_ARM_ARCH__ >= 6 static inline __attribute_const__ __u16 __arch_swab16(__u16 x) {
@@ -38,8 +39,10 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x) }#define __arch_swab32 __arch_swab32 -#else +#endif +#endif +#if !defined(__KERNEL__) || __LINUX_ARM_ARCH__ <6 static inline __attribute_const__ __u32 __arch_swab32(__u32 x) {__u32 t;
arch/arm/include/asm/unistd.h +3 -1
@@ -427,7 +427,8 @@/* * The following syscalls are obsolete and no longer available for EABI. */ -#if defined(__ARM_EABI__) && !defined(__KERNEL__) +#if !defined(__KERNEL__) +#if defined(__ARM_EABI__)#undef __NR_time#undef __NR_umount#undef __NR_stime
@@ -441,6 +442,7 @@#undef __NR_syscall#undef __NR_ipc#endif +#endif #ifdef __KERNEL__
arch/ia64/include/asm/intrinsics.h +13 -8
@@ -201,16 +201,21 @@ extern long ia64_cmpxchg_called_with_bad_pointer (void);#endif #ifndef __ASSEMBLY__ -#if defined(CONFIG_PARAVIRT ) && defined(__KERNEL__) -#ifdef ASM_SUPPORTED -# define IA64_INTRINSIC_API (name) paravirt_ ## name -#else -# define IA64_INTRINSIC_API (name) pv_cpu_ops.name -#endif -#define IA64_INTRINSIC_MACRO (name) paravirt_ ## name -#else +#define IA64_INTRINSIC_API (name) ia64_native_ ## name#define IA64_INTRINSIC_MACRO (name) ia64_native_ ## name + +#if defined(__KERNEL__) +#if defined(CONFIG_PARAVIRT ) +# undef IA64_INTRINSIC_API +# undef IA64_INTRINSIC_MACRO +# ifdef ASM_SUPPORTED +# define IA64_INTRINSIC_API (name) paravirt_ ## name +# else +# define IA64_INTRINSIC_API (name) pv_cpu_ops.name +# endif +#define IA64_INTRINSIC_MACRO (name) paravirt_ ## name +#endif #endif /************************************************/
arch/mips/include/asm/types.h +7 -3
@@ -15,10 +15,14 @@* We don't use int-l64.h for the kernel anymore but still use it for * userspace to avoid code changes. */ -#if (_MIPS_SZLONG ==64 ) && !defined(__KERNEL__) -# include <asm-generic/int-l64.h> -#else +#ifdef __KERNEL__# include <asm-generic/int-ll64.h> +#else +# if _MIPS_SZLONG ==64 +# include <asm-generic/int-l64.h> +# else +# include <asm-generic/int-ll64.h> +# endif #endif #ifndef __ASSEMBLY__
arch/s390/include/asm/mman.h +3 -1
@@ -11,9 +11,11 @@#include <asm-generic/mman.h> -#if defined(__KERNEL__) && !defined(__ASSEMBLY__) && defined(CONFIG_64BIT ) +#if defined(__KERNEL__) +#if !defined(__ASSEMBLY__) && defined(CONFIG_64BIT )int s390_mmap_check (unsigned long addr,unsigned long len);#define arch_mmap_check (addr,len,flags) s390_mmap_check(addr,len)#endif +#endif #endif /* __S390_MMAN_H__ */
arch/tile/include/asm/signal.h +3 -1
@@ -23,7 +23,8 @@#include <asm-generic/signal.h> -#if defined(__KERNEL__) && !defined(__ASSEMBLY__) +#if defined(__KERNEL__) +#if !defined(__ASSEMBLY__)struct pt_regs ;int restore_sigcontext (struct pt_regs *,struct sigcontext __user *);int setup_sigcontext (struct sigcontext __user *,struct pt_regs *);
@@ -33,5 +34,6 @@ void signal_fault(const char *type, struct pt_regs *,void trace_unhandled_signal (const char *type,struct pt_regs *regs,unsigned long address,int signo);#endif +#endif #endif /* _ASM_TILE_SIGNAL_H */
include/linux/mroute6.h +3 -1
@@ -43,9 +43,11 @@ typedef unsigned short mifi_t;typedef __u32 if_mask ;#define NIFBITS (sizeof(if_mask) * 8)/* bits per mask */ -#if !defined(__KERNEL__) && !defined(DIV_ROUND_UP ) +#if !defined(__KERNEL__) +#if !defined(DIV_ROUND_UP )#define DIV_ROUND_UP (x,y) (((x) + ((y) - 1)) / (y))#endif +#endif typedef struct if_set { if_mask ifs_bits[DIV_ROUND_UP(IF_SETSIZE, NIFBITS)];
Signature · 1 line
1.7.7.4
PATCH 5/17 UAPI: Make M32R use asm-generic/param.h
In reply to David HowellsMake M32R use the generic settings to be found in asm-generic/param.h rather than defining its own as they're exactly the same.
This sorts out a problem with HZ being redefined after the splitting of userspace headers from kernel headers.
--- arch/m32r/include/asm/param.h | 18 +----------------- 1 files changed, 1 insertions(+), 17 deletions(-)
arch/m32r/include/asm/param.h +1 -17
@@ -1,23 +1,7 @@#ifndef _ASM_M32R_PARAM_H#define _ASM_M32R_PARAM_H -#ifdef __KERNEL__ -# define HZ CONFIG_HZ/* Internal kernel timer frequency */ -# define USER_HZ 100/* .. some user interfaces are in "ticks" */ -# define CLOCKS_PER_SEC (USER_HZ)/* like times() */ -#endif - -#ifndef HZ -#define HZ 100 -#endif - -#define EXEC_PAGESIZE 4096 - -#ifndef NOGROUP -#define NOGROUP (-1) -#endif - -#define MAXHOSTNAMELEN 64/* max length of hostname */ +#include <asm-generic/param.h> #endif /* _ASM_M32R_PARAM_H */
Signature · 1 line
1.7.7.4
Re: [PATCH 14/17] UAPI: Make linux/patchkey.h easier to parse
In reply to David HowellsHi David,
Quoted 5 lines · On Tue, 13 Dec 2011 10:04:10 +0000 David Howells <[email protected]> wrote:
Make
linux/patchkey.heasier to parse by:(1) Switching the reinclusion guard and the indirect-inclusion checks in
linux/patchkey.hto put the guard around the outside.
Is this part missing, or no longer needed?
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Re: [PATCH 14/17] UAPI: Make linux/patchkey.h easier to parse
Quoted 1 line · Stephen Rothwell
Is this part missing, or no longer needed?
It seems to have got lost somewhere. Thanks for catching it.
David
Re: [PATCH 14/17] UAPI: Make linux/patchkey.h easier to parse
Quoted 3 lines · David Howells
Quoted 1 line
Is this part missing, or no longer needed?
It seems to have got lost somewhere. Thanks for catching it.
Actually, it doesn't seem to be necessary. The header splitter managed to cope without it and did the right thing. I think what happened was that the splitter didn't recognise the _LINUX_PATCHKEY_H_INDIRECT thing as a reinclusion guard, so it just tossed that into the UAPI header, then recognised the _LINUX_PATCHKEY_H thing as the reinclusion guard and proceeded from there.
Would you prefer that I remove that from the comments or would you prefer that I leave things unchanged?
David
Re: [PATCH 14/17] UAPI: Make linux/patchkey.h easier to parse
Hi David,
Quoted 9 lines · On Tue, 13 Dec 2011 13:57:57 +0000 David Howells <[email protected]> wrote:
Actually, it doesn't seem to be necessary. The header splitter managed to cope without it and did the right thing. I think what happened was that the splitter didn't recognise the
_LINUX_PATCHKEY_H_INDIRECTthing as a reinclusion guard, so it just tossed that into the UAPI header, then recognised the_LINUX_PATCHKEY_Hthing as the reinclusion guard and proceeded from there.Would you prefer that I remove that from the comments or would you prefer that I leave things unchanged?
Well, the comments should really reflect the patch, right?
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Quoted 1 line · David Howells
Can you pull the following into linux-next, please?
I've made a 'for-next' branch for you to pull if you will:
http://git.infradead.org/users/dhowells/linux-headers.git
branch:
for-next
and altered the comment on the patchkey patch that you pointed out (that's the only change to the contents).
Additionally, I've stuck date names in the tags.
David
Hi David,
Quoted 8 lines · On Tue, 13 Dec 2011 16:09:34 +0000 David Howells <[email protected]> wrote:
Quoted 1 line · David Howells
Can you pull the following into linux-next, please?
I've made a 'for-next' branch for you to pull if you will:
(I actually used git://...)
Quoted 3 lines
branch:
for-next
I will add this from tomorrow. This first part looks mostly uncontroversial, but the next part is more intrusive ... I have not been particularly following the discussion, so I do not know what level of acceptance these changes have. i.e. comments from others would be nice.
Quoted 2 lines
and altered the comment on the patchkey patch that you pointed out (that's the only change to the contents).
Thanks.
Quoted 1 line
Additionally, I've stuck date names in the tags.
Good idea.
Thanks for adding your subsystem tree as a participant of linux-next. As you may know, this is not a judgment of your code. The purpose of linux-next is for integration testing and to lower the impact of conflicts between subsystems in the next merge window.
You will need to ensure that the patches/commits in your tree/series have been:
* submitted under GPL v2 (or later) and include the Contributor's Signed-off-by,
* posted to the relevant mailing list,
* reviewed by you (or another maintainer of your subsystem tree),
* successfully unit tested, and
* destined for the current or next Linux merge window.
Basically, this should be just what you would send to Linus (or ask him to fetch). It is allowed to be rebased if you deem it necessary.
Signature · 15 lines
Cheers, Stephen Rothwell [email protected] Legal Stuff: By participating in linux-next, your subsystem tree contributions are public and will be included in the linux-next trees. You may be sent e-mail messages indicating errors or other issues when the patches/commits from your subsystem tree are merged and tested in linux-next. These messages may also be cross-posted to the linux-next mailing list, the linux-kernel mailing list, etc. The linux-next tree project and IBM (my employer) make no warranties regarding the linux-next project, the testing procedures, the results, the e-mails, etc. If you don't agree to these ground rules, let me know and I'll remove your tree from participation in linux-next.
Re: [PATCH 02/17] UAPI: Don't include linux/compat.h in sparc's asm/siginfo.h
In reply to David HowellsFrom: David Howells <[email protected]>
Date: Tue, 13 Dec 2011 10:03:58 +0000
Quoted 6 lines
Don't include
linux/compat.hin sparc'sasm/siginfo.has it leads to a circular dependency:asm/siginfo.h -> linux/compat.h -> asm/siginfo.hSigned-off-by David Howells <[email protected]>