Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp204617rdb; Tue, 16 Jan 2024 22:08:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2LEKzWfyiMjAz3CZyzlrgWXHDk+YJGhVL/mGN4J5DVoExd+tLOACR0MrBFi0yWjKGYrxG X-Received: by 2002:a81:cb06:0:b0:5d7:1941:3562 with SMTP id q6-20020a81cb06000000b005d719413562mr7001126ywi.73.1705471732005; Tue, 16 Jan 2024 22:08:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705471731; cv=pass; d=google.com; s=arc-20160816; b=GQcEUfo0AFbpKD1u+6HDr/YhSaQc+ZTx4I+fr+1oRbHNJ0Yq+dxY+xwYk8mR9gZmBL kyboisGb/zBRLSRf9VK59Bz10+OmHIAsKh9qigpIOY6O6nP3Omag13D8/aLu8/vaNK/x YjoSZ762Rd54nsyR6cXm5esKjIMMMUm5dtJpUpClKxUIMO9kyQ+HHI1vfM2xFKJgj7yX uYAAiESUVivect/HY2SHuPLL9ARUlU6pu4zjm/cx6K8uWwJFoVSAHLUcnDqOWBJJ9ARd OpZConucYR9HV6HvfJk3XzN2THW9Q3Z1dM2T41nNycbU0j3j+dWg4RvAthA8wXxHUFFh 3Vxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=WsgyKL9PczYyOrDsBHnovNVUPbhmOFEnsK7nkArtanc=; fh=H6CW+Gbiw1lL5cvgR7ovqVv1bUG8Ccb+RD+i9YowSjA=; b=n87HqLcuf4kldRLK3suo9L5hXzz5ZSCZ++R9KpkXEvAzX20RY/QWJtZTDvjLbcCd9X dwKV0fQVyhRsxm7A08Oy9jegLcCeQp+LUsby6n7ehmjV4tNgW2cidNFIGFRFkmZRFi6G sYrR1iTR7oXHeqHAyHHXCYsUNz+4KnExIukPL/tKSXejcE7Vih3LlbOk4xskVk7vz4QI EpCmMjdJuF0Y8eBzDzUh5DkE5ITHey4yKmE2hPDVzs910SfBoeLDmSC67a+Ws4qea3jk k6l44zBVF6MsV5TZyEks38R7d1tg/qKm+d1hAd1Mi6ovV5vnoh1GzTlfodXbxgLUDJW+ tgTQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-28550-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28550-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lc3-20020a170902fa8300b001d6e4b0aa67si1533764plb.130.2024.01.16.22.08.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 22:08:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28550-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-28550-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28550-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1B9F1287B5D for ; Wed, 17 Jan 2024 06:08:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 886CC8BF6; Wed, 17 Jan 2024 06:08:45 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 892CF79DC for ; Wed, 17 Jan 2024 06:08:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705471725; cv=none; b=R1wAqJHDzlfp5bNmzQFbrBtaZVVdNcnUBPUBikuRegZxzILAyPvSBQWeAtsTar0WMrcB6PVLukig+pzXKopxb6suNyAi9lUlHZsEPBIQZmABrIPbX7ZDHaVUPzGPxxbbT6vr8xAPKYi9WaswvhLQeEAz419+nDscHW7ypud/LTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705471725; c=relaxed/simple; bh=FncW2w5rE4J4VfxL3D735D8mU5IalNeYnlrhqqiHJA4=; h=Received:Received:Message-ID:Date:MIME-Version:User-Agent:Subject: Content-Language:To:Cc:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=WdlE5DItra27anMlqwUEpqUUAq3rVp2BjimFb89vHhqByKMD8vrtey2YBge03YkzWYykiaDW0YIlfTBHpXwkGVcccb33XE0yiVD5Y27Z9kR51sBree8eCRTKfA+eaAUQVXKniCDrapvB7tsD10aZiY+4OTXuvF4knNCDkZuGR68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E4AD92F4; Tue, 16 Jan 2024 22:09:27 -0800 (PST) Received: from [10.162.43.8] (a077893.blr.arm.com [10.162.43.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F0E4D3F5A1; Tue, 16 Jan 2024 22:08:32 -0800 (PST) Message-ID: <7d6590e5-0e5f-4d01-8bd3-2e46f6951e53@arm.com> Date: Wed, 17 Jan 2024 11:38:28 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] mm: vmalloc: Mark vmap_init_free_space() with __init tag Content-Language: en-US To: "Uladzislau Rezki (Sony)" , linux-mm@kvack.org, Andrew Morton Cc: LKML , Baoquan He , Lorenzo Stoakes , Christoph Hellwig , Matthew Wilcox , "Liam R . Howlett" , Dave Chinner , Oleksiy Avramchenko , kernel test robot References: <20240111132628.299644-1-urezki@gmail.com> From: Anshuman Khandual In-Reply-To: <20240111132628.299644-1-urezki@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/11/24 18:56, Uladzislau Rezki (Sony) wrote: > The vmap_init_free_space() function is called only once > therefore tag it with __init. Apart of that it access the > "vmlist" variable that is located in ".init.data" section. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202401112056.I41bELL4-lkp@intel.com/ > Fixes: 86817057732 ("mm: vmalloc: remove global vmap_area_root rb-tree") > Signed-off-by: Uladzislau Rezki (Sony) > --- > mm/vmalloc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/vmalloc.c b/mm/vmalloc.c > index 43a6608e1397..257981e37936 100644 > --- a/mm/vmalloc.c > +++ b/mm/vmalloc.c > @@ -4834,7 +4834,7 @@ module_init(proc_vmalloc_init); > > #endif > > -static void vmap_init_free_space(void) > +static void __init vmap_init_free_space(void) > { > unsigned long vmap_start = 1; > const unsigned long vmap_end = ULONG_MAX; LGTM Reviewed-by: Anshuman Khandual