Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2892018ybz; Mon, 27 Apr 2020 06:31:08 -0700 (PDT) X-Google-Smtp-Source: APiQypJgtRzOnoJFQGI0PzNacq2cqzM/druGDhUmcdXiMeVgip8MlJfvYYofEGSPKsoZuCE6XZhJ X-Received: by 2002:aa7:c753:: with SMTP id c19mr17445776eds.21.1587994268692; Mon, 27 Apr 2020 06:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587994268; cv=none; d=google.com; s=arc-20160816; b=kLFy5LKpI0C4eNKUnl2uEHcwEjp5srPKORjjn3fCNQ02iBi2H9syX2FipxLpI+r23L RknyjmVZLkb41CjCKy+uVzBZVSrN71QqOdfoHTjUgEbiNa2D86Fn4b+5wsPBPyoy5L6p Lyhit4JS9pLEss5QxkUXQAGU0+dmDQ+eAbA53pG26SIS4vVZUu131tYReu3DN+NhvgiS eVQCE+Rnyy43gMqqI431IMkL6j56Jz/dXBLc/KOkzzip6KT9LMSFTA8X1j6JhfwQxJoa Rmj9+Oa4nXSxUmNnJjqoRK/zN1vU51cHLpF+7ykCvVEeTqmziyUDgMtqonp6uqkSe18s H98Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=+le2GIAhEIPI8xAIUs+VYbFLSXRRCHe5U0FQ2+oQmVc=; b=akaUjNCHfDt75lAP64dYihGMNeLF9JDF0VJGcMEJ0I875UTZPQgfbuKpLMNmO0nM8v bqovqc2ruP+jKco3sm7rDru6fOf4/ZZzQas7++vLXwGYfhWbu6SMk3kHuiHUqa46h+Fe ABU/YTdM1JgdIoTIFWaAbg7IX1nKjZgIQIQodCP2lU8RdYIswYH1IAC3fiumRtO4Y45h Sh9q88wF7Rz7XtPV7ghSj1+lnmKhMNL2quD8uUhxHzhHD+raigzHirnFvTkpJGC4wEyE hcfIbjAAkoarW9OLFoHl5pva1bnNrlqTOhh5UNlPBGwChiMvxqs7EMtCJdmK2NHxkIbw 3WiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex-team.ru header.s=default header.b=Gt7agO8G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex-team.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si8016908ejm.271.2020.04.27.06.30.45; Mon, 27 Apr 2020 06:31:08 -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; dkim=pass header.i=@yandex-team.ru header.s=default header.b=Gt7agO8G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex-team.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727077AbgD0N3K (ORCPT + 99 others); Mon, 27 Apr 2020 09:29:10 -0400 Received: from forwardcorp1j.mail.yandex.net ([5.45.199.163]:48874 "EHLO forwardcorp1j.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbgD0N3K (ORCPT ); Mon, 27 Apr 2020 09:29:10 -0400 Received: from mxbackcorp1j.mail.yandex.net (mxbackcorp1j.mail.yandex.net [IPv6:2a02:6b8:0:1619::162]) by forwardcorp1j.mail.yandex.net (Yandex) with ESMTP id 12F502E09A3; Mon, 27 Apr 2020 16:29:05 +0300 (MSK) Received: from vla1-81430ab5870b.qloud-c.yandex.net (vla1-81430ab5870b.qloud-c.yandex.net [2a02:6b8:c0d:35a1:0:640:8143:ab5]) by mxbackcorp1j.mail.yandex.net (mxbackcorp/Yandex) with ESMTP id K3H49cSzVI-T3nGq4Ee; Mon, 27 Apr 2020 16:29:05 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1587994145; bh=+le2GIAhEIPI8xAIUs+VYbFLSXRRCHe5U0FQ2+oQmVc=; h=In-Reply-To:Message-ID:From:Date:References:To:Subject:Cc; b=Gt7agO8GSR83RY2ebFES+sFW0fv1czwqHlihg+F8LIA5J2yXRrBJkD4ssr6xJUc5h LgGIr5lratnhNYBwTSIubala5q0c0ry8AJVXefMBC6tmw6vIJHa7puF4xUyoZevOKM ib+VJHUY4mTk9QX5eepww/6D1d7gx/js9CvIn1nQ= Authentication-Results: mxbackcorp1j.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Received: from dynamic-vpn.dhcp.yndx.net (dynamic-vpn.dhcp.yndx.net [2a02:6b8:b080:7208::1:1]) by vla1-81430ab5870b.qloud-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id xq1YpEXLXr-T3XS2fxu; Mon, 27 Apr 2020 16:29:03 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Subject: Re: [PATCH] lib/test_lockup.c: make test_inode static To: Jason Yan , akpm@linux-foundation.org, linux-kernel@vger.kernel.org Cc: Hulk Robot References: <20200417074021.46411-1-yanaijie@huawei.com> From: Konstantin Khlebnikov Message-ID: <4b210d34-5dae-63c7-4fde-3332b99b0159@yandex-team.ru> Date: Mon, 27 Apr 2020 16:29:03 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200417074021.46411-1-yanaijie@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/04/2020 10.40, Jason Yan wrote: > Fix the following sparse warning: > > lib/test_lockup.c:145:14: warning: symbol 'test_inode' was not declared. > Should it be static? Yep, but that's not so important. > > 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; Why you're fixing only this warning? =) test_file above should generate the same. > -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"); >