Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3065694pxk; Mon, 21 Sep 2020 04:31:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmscSMACcVnGJyygF2FuBlLKnIrAHFxCj1lr9lU9UVfuhW3sS2SFNpympA2787ow+/I9Ee X-Received: by 2002:a50:ce4e:: with SMTP id k14mr27097907edj.177.1600687919031; Mon, 21 Sep 2020 04:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600687919; cv=none; d=google.com; s=arc-20160816; b=lpGubtGXX6gtztdQkwZDy6aolzrBCHT/6/N/4hvx5feVcpDPnbaU/OorhGTmvDi9xA yiIskXNVXNeH2VxSfRE7MWflYyNDfYAPPtuCe+T0j9ob7ghcFlw8rZQDXZ/3JfkCZ43+ 3z/4x9sBCCf2IZMFV2FxtDkb0lmB+aNH+IeGJyHkq/LwFn+0PKHgiuHdTMYlgVok9Spm ztCzWNT0IzRpHukVr1jL6L/o+aqiGPzEOr6roCPgZIvvUIDnukSSZmKO7JcSs6cjzNuH AQ0GhDNyyyEYUjGed1ZawX79R6xyjFbSUbascQvBeDdHE3Gh+ojyB79webFQmxUoPbNc 4wRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=I0zYguf0VS+5fz6GPyfEhL3dhFmw8J7afuE9FlARaE4=; b=bIrtviKRvVsdWg9gA/ueB2kXCALWWy/vF767f6iI6+tiDFDDUoUdsWJGVMvN4JRmLj pCnJGjQJDKg5TNEVqKv5WWaWtHf7tXALztR4v5IEidIuw+EWFs2eK1/jURUpfVYpa/b9 TXTYBns303L9JNUTZTXLEQ59VMocMFc3DynnJDOfNua5uw32eoz0RM3WwyH3xOuDtxiT juz6IdVJydBjSWQhTCLui0h9/QIyF6FXYjBbk9aDcvUe68w4qZAIlzgGrW6ikLjemnOr mBhespkGIi6Uj+b9r0VY3HYYBI8SF+4stFu4DurtpIHg5Mg9UIsfvtC30zkMkeQJ+gJ1 7RgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx15si5580846ejb.658.2020.09.21.04.31.35; Mon, 21 Sep 2020 04:31:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726652AbgIULaf (ORCPT + 99 others); Mon, 21 Sep 2020 07:30:35 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13795 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726457AbgIULaf (ORCPT ); Mon, 21 Sep 2020 07:30:35 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 7D983B3294659409B620; Mon, 21 Sep 2020 19:30:33 +0800 (CST) Received: from huawei.com (10.175.112.208) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 19:30:24 +0800 From: Wang Wensheng To: , , , , , , , , , , Subject: [PATCH -next] powerpc/security: Fix symbol undeclared warning Date: Mon, 21 Sep 2020 11:27:45 +0000 Message-ID: <20200921112745.85968-1-wangwensheng4@huawei.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.208] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Build kernel with `C=2`: arch/powerpc/kernel/security.c:253:6: warning: symbol 'stf_barrier' was not declared. Should it be static? Signed-off-by: Wang Wensheng --- arch/powerpc/kernel/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/security.c b/arch/powerpc/kernel/security.c index c9876aab3142..fbcd5611a67e 100644 --- a/arch/powerpc/kernel/security.c +++ b/arch/powerpc/kernel/security.c @@ -250,7 +250,7 @@ ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, c static enum stf_barrier_type stf_enabled_flush_types; static bool no_stf_barrier; -bool stf_barrier; +static bool stf_barrier; static int __init handle_no_stf_barrier(char *p) { -- 2.25.0