From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A070C388F7 for ; Sat, 7 Nov 2020 10:18:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 20CAB20B1F for ; Sat, 7 Nov 2020 10:18:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ZrDsXKHT"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="a/HIw4FN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728128AbgKGKSu (ORCPT ); Sat, 7 Nov 2020 05:18:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727990AbgKGKSt (ORCPT ); Sat, 7 Nov 2020 05:18:49 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF908C0613CF; Sat, 7 Nov 2020 02:18:48 -0800 (PST) Date: Sat, 07 Nov 2020 10:18:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1604744326; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=teApRVu24PqpjDz+xhtMmc0ALpIwkQx88SsyiT75wb8=; b=ZrDsXKHTXZr2FLI0PxijF5hnE5DebEEChg8mDjiTua5L25rSnS4Zxu5dHHnVTuHcIIGWba KANSqkgeg9k893LeEl4KntiHKXQ+JblDNF09J+3pDrFZymdG0BqHaPR33a7LZmLCxf++qp ux9DSqW4EvJakJnB+XnV3i0p8QDKyykYb9JFvr4utYv50YbhLl5B4TOV6NMCjp8YKixfWQ 3vMGa22QLsPMXzOxkAz8G2QIfGueuUNU+p4j3W9q9Wt84kOSl1Hf6y4N0r1HteW/v//rNL euGXpiygujMO4G2VHc7wiStr+uySaBllxhOoWjjT+EOz72Zwc6C3CIJgZ87MwA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1604744326; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=teApRVu24PqpjDz+xhtMmc0ALpIwkQx88SsyiT75wb8=; b=a/HIw4FNSgW85MTetH088N6yRG7W2r8qGX2+NlM4eIvOqnP+J6AUUNhLWyCTjflaWGd4oa o+Z4fvvMk59m4YDg== From: "tip-bot2 for Mike Travis" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/platform/uv: Remove spaces from OEM IDs Cc: Mike Travis , Thomas Gleixner , x86 , LKML In-Reply-To: <20201105222741.157029-3-mike.travis@hpe.com> References: <20201105222741.157029-3-mike.travis@hpe.com> MIME-Version: 1.0 Message-ID: <160474432512.397.9918454290577687435.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 1aee505e0171fc38fd5ed70c7f0dcbb7398c759f Gitweb: https://git.kernel.org/tip/1aee505e0171fc38fd5ed70c7f0dcbb7398c759f Author: Mike Travis AuthorDate: Thu, 05 Nov 2020 16:27:40 -06:00 Committer: Thomas Gleixner CommitterDate: Sat, 07 Nov 2020 11:17:39 +01:00 x86/platform/uv: Remove spaces from OEM IDs Testing shows that trailing spaces caused problems with the OEM_ID and the OEM_TABLE_ID. One being that the OEM_ID would not string compare correctly. Another the OEM_ID and OEM_TABLE_ID would be concatenated in the printout. Remove any trailing spaces. Fixes: 1e61f5a95f191 ("Add and decode Arch Type in UVsystab") Signed-off-by: Mike Travis Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20201105222741.157029-3-mike.travis@hpe.com --- arch/x86/kernel/apic/x2apic_uv_x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index a579479..0f848d6 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c @@ -290,6 +290,9 @@ static void __init uv_stringify(int len, char *to, char *from) { /* Relies on 'to' being NULL chars so result will be NULL terminated */ strncpy(to, from, len-1); + + /* Trim trailing spaces */ + (void)strim(to); } /* Find UV arch type entry in UVsystab */