diff options
| -rw-r--r-- | arch/sh/boot/compressed/cache.c | 2 | ||||
| -rw-r--r-- | arch/sh/kernel/hw_breakpoint.c | 30 | ||||
| -rw-r--r-- | arch/sh/lib/libgcc.h | 3 | ||||
| -rw-r--r-- | arch/sh/mm/pmb.c | 1 | 
4 files changed, 8 insertions, 28 deletions
diff --git a/arch/sh/boot/compressed/cache.c b/arch/sh/boot/compressed/cache.c index e27fc74f228c..d0b77b68a4d0 100644 --- a/arch/sh/boot/compressed/cache.c +++ b/arch/sh/boot/compressed/cache.c  | |||
| @@ -5,7 +5,7 @@ int cache_control(unsigned int command) | |||
| 5 | 5 | ||
| 6 | for (i = 0; i < (32 * 1024); i += 32) { | 6 | for (i = 0; i < (32 * 1024); i += 32) { | 
| 7 | (void)*p; | 7 | (void)*p; | 
| 8 | p += (32 / sizeof (int)); | 8 | p += (32 / sizeof(int)); | 
| 9 | } | 9 | } | 
| 10 | 10 | ||
| 11 | return 0; | 11 | return 0; | 
diff --git a/arch/sh/kernel/hw_breakpoint.c b/arch/sh/kernel/hw_breakpoint.c index e2f1753d275c..675eea7785d9 100644 --- a/arch/sh/kernel/hw_breakpoint.c +++ b/arch/sh/kernel/hw_breakpoint.c  | |||
| @@ -143,26 +143,6 @@ static int arch_check_va_in_kernelspace(unsigned long va, u8 hbp_len) | |||
| 143 | return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE); | 143 | return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE); | 
| 144 | } | 144 | } | 
| 145 | 145 | ||
| 146 | /* | ||
| 147 | * Store a breakpoint's encoded address, length, and type. | ||
| 148 | */ | ||
| 149 | static int arch_store_info(struct perf_event *bp) | ||
| 150 | { | ||
| 151 | struct arch_hw_breakpoint *info = counter_arch_bp(bp); | ||
| 152 | |||
| 153 | /* | ||
| 154 | * User-space requests will always have the address field populated | ||
| 155 | * For kernel-addresses, either the address or symbol name can be | ||
| 156 | * specified. | ||
| 157 | */ | ||
| 158 | if (info->name) | ||
| 159 | info->address = (unsigned long)kallsyms_lookup_name(info->name); | ||
| 160 | if (info->address) | ||
| 161 | return 0; | ||
| 162 | |||
| 163 | return -EINVAL; | ||
| 164 | } | ||
| 165 | |||
| 166 | int arch_bp_generic_fields(int sh_len, int sh_type, | 146 | int arch_bp_generic_fields(int sh_len, int sh_type, | 
| 167 | int *gen_len, int *gen_type) | 147 | int *gen_len, int *gen_type) | 
| 168 | { | 148 | { | 
| @@ -276,10 +256,12 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp, | |||
| 276 | return ret; | 256 | return ret; | 
| 277 | } | 257 | } | 
| 278 | 258 | ||
| 279 | ret = arch_store_info(bp); | 259 | /* | 
| 280 | 260 | * For kernel-addresses, either the address or symbol name can be | |
| 281 | if (ret < 0) | 261 | * specified. | 
| 282 | return ret; | 262 | */ | 
| 263 | if (info->name) | ||
| 264 | info->address = (unsigned long)kallsyms_lookup_name(info->name); | ||
| 283 | 265 | ||
| 284 | /* | 266 | /* | 
| 285 | * Check that the low-order bits of the address are appropriate | 267 | * Check that the low-order bits of the address are appropriate | 
diff --git a/arch/sh/lib/libgcc.h b/arch/sh/lib/libgcc.h index 3f19d1c5d942..05909d58e2fe 100644 --- a/arch/sh/lib/libgcc.h +++ b/arch/sh/lib/libgcc.h  | |||
| @@ -17,8 +17,7 @@ struct DWstruct { | |||
| 17 | #error I feel sick. | 17 | #error I feel sick. | 
| 18 | #endif | 18 | #endif | 
| 19 | 19 | ||
| 20 | typedef union | 20 | typedef union { | 
| 21 | { | ||
| 22 | struct DWstruct s; | 21 | struct DWstruct s; | 
| 23 | long long ll; | 22 | long long ll; | 
| 24 | } DWunion; | 23 | } DWunion; | 
diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c index 198bcff5e96f..35b364f931ea 100644 --- a/arch/sh/mm/pmb.c +++ b/arch/sh/mm/pmb.c  | |||
| @@ -23,7 +23,6 @@ | |||
| 23 | #include <linux/err.h> | 23 | #include <linux/err.h> | 
| 24 | #include <linux/io.h> | 24 | #include <linux/io.h> | 
| 25 | #include <linux/spinlock.h> | 25 | #include <linux/spinlock.h> | 
| 26 | #include <linux/rwlock.h> | ||
| 27 | #include <asm/sizes.h> | 26 | #include <asm/sizes.h> | 
| 28 | #include <asm/system.h> | 27 | #include <asm/system.h> | 
| 29 | #include <asm/uaccess.h> | 28 | #include <asm/uaccess.h> | 
