Merge branch 'for-next' of git://git.infradead.org/users/dhowells/linux-headers
* 'for-next' of git://git.infradead.org/users/dhowells/linux-headers: UAPI: Split trivial #if defined(__KERNEL__) && X conditionals UAPI: Don't have a #elif clause in a __KERNEL__ guard in linux/soundcard.h UAPI: Fix AHZ multiple inclusion when __KERNEL__ is removed UAPI: Make linux/patchkey.h easier to parse UAPI: Fix nested __KERNEL__ guards in video/edid.h UAPI: Alter the S390 asm include guards to be recognisable by the UAPI splitter UAPI: Guard linux/cuda.h UAPI: Guard linux/pmu.h UAPI: Guard linux/isdn_divertif.h UAPI: Guard linux/sound.h UAPI: Rearrange definition of HZ in asm-generic/param.h UAPI: Make FRV use asm-generic/param.h UAPI: Make M32R use asm-generic/param.h UAPI: Make MN10300 use asm-generic/param.h UAPI: elf_read_implies_exec() is a kernel-only feature - so hide from userspace UAPI: Don't include linux/compat.h in sparc's asm/siginfo.h UAPI: Fix arch/mips/include/asm/Kbuild to have separate header-y lines
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
+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,
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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)];
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user