Merge branch 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 fixes from Peter Anvin:
"This is a pretty small batch:

The biggest single change is to stop using EFI time services on 32-bit
platforms. This matches our current behavior on 64-bit platforms as
we already had ruled them out there as being too unreliable. Turns
out that affects 32-bit platforms, too.

One NULL pointer fix for SGI UV.

Two minor build fixes, one of which only affects icc and the other
which affects icc and future versions or nonstandard default settings
of gcc"

* 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86, efi: Don't use (U)EFI time services on 32 bit
x86, build, icc: Remove uninitialized_var() from compiler-intel.h
x86/UV: Fix NULL pointer dereference in uv_flush_tlb_others() if the 'nobau' boot option is used
x86, build: Pass in additional -mno-mmx, -mno-sse options

Changed files
+13 -19
arch
x86
boot
compressed
platform
efi
uv
realmode
include
+4 -4
arch/x86/Makefile
··· 31 31 32 32 KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return 33 33 34 - # Don't autogenerate SSE instructions 35 - KBUILD_CFLAGS += -mno-sse 34 + # Don't autogenerate MMX or SSE instructions 35 + KBUILD_CFLAGS += -mno-mmx -mno-sse 36 36 37 37 # Never want PIC in a 32-bit kernel, prevent breakage with GCC built 38 38 # with nonstandard options ··· 60 60 KBUILD_AFLAGS += -m64 61 61 KBUILD_CFLAGS += -m64 62 62 63 - # Don't autogenerate SSE instructions 64 - KBUILD_CFLAGS += -mno-sse 63 + # Don't autogenerate MMX or SSE instructions 64 + KBUILD_CFLAGS += -mno-mmx -mno-sse 65 65 66 66 # Use -mpreferred-stack-boundary=3 if supported. 67 67 KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=3)
+3 -3
arch/x86/boot/Makefile
··· 53 53 54 54 # How to compile the 16-bit code. Note we always compile for -march=i386, 55 55 # that way we can complain to the user if the CPU is insufficient. 56 - KBUILD_CFLAGS := $(USERINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ 56 + KBUILD_CFLAGS := $(USERINCLUDE) -m32 -g -Os -D_SETUP -D__KERNEL__ \ 57 57 -DDISABLE_BRANCH_PROFILING \ 58 58 -Wall -Wstrict-prototypes \ 59 59 -march=i386 -mregparm=3 \ 60 60 -include $(srctree)/$(src)/code16gcc.h \ 61 61 -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ 62 + -mno-mmx -mno-sse \ 62 63 $(call cc-option, -ffreestanding) \ 63 64 $(call cc-option, -fno-toplevel-reorder,\ 64 - $(call cc-option, -fno-unit-at-a-time)) \ 65 + $(call cc-option, -fno-unit-at-a-time)) \ 65 66 $(call cc-option, -fno-stack-protector) \ 66 67 $(call cc-option, -mpreferred-stack-boundary=2) 67 - KBUILD_CFLAGS += $(call cc-option, -m32) 68 68 KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ 69 69 GCOV_PROFILE := n 70 70
+1
arch/x86/boot/compressed/Makefile
··· 13 13 cflags-$(CONFIG_X86_32) := -march=i386 14 14 cflags-$(CONFIG_X86_64) := -mcmodel=small 15 15 KBUILD_CFLAGS += $(cflags-y) 16 + KBUILD_CFLAGS += -mno-mmx -mno-sse 16 17 KBUILD_CFLAGS += $(call cc-option,-ffreestanding) 17 18 KBUILD_CFLAGS += $(call cc-option,-fno-stack-protector) 18 19
-7
arch/x86/platform/efi/efi.c
··· 690 690 691 691 set_bit(EFI_MEMMAP, &x86_efi_facility); 692 692 693 - #ifdef CONFIG_X86_32 694 - if (efi_is_native()) { 695 - x86_platform.get_wallclock = efi_get_time; 696 - x86_platform.set_wallclock = efi_set_rtc_mmss; 697 - } 698 - #endif 699 - 700 693 #if EFI_DEBUG 701 694 print_efi_memmap(); 702 695 #endif
+3 -2
arch/x86/platform/uv/tlb_uv.c
··· 1070 1070 unsigned long status; 1071 1071 1072 1072 bcp = &per_cpu(bau_control, cpu); 1073 - stat = bcp->statp; 1074 - stat->s_enters++; 1075 1073 1076 1074 if (bcp->nobau) 1077 1075 return cpumask; 1076 + 1077 + stat = bcp->statp; 1078 + stat->s_enters++; 1078 1079 1079 1080 if (bcp->busy) { 1080 1081 descriptor_status =
+2 -1
arch/x86/realmode/rm/Makefile
··· 73 73 -march=i386 -mregparm=3 \ 74 74 -include $(srctree)/$(src)/../../boot/code16gcc.h \ 75 75 -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ 76 + -mno-mmx -mno-sse \ 76 77 $(call cc-option, -ffreestanding) \ 77 78 $(call cc-option, -fno-toplevel-reorder,\ 78 - $(call cc-option, -fno-unit-at-a-time)) \ 79 + $(call cc-option, -fno-unit-at-a-time)) \ 79 80 $(call cc-option, -fno-stack-protector) \ 80 81 $(call cc-option, -mpreferred-stack-boundary=2) 81 82 KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__
-2
include/linux/compiler-intel.h
··· 28 28 29 29 #endif 30 30 31 - #define uninitialized_var(x) x 32 - 33 31 #ifndef __HAVE_BUILTIN_BSWAP16__ 34 32 /* icc has this, but it's called _bswap16 */ 35 33 #define __HAVE_BUILTIN_BSWAP16__