diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2012-10-26 10:31:03 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-12-13 00:50:57 -0500 |
commit | 00e9584c765043d6f4385244f03eed0e7fe18287 (patch) | |
tree | 5d595713672293ff3c622592a2c0315154b38083 /arch/blackfin/include/asm | |
parent | d69367b1fb63be6f47da974bb3a97fb7c06c6062 (diff) |
Blackfin: remove unused is_in_rom()
The function is not used anywhere in the whole tree (anymore), so remove
it.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/include/asm')
-rw-r--r-- | arch/blackfin/include/asm/uaccess.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/blackfin/include/asm/uaccess.h b/arch/blackfin/include/asm/uaccess.h index 3ee7b4216150..461bb542e2e8 100644 --- a/arch/blackfin/include/asm/uaccess.h +++ b/arch/blackfin/include/asm/uaccess.h | |||
@@ -34,23 +34,6 @@ static inline void set_fs(mm_segment_t fs) | |||
34 | 34 | ||
35 | #define access_ok(type, addr, size) _access_ok((unsigned long)(addr), (size)) | 35 | #define access_ok(type, addr, size) _access_ok((unsigned long)(addr), (size)) |
36 | 36 | ||
37 | static inline int is_in_rom(unsigned long addr) | ||
38 | { | ||
39 | /* | ||
40 | * What we are really trying to do is determine if addr is | ||
41 | * in an allocated kernel memory region. If not then assume | ||
42 | * we cannot free it or otherwise de-allocate it. Ideally | ||
43 | * we could restrict this to really being in a ROM or flash, | ||
44 | * but that would need to be done on a board by board basis, | ||
45 | * not globally. | ||
46 | */ | ||
47 | if ((addr < _ramstart) || (addr >= _ramend)) | ||
48 | return (1); | ||
49 | |||
50 | /* Default case, not in ROM */ | ||
51 | return (0); | ||
52 | } | ||
53 | |||
54 | /* | 37 | /* |
55 | * The fs value determines whether argument validity checking should be | 38 | * The fs value determines whether argument validity checking should be |
56 | * performed or not. If get_fs() == USER_DS, checking is performed, with | 39 | * performed or not. If get_fs() == USER_DS, checking is performed, with |