diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 13:47:45 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 13:47:45 -0400 |
| commit | 08815bc267291ea0a4f7f348290efc555444d7a8 (patch) | |
| tree | 2e6358cd8b69ea5260c0d112684722aca9d7e13b | |
| parent | 67b1f348c95e48aa80a58fbdca93a702b5afa69c (diff) | |
| parent | 4b8073e467e6a66b6a5a8e799d28bc3b243c0d78 (diff) | |
Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86/cleanups from Ingo Molnar:
"Smaller cleanups"
* 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
arch/x86: Remove unecessary semicolons
x86, boot: Remove obsolete and unused constant RAMDISK
| -rw-r--r-- | arch/x86/boot/header.S | 4 | ||||
| -rw-r--r-- | arch/x86/kernel/alternative.c | 4 | ||||
| -rw-r--r-- | arch/x86/kernel/apic/apic.c | 2 | ||||
| -rw-r--r-- | arch/x86/kvm/vmx.c | 2 | ||||
| -rw-r--r-- | arch/x86/pci/mmconfig-shared.c | 2 |
5 files changed, 5 insertions, 9 deletions
diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S index b4e15dd6786a..2a017441b8b2 100644 --- a/arch/x86/boot/header.S +++ b/arch/x86/boot/header.S | |||
| @@ -32,10 +32,6 @@ SYSSEG = 0x1000 /* historical load address >> 4 */ | |||
| 32 | #define SVGA_MODE ASK_VGA | 32 | #define SVGA_MODE ASK_VGA |
| 33 | #endif | 33 | #endif |
| 34 | 34 | ||
| 35 | #ifndef RAMDISK | ||
| 36 | #define RAMDISK 0 | ||
| 37 | #endif | ||
| 38 | |||
| 39 | #ifndef ROOT_RDONLY | 35 | #ifndef ROOT_RDONLY |
| 40 | #define ROOT_RDONLY 1 | 36 | #define ROOT_RDONLY 1 |
| 41 | #endif | 37 | #endif |
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index 357475a87b52..ef5ccca79a6c 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c | |||
| @@ -304,7 +304,7 @@ static void alternatives_smp_lock(const s32 *start, const s32 *end, | |||
| 304 | /* turn DS segment override prefix into lock prefix */ | 304 | /* turn DS segment override prefix into lock prefix */ |
| 305 | if (*ptr == 0x3e) | 305 | if (*ptr == 0x3e) |
| 306 | text_poke(ptr, ((unsigned char []){0xf0}), 1); | 306 | text_poke(ptr, ((unsigned char []){0xf0}), 1); |
| 307 | }; | 307 | } |
| 308 | mutex_unlock(&text_mutex); | 308 | mutex_unlock(&text_mutex); |
| 309 | } | 309 | } |
| 310 | 310 | ||
| @@ -322,7 +322,7 @@ static void alternatives_smp_unlock(const s32 *start, const s32 *end, | |||
| 322 | /* turn lock prefix into DS segment override prefix */ | 322 | /* turn lock prefix into DS segment override prefix */ |
| 323 | if (*ptr == 0xf0) | 323 | if (*ptr == 0xf0) |
| 324 | text_poke(ptr, ((unsigned char []){0x3E}), 1); | 324 | text_poke(ptr, ((unsigned char []){0x3E}), 1); |
| 325 | }; | 325 | } |
| 326 | mutex_unlock(&text_mutex); | 326 | mutex_unlock(&text_mutex); |
| 327 | } | 327 | } |
| 328 | 328 | ||
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 24deb3082328..b17416e72fbd 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
| @@ -1934,7 +1934,7 @@ void smp_error_interrupt(struct pt_regs *regs) | |||
| 1934 | apic_printk(APIC_DEBUG, KERN_CONT " : %s", error_interrupt_reason[i]); | 1934 | apic_printk(APIC_DEBUG, KERN_CONT " : %s", error_interrupt_reason[i]); |
| 1935 | i++; | 1935 | i++; |
| 1936 | v1 >>= 1; | 1936 | v1 >>= 1; |
| 1937 | }; | 1937 | } |
| 1938 | 1938 | ||
| 1939 | apic_printk(APIC_DEBUG, KERN_CONT "\n"); | 1939 | apic_printk(APIC_DEBUG, KERN_CONT "\n"); |
| 1940 | 1940 | ||
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index b1eb202ee76a..b06737d122f4 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
| @@ -4543,7 +4543,7 @@ static int handle_cr(struct kvm_vcpu *vcpu) | |||
| 4543 | vcpu->run->exit_reason = KVM_EXIT_SET_TPR; | 4543 | vcpu->run->exit_reason = KVM_EXIT_SET_TPR; |
| 4544 | return 0; | 4544 | return 0; |
| 4545 | } | 4545 | } |
| 4546 | }; | 4546 | } |
| 4547 | break; | 4547 | break; |
| 4548 | case 2: /* clts */ | 4548 | case 2: /* clts */ |
| 4549 | handle_clts(vcpu); | 4549 | handle_clts(vcpu); |
diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c index 937bcece7006..704b9ec043d7 100644 --- a/arch/x86/pci/mmconfig-shared.c +++ b/arch/x86/pci/mmconfig-shared.c | |||
| @@ -585,7 +585,7 @@ static int __init pci_parse_mcfg(struct acpi_table_header *header) | |||
| 585 | while (i >= sizeof(struct acpi_mcfg_allocation)) { | 585 | while (i >= sizeof(struct acpi_mcfg_allocation)) { |
| 586 | entries++; | 586 | entries++; |
| 587 | i -= sizeof(struct acpi_mcfg_allocation); | 587 | i -= sizeof(struct acpi_mcfg_allocation); |
| 588 | }; | 588 | } |
| 589 | if (entries == 0) { | 589 | if (entries == 0) { |
| 590 | pr_err(PREFIX "MMCONFIG has no entries\n"); | 590 | pr_err(PREFIX "MMCONFIG has no entries\n"); |
| 591 | return -ENODEV; | 591 | return -ENODEV; |
