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=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 5B394C04E53 for ; Wed, 15 May 2019 11:13:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1FFE02084F for ; Wed, 15 May 2019 11:13:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557918806; bh=xQWJvhUWOCUfqGEpbljHBdQAtSO3UWwxklGIO0XC+y8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=yC7schTLu19ZoDbCNhtPxfFqNIjeyCyVe4tOcVz+/qri+aX++7ff401shMftgk6zB 5NzRANlHNTn8/0M8ShIkLdBdWBclsGeT8wW2y8f5wqblvdA0k1oY3s/Psg9X8idTn3 mGKYZlrdaREaB8tIfydwO7UT+DY5AUpJ8GdGbVaA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729966AbfEOLNZ (ORCPT ); Wed, 15 May 2019 07:13:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:49046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729954AbfEOLNW (ORCPT ); Wed, 15 May 2019 07:13:22 -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 CA36D20644; Wed, 15 May 2019 11:13:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557918801; bh=xQWJvhUWOCUfqGEpbljHBdQAtSO3UWwxklGIO0XC+y8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SjoG19G3xHkcO6cv1fOJzYUPJKxzw3+/HVLL9c5AP5jdYDwXiFuixEruFGDGzQZ8X Mpr+1eNzO9isA2lDb33N61qOGPPLSbkVoZOYGNlCjGAEgAK4IC1/ed9QTSjK6h6EJ2 WgtGR3y0D2tVE4RByJc/RebFag8vB7NmTBqB6AZk= 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.4 256/266] powerpc/64s: Include cpu header Date: Wed, 15 May 2019 12:56:03 +0200 Message-Id: <20190515090731.676191139@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090722.696531131@linuxfoundation.org> References: <20190515090722.696531131@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