Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5768841imm; Mon, 23 Jul 2018 05:52:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcF4tdZj5udzW0guUYrssEKBJl9C3Ya9BWI+XQSOjcYAv8o0aqvBfO+bp4sz6TJbgYrZfbK X-Received: by 2002:a65:448c:: with SMTP id l12-v6mr11734145pgq.277.1532350373958; Mon, 23 Jul 2018 05:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532350373; cv=none; d=google.com; s=arc-20160816; b=gRKkuZr6Wz7k6HMQZRB5/QnNJyJy3maBYDOtoc5UtZfu+zd1P6Herwc+IgOTBml3VV UXwVT7dY8H8X6dUdKokPfWgrit9iOVLS/VozgBw5SRwWXG8mza3CAeHHK0mjAXCqy7g5 Kmr6s00e1+n91G3068tFLNZ4nWSK02qjMhn+MnCqHjYBoYsDRCjBvhAto9DbcxYP8qfy pfLTd5CoF9Vwi+grtfqXvdLxLrTH9FlZqWRsUWGKp+A9MsBVBuqTQ3mbiNXoHrV5kyLs X/RL4lMx7krSpkk4g5se9WXFQj3ouomcaoxLvBlisphS36mhBTFr2X1yUygU5ntDANXb 06yg== 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=cFJFtNwPvjOV90hOc6WP65Tf2cne+h3b4mMw6cHLx/c=; b=GnCFaQTGrjt1Hw14Ds/VM5Fjaw3LcEFcxDwwUZtCnXgi7cBubACN2i5w9Ry+w6f65K 0Ki2TibLjG5AymsWphVdlcCamufwpNkb7hxZCiH9rmjvEC1rKSlBUmw4dsnKhnbcKlHd mNoK/4Xi863PJCv2Xi9v8/vU2YwxGJ6t8XIJlO6yX2/QYcjCCAhjtMj8Ojus2amnjU3o 6ycXZDhrqT2ABy5f95CmvWDJynyabktSb/sLlsq50tubhgthdwcf00ZJVV9RFhdFCpdx 8MM/lZNbNaBA1aAFuYMsYy/6441kJo4FF8Cwn07+MT5w7qttjVtAFCB182ZN4LPl2IDh uc3w== 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 f5-v6si10164111pln.414.2018.07.23.05.52.39; Mon, 23 Jul 2018 05:52:53 -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 S2388818AbeGWNwF (ORCPT + 99 others); Mon, 23 Jul 2018 09:52:05 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51200 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389480AbeGWNr4 (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 D97CBC9B; Mon, 23 Jul 2018 12:46:06 +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 080/107] x86/bugs: Make cpu_show_common() static Date: Mon, 23 Jul 2018 14:42:14 +0200 Message-Id: <20180723122417.420883587@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 7bb4d366cba992904bffa4820d24e70a3de93e76 upstream cpu_show_common() is not used outside of arch/x86/kernel/cpu/bugs.c, so make it static. 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 @@ -638,7 +638,7 @@ void x86_spec_ctrl_setup_ap(void) #ifdef CONFIG_SYSFS -ssize_t cpu_show_common(struct device *dev, struct device_attribute *attr, +static ssize_t cpu_show_common(struct device *dev, struct device_attribute *attr, char *buf, unsigned int bug) { if (!boot_cpu_has_bug(bug))