Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp456871yba; Wed, 15 May 2019 04:26:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVoyCFF/M+mEz22bmkh39vVPXeXRAuI4RPstInDAx50zyZlU7cODJTax2dQ7sGiAGsExom X-Received: by 2002:aa7:8493:: with SMTP id u19mr45742793pfn.233.1557919582671; Wed, 15 May 2019 04:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557919582; cv=none; d=google.com; s=arc-20160816; b=nSttL8c01lp4a2ZCu7PK1lBE2mfEWo1tmXdrS5LnZ4K8AG0DoFh6HPNsLwvbkOa0V1 ongNQIOBaFgaxABkplA+tMkGsSXwxJVw2eacvmZGY8QgV9t0XUJXA6Ng3TiW3cu2QXcC pQaXgCyyJCpvSFuOyXf32IRmn2p6WOGEplXuz7+eA9ZGxpoygvS5SUzyyCwNUiBxwHFB 1kewNJTaY/7VvWaRUQXLwR35QkAdbjXtVewAZv8/2dt4dVxhsXquz3JvhH2MaUTFg66y VFqB9arbhL7zdKwRj/TXN8NnKsjxyNQZ+JNyiYJ2LpCmc+unWT3BEMVpQhRS3LeAVD15 b3lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=m5QLIfR7UvtjdfDIp6xYN4lcsDoHyyfA4+FzUYt+LQM=; b=qefVdfewDVlS0pzZcLpn+ImtdaOAgY1jUSA3EZUaDn0ZpTfTWjwwyvdOIdAraynEXG B/3y1Kitl8RdLyqhPoydS0+URweoFr2N+PUmkvDPrFVFm399HxUDutkT03WKhBEj24R8 8YzdJgV7U6rJx/2ELX6Df3VEUQGylC/WQm642Zu9m5spPdz5Ys2r2QZ9K01YA5EFz8OU YWhTNifTYisSshb62o0ZGS3jFFEneQfUWTFppfJ6uMdaWKvqUQ6XbpmdfITOX/aVT5hl AoVr/m8ymsx0AOscIMSJ520RufZTQB6y9IOBKNkZoEZgDE+LdvJLtVUFSfKPIwD84q+b OiNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fJsGwV+U; 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 v4si1504607plp.404.2019.05.15.04.26.08; Wed, 15 May 2019 04:26:22 -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; dkim=pass header.i=@kernel.org header.s=default header.b=fJsGwV+U; 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 S1731892AbfEOLYv (ORCPT + 99 others); Wed, 15 May 2019 07:24:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:35462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731874AbfEOLYt (ORCPT ); Wed, 15 May 2019 07:24:49 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CAC3220843; Wed, 15 May 2019 11:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919488; bh=CwKmjeNc1xs6XBSFabOt0+UWXuBe99oN0HyQ1p5eFkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fJsGwV+UxBb1JmJn/UpXUWrdEzDhzohWqAqMByqX33FLEK3HagcbF7rW4zx7AUWJL Tn6sPJEllxSPLy2b/eCQsNGJe2/SDuPxztoX4qgy3DvDGMWtq+nbjd4yHa1aNc5l2v estynlbh/XBZ7kIRCsEBcr4yo3cL5BzFcMF2NPeA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Breno Leitao , Michael Ellerman , Joel Stanley , Nathan Chancellor , Major Hayden Subject: [PATCH 4.19 087/113] powerpc/64s: Include cpu header Date: Wed, 15 May 2019 12:56:18 +0200 Message-Id: <20190515090700.266144541@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090652.640988966@linuxfoundation.org> References: <20190515090652.640988966@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Breno Leitao commit 42e2acde1237878462b028f5a27d9cc5bea7502c upstream. Current powerpc security.c file is defining functions, as cpu_show_meltdown(), cpu_show_spectre_v{1,2} and others, that are being declared at linux/cpu.h header without including the header file that contains these declarations. This is being reported by sparse, which thinks that these functions are static, due to the lack of declaration: arch/powerpc/kernel/security.c:105:9: warning: symbol 'cpu_show_meltdown' was not declared. Should it be static? arch/powerpc/kernel/security.c:139:9: warning: symbol 'cpu_show_spectre_v1' was not declared. Should it be static? arch/powerpc/kernel/security.c:161:9: warning: symbol 'cpu_show_spectre_v2' was not declared. Should it be static? arch/powerpc/kernel/security.c:209:6: warning: symbol 'stf_barrier' was not declared. Should it be static? arch/powerpc/kernel/security.c:289:9: warning: symbol 'cpu_show_spec_store_bypass' was not declared. Should it be static? This patch simply includes the proper header (linux/cpu.h) to match function definition and declaration. Signed-off-by: Breno Leitao Signed-off-by: Michael Ellerman Cc: Joel Stanley Cc: Nathan Chancellor Cc: Major Hayden Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/kernel/security.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/powerpc/kernel/security.c +++ b/arch/powerpc/kernel/security.c @@ -4,6 +4,7 @@ // // Copyright 2018, Michael Ellerman, IBM Corporation. +#include #include #include #include