Skip to content

Commit 5b21115

Browse files
committed
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
2 parents 85e5529 + 8044aad commit 5b21115

File tree

9 files changed

+11
-23
lines changed

9 files changed

+11
-23
lines changed

arch/m68k/configs/amcore_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ CONFIG_EMBEDDED=y
1313
# CONFIG_SLUB_DEBUG is not set
1414
# CONFIG_COMPAT_BRK is not set
1515
# CONFIG_BLK_DEV_BSG is not set
16-
# CONFIG_IOSCHED_CFQ is not set
1716
# CONFIG_MMU is not set
1817
CONFIG_M5307=y
1918
CONFIG_AMCORE=y

arch/m68k/configs/m5208evb_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ CONFIG_EXPERT=y
1010
# CONFIG_VM_EVENT_COUNTERS is not set
1111
# CONFIG_COMPAT_BRK is not set
1212
# CONFIG_BLK_DEV_BSG is not set
13-
# CONFIG_IOSCHED_DEADLINE is not set
14-
# CONFIG_IOSCHED_CFQ is not set
1513
# CONFIG_MMU is not set
1614
# CONFIG_4KSTACKS is not set
1715
CONFIG_RAMBASE=0x40000000

arch/m68k/configs/m5249evb_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ CONFIG_EXPERT=y
1010
# CONFIG_VM_EVENT_COUNTERS is not set
1111
# CONFIG_SLUB_DEBUG is not set
1212
# CONFIG_BLK_DEV_BSG is not set
13-
# CONFIG_IOSCHED_DEADLINE is not set
14-
# CONFIG_IOSCHED_CFQ is not set
1513
# CONFIG_MMU is not set
1614
CONFIG_M5249=y
1715
CONFIG_M5249C3=y

arch/m68k/configs/m5272c3_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ CONFIG_EXPERT=y
1010
# CONFIG_VM_EVENT_COUNTERS is not set
1111
# CONFIG_SLUB_DEBUG is not set
1212
# CONFIG_BLK_DEV_BSG is not set
13-
# CONFIG_IOSCHED_DEADLINE is not set
14-
# CONFIG_IOSCHED_CFQ is not set
1513
# CONFIG_MMU is not set
1614
CONFIG_M5272=y
1715
CONFIG_M5272C3=y

arch/m68k/configs/m5275evb_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ CONFIG_EXPERT=y
1010
# CONFIG_VM_EVENT_COUNTERS is not set
1111
# CONFIG_SLUB_DEBUG is not set
1212
# CONFIG_BLK_DEV_BSG is not set
13-
# CONFIG_IOSCHED_DEADLINE is not set
14-
# CONFIG_IOSCHED_CFQ is not set
1513
# CONFIG_MMU is not set
1614
CONFIG_M5275=y
1715
# CONFIG_4KSTACKS is not set

arch/m68k/configs/m5307c3_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ CONFIG_EXPERT=y
1010
# CONFIG_VM_EVENT_COUNTERS is not set
1111
# CONFIG_SLUB_DEBUG is not set
1212
# CONFIG_BLK_DEV_BSG is not set
13-
# CONFIG_IOSCHED_DEADLINE is not set
14-
# CONFIG_IOSCHED_CFQ is not set
1513
# CONFIG_MMU is not set
1614
CONFIG_M5307=y
1715
CONFIG_M5307C3=y

arch/m68k/configs/m5407c3_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ CONFIG_EXPERT=y
1111
CONFIG_MODULES=y
1212
CONFIG_MODULE_UNLOAD=y
1313
# CONFIG_BLK_DEV_BSG is not set
14-
# CONFIG_IOSCHED_DEADLINE is not set
15-
# CONFIG_IOSCHED_CFQ is not set
1614
# CONFIG_MMU is not set
1715
CONFIG_M5407=y
1816
CONFIG_M5407C3=y

arch/m68k/configs/m5475evb_defconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ CONFIG_LOG_BUF_SHIFT=14
1111
CONFIG_EMBEDDED=y
1212
CONFIG_MODULES=y
1313
# CONFIG_BLK_DEV_BSG is not set
14-
# CONFIG_IOSCHED_DEADLINE is not set
15-
# CONFIG_IOSCHED_CFQ is not set
1614
CONFIG_COLDFIRE=y
1715
# CONFIG_4KSTACKS is not set
1816
CONFIG_RAMBASE=0x0

arch/m68k/include/asm/uaccess_no.h

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,26 +71,29 @@ extern int __put_user_bad(void);
7171
#define get_user(x, ptr) \
7272
({ \
7373
int __gu_err = 0; \
74-
typeof(x) __gu_val = 0; \
7574
switch (sizeof(*(ptr))) { \
7675
case 1: \
77-
__get_user_asm(__gu_err, __gu_val, ptr, b, "=d"); \
76+
__get_user_asm(__gu_err, x, ptr, b, "=d"); \
7877
break; \
7978
case 2: \
80-
__get_user_asm(__gu_err, __gu_val, ptr, w, "=r"); \
79+
__get_user_asm(__gu_err, x, ptr, w, "=r"); \
8180
break; \
8281
case 4: \
83-
__get_user_asm(__gu_err, __gu_val, ptr, l, "=r"); \
82+
__get_user_asm(__gu_err, x, ptr, l, "=r"); \
8483
break; \
85-
case 8: \
86-
memcpy((void *) &__gu_val, ptr, sizeof (*(ptr))); \
84+
case 8: { \
85+
union { \
86+
u64 l; \
87+
__typeof__(*(ptr)) t; \
88+
} __gu_val; \
89+
memcpy(&__gu_val.l, ptr, sizeof(__gu_val.l)); \
90+
(x) = __gu_val.t; \
8791
break; \
92+
} \
8893
default: \
89-
__gu_val = 0; \
9094
__gu_err = __get_user_bad(); \
9195
break; \
9296
} \
93-
(x) = (typeof(*(ptr))) __gu_val; \
9497
__gu_err; \
9598
})
9699
#define __get_user(x, ptr) get_user(x, ptr)

0 commit comments

Comments
 (0)