Received: by 10.223.176.46 with SMTP id f43csp166714wra; Thu, 18 Jan 2018 15:34:53 -0800 (PST) X-Google-Smtp-Source: ACJfBovzSg6SVrF/bIS5rYNLjBFkuai8N4cZD3njzZE2ChX9KokJIx39mE6n63WC2R5l6OQt9K1j X-Received: by 10.99.178.19 with SMTP id x19mr6452206pge.31.1516318493566; Thu, 18 Jan 2018 15:34:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516318493; cv=none; d=google.com; s=arc-20160816; b=H+Bb3RML4mVowBhBqF9Z/M7CYJsOVZXLBmEaXCR1U/QMFRuF93g1xEWHisCkH0B1cm 1i3wkh0+aaER/vZZRy0Ekwy4bnOYaCjwhvA5HP5yjGBHqA7oM4WOhGl513hMzLnkzMxa OS4cIhkwO+6/gk66VJbh/sxoeI1POUUsqbrsjGIb8xv2qRPa9Teh7nbt6OzDQ0S0Ihat PvP8faUMlse+0BaWYmoev4oqGguKKADpbmA1wYVGDKk28Q1K9MZOe9Sfkf3G3AcxA4yK yQz0vhw7otFiQA61Va1n0c7aV+NMjiCg5b+Y4+ASJ0eBb0mNgfk9N71TnUXE13XNSY7X SS4g== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=cpJlRFsfp1FTOlt3kJbHd0nhojohB08KQ4OVpUJIKHQ=; b=Hk9t3rEmlUrgjUNZ/l+9ayVjMWhazEVdPil63pStt0JaJv3tU3/skJYEOUfONlFuz9 RYsyEhqxlSiQyRwsL1pRsvFDQwZaqyfIaaMdlm383IohVVGDjQpCI+1boxW6zGcT1g0p qAKSyH39UEVOTw0bSxUlAlRpfQsAG8goEh+X1EvXM1CSe8OdrSzfrZmRP3BD7vXB6OIS 6cqLL2WvwNl5j1xf/uld4l7kLwrs7WHPc10Vx71JZkWmUxQZeitlCaaRdJ2UGgF3giuw ne5ROhIj1e0jXl+G2fBC9YGDUFs77lm3MZbk/6DgGZkeRrZ+PoUJcb3fU+TzX3ETdz3o EGmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 27si7975359pfr.19.2018.01.18.15.34.39; Thu, 18 Jan 2018 15:34:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932724AbeARXdj (ORCPT + 99 others); Thu, 18 Jan 2018 18:33:39 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:34754 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932674AbeARXde (ORCPT ); Thu, 18 Jan 2018 18:33:34 -0500 Received: from [192.168.1.8] (unknown [181.67.35.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: chrisadr) by smtp.gentoo.org (Postfix) with ESMTPSA id D18C7335C31; Thu, 18 Jan 2018 23:33:30 +0000 (UTC) Message-ID: <1516318407.2510.76.camel@gentoo.org> Subject: Re: [PATCH-next] init/main.c: make local symbol static From: Christopher =?ISO-8859-1?Q?D=EDaz?= Riveros To: Tom Lendacky , Randy Dunlap , mingo@kernel.org, akpm@linux-foundation.org, tglx@linutronix.de, keescook@chromium.org, lauraa@codeaurora.org, rostedt@goodmis.org, mhocko@suse.com, tal.shorer@gmail.com, viresh.kumar@linaro.org, lokeshvutla@ti.com Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Date: Thu, 18 Jan 2018 18:33:27 -0500 In-Reply-To: <30828c91-a39d-6342-2774-32386baa30b6@amd.com> References: <20180118220629.25116-1-chrisadr@gentoo.org> <9f473c55-7304-dda3-dea4-2734292927a6@infradead.org> <30828c91-a39d-6342-2774-32386baa30b6@amd.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.6 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org El jue, 18-01-2018 a las 16:31 -0600, Tom Lendacky escribió: > On 1/18/2018 4:09 PM, Randy Dunlap wrote: > > On 01/18/2018 02:06 PM, Christopher Díaz Riveros wrote: > > > Fixes the following sparse warning: > > > > > > init/main.c:167:12: warning: > > > symbol 'envp_init' was not declared. Should it be static? > > > > > > Signed-off-by: Christopher Díaz Riveros > > > > Does the kernel build OK after this change? > > I built it a couple of times before sending the patch, now I compiled it again and everything went ok. > > What about the other user(s) of envp_init? > > It looks like it's referenced in init/do_mounts_initrd.c. Rather > than making it static, it should be declared in .h file. > Ok, I'll try to figure it out, akpm accepted the patch in mm-next but was dropped because of testing failures. I'm still very new to all of this process. > Thanks, > Tom > Thank you both. > > > > > > > --- > > > init/main.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/init/main.c b/init/main.c > > > index a8100b954839..ae86addb306c 100644 > > > --- a/init/main.c > > > +++ b/init/main.c > > > @@ -164,7 +164,7 @@ static int __init set_reset_devices(char > > > *str) > > > __setup("reset_devices", set_reset_devices); > > > > > > static const char *argv_init[MAX_INIT_ARGS+2] = { "init", NULL, > > > }; > > > -const char *envp_init[MAX_INIT_ENVS+2] = { "HOME=/", > > > "TERM=linux", NULL, }; > > > +static const char *envp_init[MAX_INIT_ENVS+2] = { "HOME=/", > > > "TERM=linux", NULL, }; > > > static const char *panic_later, *panic_param; > > > > > > extern const struct obs_kernel_param __setup_start[], > > > __setup_end[]; > > > > > > > -- Christopher Díaz Riveros Gentoo Linux Developer GPG Fingerprint: E517 5ECB 8152 98E4 FEBC 2BAA 4DBB D10F 0FDD 2547