Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp260718ybz; Fri, 17 Apr 2020 00:17:41 -0700 (PDT) X-Google-Smtp-Source: APiQypIQxmN7IAyjHa/VbeehOqQypOqsaaNywF/M3xm4HOTXN2k4Vj3lHGUnbe9QvksadnL589AP X-Received: by 2002:a17:907:40ec:: with SMTP id nn20mr1611339ejb.294.1587107861306; Fri, 17 Apr 2020 00:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587107861; cv=none; d=google.com; s=arc-20160816; b=hM7dX6rpERoEdIm41fSOSB9hiNuNcdxnSB4G95/AdsV7eAaNuKYmShjWrToq6CFaLz 967jx3rBjhj7rmjxhYRkA6j5n+Jp9H3mGcgSu7vXOif+fmDnikV3QjPzj49gKW5Cm5Qc kAUiAbA0lp0W+QmD0tKGZPS4sOBijKltU8gFI2GLmnWJRvgTt0IUHH1l8roGjTaRfOKt Lv4KQgu18Wqqab7WlyqTwgg4SPuFjO3qa3yu1jnqluZ02w8WKufGdCrJq+50MsNKJdpw 9hFZmNAYztiosVtaITjZpAJeOaQn9Tyy8b/nU3YvHHH68qhGtBd90PPjU1Z203vYRbqn 4X/g== 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 :message-id:date:subject:cc:to:from; bh=7YAMKkbOurRLbod9ZdfBRznxB2e05R74k4JL5Jw10mg=; b=L6h518gg4MzNRzg8YxiMfaUPr2m9kaLwGWKPc54mgljoo+EfBJFP5SwAQ3l3SSZtEZ oFNoQaQNcZM3ytX42OMB7Dbi/XxEoR7ZfvGpxCNWUPlbX7casNiTvOkvXy8hOZyqw+2h OpcySG3YR4cAePmGzf/3Rulb2WKgD6qLLyi8F3eA6vcl5veqmjtzKKRATBMjFvWrheKq FybNIFxms6TydrhdnTOvrzFa16eEc9vihVKeFZtt/4RBB4ogLlFCsG8gqPcPBlG2rX9S U/f2o+Z0H5D1gcVYaafaH0Kbl1irZy8V5LHmQ2mKI8AK28roqmEvZwrWaOQCkA/bv995 AdmA== 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 f22si12623321eje.123.2020.04.17.00.17.13; Fri, 17 Apr 2020 00:17:41 -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 S1728816AbgDQHOP (ORCPT + 99 others); Fri, 17 Apr 2020 03:14:15 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51094 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728159AbgDQHOP (ORCPT ); Fri, 17 Apr 2020 03:14:15 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1293738B17AEE043B47E; Fri, 17 Apr 2020 15:14:10 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Fri, 17 Apr 2020 15:14:00 +0800 From: Jason Yan To: , , CC: Jason Yan , Hulk Robot Subject: [PATCH] lib/test_lockup.c: make test_inode static Date: Fri, 17 Apr 2020 15:40:21 +0800 Message-ID: <20200417074021.46411-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: lib/test_lockup.c:145:14: warning: symbol 'test_inode' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- lib/test_lockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_lockup.c b/lib/test_lockup.c index ea09ca335b21..419fbaceba73 100644 --- a/lib/test_lockup.c +++ b/lib/test_lockup.c @@ -142,7 +142,7 @@ module_param(reallocate_pages, bool, 0400); MODULE_PARM_DESC(reallocate_pages, "free and allocate pages between iterations"); struct file *test_file; -struct inode *test_inode; +static struct inode *test_inode; static char test_file_path[256]; module_param_string(file_path, test_file_path, sizeof(test_file_path), 0400); MODULE_PARM_DESC(file_path, "file path to test"); -- 2.21.1