Skip to content

Commit 4cdf8db

Browse files
committed
Merge branch 'work.uaccess2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull uaccess.h prepwork from Al Viro: "Preparations to tree-wide switch to use of linux/uaccess.h (which, obviously, will allow to start unifying stuff for real). The last step there, ie PATT='^[[:blank:]]*#[[:blank:]]*include[[:blank:]]*<asm/uaccess.h>' sed -i -e "s!$PATT!#include <linux/uaccess.h>!" \ `git grep -l "$PATT"|grep -v ^include/linux/uaccess.h` is not taken here - I would prefer to do it once just before or just after -rc1. However, everything should be ready for it" * 'work.uaccess2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: remove a stray reference to asm/uaccess.h in docs sparc64: separate extable_64.h, switch elf_64.h to it score: separate extable.h, switch module.h to it mips: separate extable.h, switch module.h to it x86: separate extable.h, switch sections.h to it remove stray include of asm/uaccess.h from cacheflush.h mn10300: remove a bogus processor.h->uaccess.h include xtensa: split uaccess.h into C and asm sides bonding: quit messing with IOCTL kill __kernel_ds_p off mn10300: finish verify_area() off frv: move HAVE_ARCH_UNMAPPED_AREA to pgtable.h exceptions: detritus removal
2 parents 6b25e21 + aa7eb9a commit 4cdf8db

38 files changed

Lines changed: 262 additions & 270 deletions

File tree

‎Documentation/DocBook/kernel-hacking.tmpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ printk(KERN_INFO "my ip: %pI4\n", &amp;ipaddress);
483483
<function>get_user()</function>
484484
/
485485
<function>put_user()</function>
486-
<filename class="headerfile">include/asm/uaccess.h</filename>
486+
<filename class="headerfile">include/linux/uaccess.h</filename>
487487
</title>
488488

489489
<para>

‎arch/arm/mm/fault.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ static inline int fsr_fs(unsigned int fsr)
2323
#endif
2424

2525
void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs);
26-
unsigned long search_exception_table(unsigned long addr);
2726
void early_abt_enable(void);
2827

2928
#endif /* __ARCH_ARM_FAULT_H */

‎arch/frv/include/asm/pgtable.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,5 +522,6 @@ extern void __init pgtable_cache_init(void);
522522
#ifndef __ASSEMBLY__
523523
extern void __init paging_init(void);
524524
#endif /* !__ASSEMBLY__ */
525+
#define HAVE_ARCH_UNMAPPED_AREA
525526

526527
#endif /* _ASM_PGTABLE_H */

‎arch/frv/include/asm/segment.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ typedef struct {
3232
#define get_ds() (KERNEL_DS)
3333
#define get_fs() (__current_thread_info->addr_limit)
3434
#define segment_eq(a, b) ((a).seg == (b).seg)
35-
#define __kernel_ds_p() segment_eq(get_fs(), KERNEL_DS)
3635
#define get_addr_limit() (get_fs().seg)
3736

3837
#define set_fs(_x) \

‎arch/frv/include/asm/uaccess.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include <asm/segment.h>
2121
#include <asm/sections.h>
2222

23-
#define HAVE_ARCH_UNMAPPED_AREA /* we decide where to put mmaps */
24-
2523
#define __ptr(x) ((unsigned long __force *)(x))
2624

2725
#define VERIFY_READ 0

‎arch/m68k/include/asm/uaccess_no.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ struct exception_table_entry
4444
unsigned long insn, fixup;
4545
};
4646

47-
/* Returns 0 if exception not found and fixup otherwise. */
48-
extern unsigned long search_exception_table(unsigned long);
49-
5047

5148
/*
5249
* These are the main single-value transfer routines. They automatically

‎arch/microblaze/include/asm/uaccess.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ struct exception_table_entry {
7171
unsigned long insn, fixup;
7272
};
7373

74-
/* Returns 0 if exception not found and fixup otherwise. */
75-
extern unsigned long search_exception_table(unsigned long);
76-
7774
#ifndef CONFIG_MMU
7875

7976
/* Check against bounds of physical memory */

‎arch/mips/include/asm/extable.h‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#ifndef _ASM_EXTABLE_H
2+
#define _ASM_EXTABLE_H
3+
4+
struct exception_table_entry
5+
{
6+
unsigned long insn;
7+
unsigned long nextinsn;
8+
};
9+
10+
struct pt_regs;
11+
extern int fixup_exception(struct pt_regs *regs);
12+
13+
#endif

‎arch/mips/include/asm/module.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include <linux/list.h>
55
#include <linux/elf.h>
6-
#include <asm/uaccess.h>
6+
#include <asm/extable.h>
77

88
struct mod_arch_specific {
99
/* Data Bus Error exception tables */

‎arch/mips/include/asm/uaccess.h‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/thread_info.h>
1717
#include <linux/string.h>
1818
#include <asm/asm-eva.h>
19+
#include <asm/extable.h>
1920

2021
/*
2122
* The fs value determines whether argument validity checking should be
@@ -1485,12 +1486,4 @@ static inline long strnlen_user(const char __user *s, long n)
14851486
return res;
14861487
}
14871488

1488-
struct exception_table_entry
1489-
{
1490-
unsigned long insn;
1491-
unsigned long nextinsn;
1492-
};
1493-
1494-
extern int fixup_exception(struct pt_regs *regs);
1495-
14961489
#endif /* _ASM_UACCESS_H */

0 commit comments

Comments
 (0)