Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5768594imm; Mon, 23 Jul 2018 05:52:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeYC1qtojbXiG794FkZQsOIGM14bfaWtGAhn4We+BC8ZvwOrsDi7njEhpLORDqavmTWpbzd X-Received: by 2002:a65:4384:: with SMTP id m4-v6mr730136pgp.265.1532350357435; Mon, 23 Jul 2018 05:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532350357; cv=none; d=google.com; s=arc-20160816; b=qEfHqLkghIiI/zZRYn0xxhWuvoSqpZJsvn+QQv6yY1/WQypnxDuTimMeDZ8S3LKZkV LFcROF9V3Oh2dy37Pm9bvpjoDXTn3eGDnF7RjF3tTDXZcRvNwGo+ZRGRAOy4d4TnWUOd BUAYvj4EKYsvnHPUsIoHGJSPemBFpT1yry8qwfYS+zkYQY2E2vtYIyFhncmJKn4PFZKw PJWPUT0ppDVqni+ixGgA6jnZdV21gUVIv1cjQPfeO5TsPJ/JdG5e5fTHJw2ZVLUEATF4 PNG3cAWX6hkTzs2rU+QsOzNRgCN63t8f6ltotkvR36/HMa6K6lup8BFDDH1YKfSaV7eH DHug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=OfKKNkvuWqOvoL+oMlSAMsAgWXkpcKfLdtSHUZCsruQ=; b=EGRirURdJgBYO/SsnC9wZVFoXrfWxP5FSCPvbiGZy3RJyX16O5jMQUZxq89VRbMECH Xa9vdLfO6bxjbOpUjcEfnk0Mo68aeMgYCdBlW3GgwNVJ06yP0mxN+bSsn8paf2FJfg+5 kuFUcHFwJlCI3Udqx16kwempJVl9OA/v4tp0RwpUMYx6mT7H9t0t09SJqDunjSrJ1oDT u6gS5vYRtF4BKQ9RrzOLkE062O6jK8A43v8l61AFXk9z5mZm8Hfka4yuN0SX7vwzGHsR MDcSYBUQMHLv5rODg1sYqKxNekQyZ0f5crGFAq28eVGAtZYI19dKwSVyl/NnxdpmmL0u czLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g67-v6si8154154plb.73.2018.07.23.05.52.22; Mon, 23 Jul 2018 05:52:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389513AbeGWNr5 (ORCPT + 99 others); Mon, 23 Jul 2018 09:47:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51386 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389496AbeGWNr4 (ORCPT ); Mon, 23 Jul 2018 09:47:56 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A49C3A95; Mon, 23 Jul 2018 12:46:09 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Konrad Rzeszutek Wilk , Thomas Gleixner , David Woodhouse , "Srivatsa S. Bhat" , "Matt Helsley (VMware)" , Alexey Makhalov , Bo Gan Subject: [PATCH 4.4 081/107] x86/bugs: Fix the parameters alignment and missing void Date: Mon, 23 Jul 2018 14:42:15 +0200 Message-Id: <20180723122417.492156335@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122413.003644357@linuxfoundation.org> References: <20180723122413.003644357@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Konrad Rzeszutek Wilk commit ffed645e3be0e32f8e9ab068d257aee8d0fe8eec upstream Fixes: 7bb4d366c ("x86/bugs: Make cpu_show_common() static") Fixes: 24f7fc83b ("x86/bugs: Provide boot parameters for the spec_store_bypass_disable mitigation") Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Thomas Gleixner Signed-off-by: David Woodhouse Signed-off-by: Greg Kroah-Hartman Signed-off-by: Srivatsa S. Bhat Reviewed-by: Matt Helsley (VMware) Reviewed-by: Alexey Makhalov Reviewed-by: Bo Gan Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/cpu/bugs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -529,7 +529,7 @@ static enum ssb_mitigation __init __ssb_ return mode; } -static void ssb_select_mitigation() +static void ssb_select_mitigation(void) { ssb_mode = __ssb_select_mitigation(); @@ -639,7 +639,7 @@ void x86_spec_ctrl_setup_ap(void) #ifdef CONFIG_SYSFS static ssize_t cpu_show_common(struct device *dev, struct device_attribute *attr, - char *buf, unsigned int bug) + char *buf, unsigned int bug) { if (!boot_cpu_has_bug(bug)) return sprintf(buf, "Not affected\n");