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=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 04126C433E0 for ; Thu, 4 Jun 2020 23:50:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B95012067B for ; Thu, 4 Jun 2020 23:50:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="cFo2tUT/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B95012067B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 65DA228004D; Thu, 4 Jun 2020 19:50:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 59ABD280005; Thu, 4 Jun 2020 19:50:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 439F228004D; Thu, 4 Jun 2020 19:50:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0206.hostedemail.com [216.40.44.206]) by kanga.kvack.org (Postfix) with ESMTP id 27EB0280005 for ; Thu, 4 Jun 2020 19:50:16 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id EFE5A3754 for ; Thu, 4 Jun 2020 23:50:15 +0000 (UTC) X-FDA: 76893175590.19.hate47_3a1232226d9b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id DAD071AD1B5 for ; Thu, 4 Jun 2020 23:50:15 +0000 (UTC) X-HE-Tag: hate47_3a1232226d9b X-Filterd-Recvd-Size: 2378 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Thu, 4 Jun 2020 23:50:15 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (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 A0DD4208C9; Thu, 4 Jun 2020 23:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591314614; bh=B0Ygg7EDCP3irvGQONK4d/wqotB+dmmlJlYXGpZf91Y=; h=Date:From:To:Subject:In-Reply-To:From; b=cFo2tUT/PndNmmq6vaXtB6nuqskYk5A6psiO6+ElGMugbjFzkdxQqyegmav43uUz+ mmg9MH3979nPFH/EcnD206GF32gUkEzppUaiNETEkH6DRp3t8/fv0T+gEfcLo03/GE IgwwBIBTNWro/BUXj2YeYSWjJUDHWo/YcwbnvFwE= Date: Thu, 04 Jun 2020 16:50:14 -0700 From: Andrew Morton To: akpm@linux-foundation.org, hulkci@huawei.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org, yanaijie@huawei.com Subject: [patch 077/127] lib/test_lockup.c: make test_inode static Message-ID: <20200604235014.T_maibrxy%akpm@linux-foundation.org> In-Reply-To: <20200604164523.e15f3177f4b69dcb4f2534a1@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Queue-Id: DAD071AD1B5 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Jason Yan Subject: lib/test_lockup.c: make test_inode static Fix the following sparse warning: lib/test_lockup.c:145:14: warning: symbol 'test_inode' was not declared. Should it be static? Link: http://lkml.kernel.org/r/20200417074021.46411-1-yanaijie@huawei.com Signed-off-by: Jason Yan Reported-by: Hulk Robot Signed-off-by: Andrew Morton --- lib/test_lockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lib/test_lockup.c~lib-test_lockupc-make-test_inode-static +++ a/lib/test_lockup.c @@ -142,7 +142,7 @@ module_param(reallocate_pages, bool, 040 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"); _