diff options
Diffstat (limited to 'arch/sh/include/asm')
| -rw-r--r-- | arch/sh/include/asm/cmpxchg.h | 4 | ||||
| -rw-r--r-- | arch/sh/include/asm/fb.h | 15 | ||||
| -rw-r--r-- | arch/sh/include/asm/gpio.h | 45 | ||||
| -rw-r--r-- | arch/sh/include/asm/smp-ops.h | 5 | ||||
| -rw-r--r-- | arch/sh/include/asm/types.h | 2 | 
5 files changed, 7 insertions, 64 deletions
| diff --git a/arch/sh/include/asm/cmpxchg.h b/arch/sh/include/asm/cmpxchg.h index 0ed9b3f4a577..288f6f38d98f 100644 --- a/arch/sh/include/asm/cmpxchg.h +++ b/arch/sh/include/asm/cmpxchg.h @@ -22,7 +22,7 @@  extern void __xchg_called_with_bad_pointer(void); -#define __xchg(ptr, x, size)				\ +#define __arch_xchg(ptr, x, size)				\  ({							\  	unsigned long __xchg__res;			\  	volatile void *__xchg_ptr = (ptr);		\ @@ -46,7 +46,7 @@ extern void __xchg_called_with_bad_pointer(void);  })  #define arch_xchg(ptr,x)	\ -	((__typeof__(*(ptr)))__xchg((ptr),(unsigned long)(x), sizeof(*(ptr)))) +	((__typeof__(*(ptr)))__arch_xchg((ptr),(unsigned long)(x), sizeof(*(ptr))))  /* This function doesn't exist, so you'll get a linker error   * if something tries to do an invalid cmpxchg(). */ diff --git a/arch/sh/include/asm/fb.h b/arch/sh/include/asm/fb.h index 9a0bca2686fd..19df13ee9ca7 100644 --- a/arch/sh/include/asm/fb.h +++ b/arch/sh/include/asm/fb.h @@ -2,19 +2,6 @@  #ifndef _ASM_FB_H_  #define _ASM_FB_H_ -#include <linux/fb.h> -#include <linux/fs.h> -#include <asm/page.h> - -static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, -				unsigned long off) -{ -	vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); -} - -static inline int fb_is_primary_device(struct fb_info *info) -{ -	return 0; -} +#include <asm-generic/fb.h>  #endif /* _ASM_FB_H_ */ diff --git a/arch/sh/include/asm/gpio.h b/arch/sh/include/asm/gpio.h deleted file mode 100644 index 588c1380e4cb..000000000000 --- a/arch/sh/include/asm/gpio.h +++ /dev/null @@ -1,45 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 - * - *  include/asm-sh/gpio.h - * - * Generic GPIO API and pinmux table support for SuperH. - * - * Copyright (c) 2008 Magnus Damm - */ -#ifndef __ASM_SH_GPIO_H -#define __ASM_SH_GPIO_H - -#include <linux/kernel.h> -#include <linux/errno.h> - -#if defined(CONFIG_CPU_SH3) -#include <cpu/gpio.h> -#endif - -#include <asm-generic/gpio.h> - -#ifdef CONFIG_GPIOLIB - -static inline int gpio_get_value(unsigned gpio) -{ -	return __gpio_get_value(gpio); -} - -static inline void gpio_set_value(unsigned gpio, int value) -{ -	__gpio_set_value(gpio, value); -} - -static inline int gpio_cansleep(unsigned gpio) -{ -	return __gpio_cansleep(gpio); -} - -static inline int gpio_to_irq(unsigned gpio) -{ -	return __gpio_to_irq(gpio); -} - -#endif /* CONFIG_GPIOLIB */ - -#endif /* __ASM_SH_GPIO_H */ diff --git a/arch/sh/include/asm/smp-ops.h b/arch/sh/include/asm/smp-ops.h index e27702130eb6..97331fcb7b85 100644 --- a/arch/sh/include/asm/smp-ops.h +++ b/arch/sh/include/asm/smp-ops.h @@ -24,9 +24,10 @@ static inline void plat_smp_setup(void)  	mp_ops->smp_setup();  } -static inline void play_dead(void) +static inline void __noreturn play_dead(void)  {  	mp_ops->play_dead(); +	BUG();  }  extern void register_smp_ops(struct plat_smp_ops *ops); @@ -42,7 +43,7 @@ static inline void register_smp_ops(struct plat_smp_ops *ops)  {  } -static inline void play_dead(void) +static inline void __noreturn play_dead(void)  {  	BUG();  } diff --git a/arch/sh/include/asm/types.h b/arch/sh/include/asm/types.h index 68eb24ad2013..9b3fc923ee28 100644 --- a/arch/sh/include/asm/types.h +++ b/arch/sh/include/asm/types.h @@ -2,7 +2,7 @@  #ifndef __ASM_SH_TYPES_H  #define __ASM_SH_TYPES_H -#include <uapi/asm/types.h> +#include <asm-generic/int-ll64.h>  /*   * These aren't exported outside the kernel to avoid name space clashes | 
