aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-08-13 19:08:26 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-13 19:08:26 -0400
commit7edcf0d314f69e506ddd9562062b2a79fa965bb9 (patch)
tree2c9ccda87c278dafb96de45c3d06d54c922a803b
parent30de24c7dd21348b142ee977b687afc70b392af6 (diff)
parentd79d024820f2e522ab30b5e6662c245f887c752b (diff)
Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 platform updates from Thomas Gleixner: "Trivial cleanups and improvements" * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/platform/UV: Remove redundant check of p == q x86/platform/olpc: Use PTR_ERR_OR_ZERO() x86/platform/UV: Mark memblock related init code and data correctly
-rw-r--r--arch/x86/kernel/apic/x2apic_uv_x.c4
-rw-r--r--arch/x86/platform/olpc/olpc.c4
-rw-r--r--arch/x86/platform/uv/tlb_uv.c2
3 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
index d492752f79e1..391f358ebb4c 100644
--- a/arch/x86/kernel/apic/x2apic_uv_x.c
+++ b/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -394,10 +394,10 @@ extern int uv_hub_info_version(void)
394EXPORT_SYMBOL(uv_hub_info_version); 394EXPORT_SYMBOL(uv_hub_info_version);
395 395
396/* Default UV memory block size is 2GB */ 396/* Default UV memory block size is 2GB */
397static unsigned long mem_block_size = (2UL << 30); 397static unsigned long mem_block_size __initdata = (2UL << 30);
398 398
399/* Kernel parameter to specify UV mem block size */ 399/* Kernel parameter to specify UV mem block size */
400static int parse_mem_block_size(char *ptr) 400static int __init parse_mem_block_size(char *ptr)
401{ 401{
402 unsigned long size = memparse(ptr, NULL); 402 unsigned long size = memparse(ptr, NULL);
403 403
diff --git a/arch/x86/platform/olpc/olpc.c b/arch/x86/platform/olpc/olpc.c
index 7c3077e58fa0..f0e920fb98ad 100644
--- a/arch/x86/platform/olpc/olpc.c
+++ b/arch/x86/platform/olpc/olpc.c
@@ -311,10 +311,8 @@ static int __init add_xo1_platform_devices(void)
311 return PTR_ERR(pdev); 311 return PTR_ERR(pdev);
312 312
313 pdev = platform_device_register_simple("olpc-xo1", -1, NULL, 0); 313 pdev = platform_device_register_simple("olpc-xo1", -1, NULL, 0);
314 if (IS_ERR(pdev))
315 return PTR_ERR(pdev);
316 314
317 return 0; 315 return PTR_ERR_OR_ZERO(pdev);
318} 316}
319 317
320static int olpc_xo1_ec_probe(struct platform_device *pdev) 318static int olpc_xo1_ec_probe(struct platform_device *pdev)
diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c
index ca446da48fd2..e26dfad507c8 100644
--- a/arch/x86/platform/uv/tlb_uv.c
+++ b/arch/x86/platform/uv/tlb_uv.c
@@ -1607,8 +1607,6 @@ static int parse_tunables_write(struct bau_control *bcp, char *instr,
1607 *tunables[cnt].tunp = val; 1607 *tunables[cnt].tunp = val;
1608 continue; 1608 continue;
1609 } 1609 }
1610 if (q == p)
1611 break;
1612 } 1610 }
1613 return 0; 1611 return 0;
1614} 1612}