Commit 5b211154 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu

Pull m68knommu updates from Greg Ungerer:
 "A couple of changes:

   - remove old CONFIG options from the m68knommu defconfig files

   - fix a warning in the m68k non-MMU get_user() macro"

* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
  m68knommu: fix memcpy() out of bounds warning in get_user()
  m68k: configs: Cleanup old Kconfig IO scheduler options
parents 85e55296 8044aad7
...@@ -13,7 +13,6 @@ CONFIG_EMBEDDED=y ...@@ -13,7 +13,6 @@ CONFIG_EMBEDDED=y
# CONFIG_SLUB_DEBUG is not set # CONFIG_SLUB_DEBUG is not set
# CONFIG_COMPAT_BRK is not set # CONFIG_COMPAT_BRK is not set
# CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSG is not set
# CONFIG_IOSCHED_CFQ is not set
# CONFIG_MMU is not set # CONFIG_MMU is not set
CONFIG_M5307=y CONFIG_M5307=y
CONFIG_AMCORE=y CONFIG_AMCORE=y
......
...@@ -10,8 +10,6 @@ CONFIG_EXPERT=y ...@@ -10,8 +10,6 @@ CONFIG_EXPERT=y
# CONFIG_VM_EVENT_COUNTERS is not set # CONFIG_VM_EVENT_COUNTERS is not set
# CONFIG_COMPAT_BRK is not set # CONFIG_COMPAT_BRK is not set
# CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSG is not set
# CONFIG_IOSCHED_DEADLINE is not set
# CONFIG_IOSCHED_CFQ is not set
# CONFIG_MMU is not set # CONFIG_MMU is not set
# CONFIG_4KSTACKS is not set # CONFIG_4KSTACKS is not set
CONFIG_RAMBASE=0x40000000 CONFIG_RAMBASE=0x40000000
......
...@@ -10,8 +10,6 @@ CONFIG_EXPERT=y ...@@ -10,8 +10,6 @@ CONFIG_EXPERT=y
# CONFIG_VM_EVENT_COUNTERS is not set # CONFIG_VM_EVENT_COUNTERS is not set
# CONFIG_SLUB_DEBUG is not set # CONFIG_SLUB_DEBUG is not set
# CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSG is not set
# CONFIG_IOSCHED_DEADLINE is not set
# CONFIG_IOSCHED_CFQ is not set
# CONFIG_MMU is not set # CONFIG_MMU is not set
CONFIG_M5249=y CONFIG_M5249=y
CONFIG_M5249C3=y CONFIG_M5249C3=y
......
...@@ -10,8 +10,6 @@ CONFIG_EXPERT=y ...@@ -10,8 +10,6 @@ CONFIG_EXPERT=y
# CONFIG_VM_EVENT_COUNTERS is not set # CONFIG_VM_EVENT_COUNTERS is not set
# CONFIG_SLUB_DEBUG is not set # CONFIG_SLUB_DEBUG is not set
# CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSG is not set
# CONFIG_IOSCHED_DEADLINE is not set
# CONFIG_IOSCHED_CFQ is not set
# CONFIG_MMU is not set # CONFIG_MMU is not set
CONFIG_M5272=y CONFIG_M5272=y
CONFIG_M5272C3=y CONFIG_M5272C3=y
......
...@@ -10,8 +10,6 @@ CONFIG_EXPERT=y ...@@ -10,8 +10,6 @@ CONFIG_EXPERT=y
# CONFIG_VM_EVENT_COUNTERS is not set # CONFIG_VM_EVENT_COUNTERS is not set
# CONFIG_SLUB_DEBUG is not set # CONFIG_SLUB_DEBUG is not set
# CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSG is not set
# CONFIG_IOSCHED_DEADLINE is not set
# CONFIG_IOSCHED_CFQ is not set
# CONFIG_MMU is not set # CONFIG_MMU is not set
CONFIG_M5275=y CONFIG_M5275=y
# CONFIG_4KSTACKS is not set # CONFIG_4KSTACKS is not set
......
...@@ -10,8 +10,6 @@ CONFIG_EXPERT=y ...@@ -10,8 +10,6 @@ CONFIG_EXPERT=y
# CONFIG_VM_EVENT_COUNTERS is not set # CONFIG_VM_EVENT_COUNTERS is not set
# CONFIG_SLUB_DEBUG is not set # CONFIG_SLUB_DEBUG is not set
# CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSG is not set
# CONFIG_IOSCHED_DEADLINE is not set
# CONFIG_IOSCHED_CFQ is not set
# CONFIG_MMU is not set # CONFIG_MMU is not set
CONFIG_M5307=y CONFIG_M5307=y
CONFIG_M5307C3=y CONFIG_M5307C3=y
......
...@@ -11,8 +11,6 @@ CONFIG_EXPERT=y ...@@ -11,8 +11,6 @@ CONFIG_EXPERT=y
CONFIG_MODULES=y CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_UNLOAD=y
# CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSG is not set
# CONFIG_IOSCHED_DEADLINE is not set
# CONFIG_IOSCHED_CFQ is not set
# CONFIG_MMU is not set # CONFIG_MMU is not set
CONFIG_M5407=y CONFIG_M5407=y
CONFIG_M5407C3=y CONFIG_M5407C3=y
......
...@@ -11,8 +11,6 @@ CONFIG_LOG_BUF_SHIFT=14 ...@@ -11,8 +11,6 @@ CONFIG_LOG_BUF_SHIFT=14
CONFIG_EMBEDDED=y CONFIG_EMBEDDED=y
CONFIG_MODULES=y CONFIG_MODULES=y
# CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSG is not set
# CONFIG_IOSCHED_DEADLINE is not set
# CONFIG_IOSCHED_CFQ is not set
CONFIG_COLDFIRE=y CONFIG_COLDFIRE=y
# CONFIG_4KSTACKS is not set # CONFIG_4KSTACKS is not set
CONFIG_RAMBASE=0x0 CONFIG_RAMBASE=0x0
......
...@@ -71,26 +71,29 @@ extern int __put_user_bad(void); ...@@ -71,26 +71,29 @@ extern int __put_user_bad(void);
#define get_user(x, ptr) \ #define get_user(x, ptr) \
({ \ ({ \
int __gu_err = 0; \ int __gu_err = 0; \
typeof(x) __gu_val = 0; \
switch (sizeof(*(ptr))) { \ switch (sizeof(*(ptr))) { \
case 1: \ case 1: \
__get_user_asm(__gu_err, __gu_val, ptr, b, "=d"); \ __get_user_asm(__gu_err, x, ptr, b, "=d"); \
break; \ break; \
case 2: \ case 2: \
__get_user_asm(__gu_err, __gu_val, ptr, w, "=r"); \ __get_user_asm(__gu_err, x, ptr, w, "=r"); \
break; \ break; \
case 4: \ case 4: \
__get_user_asm(__gu_err, __gu_val, ptr, l, "=r"); \ __get_user_asm(__gu_err, x, ptr, l, "=r"); \
break; \ break; \
case 8: \ case 8: { \
memcpy((void *) &__gu_val, ptr, sizeof (*(ptr))); \ union { \
u64 l; \
__typeof__(*(ptr)) t; \
} __gu_val; \
memcpy(&__gu_val.l, ptr, sizeof(__gu_val.l)); \
(x) = __gu_val.t; \
break; \ break; \
} \
default: \ default: \
__gu_val = 0; \
__gu_err = __get_user_bad(); \ __gu_err = __get_user_bad(); \
break; \ break; \
} \ } \
(x) = (typeof(*(ptr))) __gu_val; \
__gu_err; \ __gu_err; \
}) })
#define __get_user(x, ptr) get_user(x, ptr) #define __get_user(x, ptr) get_user(x, ptr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment