Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5769508imm; Mon, 23 Jul 2018 05:53:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpecGUCzdiuh3oeCCj0GzQczOkdwwjaRkW6BUkfTdWGpkQYO28rvkdeapB+5aVWcqAap/y3P X-Received: by 2002:a17:902:e093:: with SMTP id cb19-v6mr12907210plb.189.1532350421109; Mon, 23 Jul 2018 05:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532350421; cv=none; d=google.com; s=arc-20160816; b=IQNO2BQsym/DQk7CgbToLqav7BoCiB2N66ctTvGGsKAmFkWPbnxbd1oxI4WqeAWplr YJzTHhg9Y+/wYlWh4nyrfB5qAz8grkJVJNMHGBVkh3jionagbLCeZumv1xcm4lzvT/J5 XKg+4tsP58Z9Plt+X9mIqxFU3235N5O0NsMOnR4Kdn6NBWhvOkFLGyXA5P3f+e0eXn4L 6/BNxqv6SgV9XpeSstEsem2TZOBeq95gXdiTzcglf+MQePcuWqdgaiWIdJ0aWMC47vlf zYTSoQDKjSXqF5lRg8t52nNy0E8f6dl9MBpIKo/2/gFcU4XoGcXboz0JYY4YbiOYj5dl 2Psg== 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=u3BVzyXqvjfWqmYdIHxLIFkyW98d5WV71FfkNhOjXYI=; b=SFVP1ul4/YQ6OFKsO2On3Aw4nRkICnuFVoix5uE4jBLtp2gcAJQzCn0AC7pNLkwjEB rYwJfKzcAcBUSoQ0Mx+vswcu5sHju9JFzojK6ZBaZi4imEwWHc4JWjXdCAzfvkjf/az8 LBB09/OEf2PA6praF3Jhk99It26rMzYss4IAEHy/bZtwO9yQFUJfB4/42jG1ONeaxK63 kTcXFWuZrwtVPLM0Jz78ZWufkZ6ip2qEjEQfdqFqlmX0triO+GXkkKILT4P7iWYsr/iw sNsBPCSKbzWLJBVf0vmC87uxnc9+qvHuGc913w7xmrDZ6ngv3J2t8fddrBzspe8NyQcj pIag== 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 65-v6si7662012pgi.195.2018.07.23.05.53.26; Mon, 23 Jul 2018 05:53:41 -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 S2388844AbeGWNwN (ORCPT + 99 others); Mon, 23 Jul 2018 09:52:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51470 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388658AbeGWNrz (ORCPT ); Mon, 23 Jul 2018 09:47:55 -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 256CAC8D; Mon, 23 Jul 2018 12:46:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Kosina , Thomas Gleixner , David Woodhouse , "Srivatsa S. Bhat" , "Matt Helsley (VMware)" , Alexey Makhalov , Bo Gan Subject: [PATCH 4.4 079/107] x86/bugs: Fix __ssb_select_mitigation() return type Date: Mon, 23 Jul 2018 14:42:13 +0200 Message-Id: <20180723122417.369987359@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: Jiri Kosina commit d66d8ff3d21667b41eddbe86b35ab411e40d8c5f upstream __ssb_select_mitigation() returns one of the members of enum ssb_mitigation, not ssb_mitigation_cmd; fix the prototype to reflect that. Fixes: 24f7fc83b9204 ("x86/bugs: Provide boot parameters for the spec_store_bypass_disable mitigation") Signed-off-by: Jiri Kosina 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -466,7 +466,7 @@ static enum ssb_mitigation_cmd __init ss return cmd; } -static enum ssb_mitigation_cmd __init __ssb_select_mitigation(void) +static enum ssb_mitigation __init __ssb_select_mitigation(void) { enum ssb_mitigation mode = SPEC_STORE_BYPASS_NONE; enum ssb_mitigation_cmd cmd;