Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp43073rdb; Tue, 16 Jan 2024 14:25:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxyphXC5uTBSH1gTRIX9MOVf7cCrV5dxm6jQidBYf6pa/u1VJGHGRds/ebnTyvyl7JLddY X-Received: by 2002:a25:ce8e:0:b0:dc2:3c18:7ff1 with SMTP id x136-20020a25ce8e000000b00dc23c187ff1mr58605ybe.112.1705443938946; Tue, 16 Jan 2024 14:25:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705443938; cv=pass; d=google.com; s=arc-20160816; b=bktaAjwc0qJuB0jhqInoaHP/CVO6h5arx3RjEZoT5o6X+BANi/8hYxwL9b+ndbhzgK +yP/KGBG1zXAGJ3+LtmbP/yLhQcsRbAENOeCJcYDJnW5hnCc+YZ4S9g720bsYOXHjrO7 meUC1n1c+G571QEBXitsfVf1N7TgDgWtBUPUTj3HPZD/ZmWc7XrlEn+HjCM1F6uUiiUo 6Kzhs3Drue6Sj9YOW7zh3tUM87IfjANMQHp0fIfirEomosS3c77sysqjRUGGTw8G5LO8 co997dfHL1glfiLW1gGFRr+Vb2d7BHJF8x2plIOg4u419KrqJ0Mv0+9GIF9CHp6HTXPy 94ug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ucvEqlwX+aOdzo8fM1tdvFKFaldc4mizPJaj9Q2q6P8=; fh=hLv/k0qCkuzDKgmJLEetmv7nQJwzGUHWtM5AmoR2WxM=; b=f6P04TdX70wKaeU3Vyc6f6C2jLCi91aI0CBULOdr4RTlo0TQK7EPzsdHXYfmpTvsLD e3+EqNeJaTjDhDJhlqQmBK+mpUN8yZoEUKnDJcAPKQDjLhiGaLWHg0M3BSDcFtd25VEM ikefKHFWLTU0JvQLEF8sS1xaoJPBTnkA3yU/WgsW2+9w11CFv1kMfTjWWRTL7O+Klqoi 6WY/yLq717tDAsSrjbyOoB7kpLgV5qK9RhKD5r4XDilS7t4pblDjsTiAmSUcOI/JvG7q E5t/jnaKA3rKham8vgecLXUDOHdZEchTYEcaewYcdFajpLXsxvfrmPeZk41Da8pwFo74 5PNg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Pa4l/4jb"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-28294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d2-20020a05622a15c200b00429d70d7ccbsi7516187qty.198.2024.01.16.14.25.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 14:25:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Pa4l/4jb"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-28294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28294-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A40631C25854 for ; Tue, 16 Jan 2024 22:25:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C2DD2E417; Tue, 16 Jan 2024 21:25:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Pa4l/4jb" Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37B8A2E838 for ; Tue, 16 Jan 2024 21:25:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705440348; cv=none; b=EEJ2SjTUb+8fHpOiFu5GweDp3KzfQc4mRWfdgQlLSrOa3BOU+u+8MDDLCQgvwB2+i+0hLCeK7l9ZIWgEAi7nxWLliFKq0lnfZmGiU9LmeOWCtDtYRrHxYU4XHUvQiMtNGJQ2jmORErUpzy5BboDAdMVCsaM+yZeWXT7746EYj3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705440348; c=relaxed/simple; bh=cTjaRffZLcdMx559tIlNBKaL3/5s/glalFdFLVPX+g0=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:Date: From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=hv3eaV0qK0npWcCQ+F4uZQjK5kpQcU9rhvTT9fu/w3SLIq+vyxUJpYVQnSaBxvIvxitRuYPxnDt8wTIcEWqNa7SgoRkREt5quP0FeCcat3G+eKEqzw0RBEPLzhoGexyqeROxcL5i80yiixqUOQJSsmJXLsdT29QuEzaR/eFfWN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Pa4l/4jb; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-3368b9bbeb4so9187381f8f.2 for ; Tue, 16 Jan 2024 13:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705440345; x=1706045145; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ucvEqlwX+aOdzo8fM1tdvFKFaldc4mizPJaj9Q2q6P8=; b=Pa4l/4jbNZBWmIxS9DcbZy5oInrhX7wifog2FBHrgbSZnm5LwfP2UypzBhemaJsH1y a24eLEveqcwNtUL1hT29HlCI2iHjPiaVGvPjAwwJtWVTn2rl/yK5dekgd39x30kKez89 WacJFlU9cRY73yWPZC5cDymWwpHNW3MwBZyglioFafMo7uHSwHU+KKt5VBb2uxk45sjH JLk3ATAJ5Tj2GvLof6RxRgJmmuHPh9VMvFbmeyPlgYV+1DMJktQ+BHNI1Y5kscpMWcco iTFfs4GNWs3iAJ5ZVEVmCKGvpzKZQku8a7TFTsRoY8haZVIa6pcmzY8MZkQVmVcIqROn REnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705440345; x=1706045145; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ucvEqlwX+aOdzo8fM1tdvFKFaldc4mizPJaj9Q2q6P8=; b=TRkcXyhFZ1ZHzcb+tPAEZLL81I5vttDvVXMPWd5FUHm5PtfNigW3LWR4RJc5W32fGT e5891B9EN1XCV5G/amW5SU//6o99wBuI1+Xp+15EBi+qrEiDU9FymdfRlClcxvIczIfF qXV7nnkXBtzs8TCbU6rWD9+fSNyva6PQ3PAagMudS/CB7IDk8pF+Ia7NaNc97FqhSpkR 4q/ijuD11T/xxQ//GTvm+3FdxpgX28ZHUhGjNxNkwHpn6uZRkcdfkBT8JVOrQQ0Q/4c5 tZYJZQk2sHJrNFUETyuI1HPzyVQLpt7xqQv9sMXZTOxaQLL5s2xl/m12+ydKBG14B5tJ s+3w== X-Gm-Message-State: AOJu0YyDm54DhnK5kXdHVbE4NmyjMzeUrEtkbJ3z6Wd1PApZc13p/zPF A7S22/ys1M5HXvdU/Lbasl0= X-Received: by 2002:a5d:6d05:0:b0:337:8bc6:dc5 with SMTP id e5-20020a5d6d05000000b003378bc60dc5mr2657084wrq.165.1705440345062; Tue, 16 Jan 2024 13:25:45 -0800 (PST) Received: from localhost (host86-162-136-255.range86-162.btcentralplus.com. [86.162.136.255]) by smtp.gmail.com with ESMTPSA id z6-20020a056000110600b003367a5b6b69sm61968wrw.106.2024.01.16.13.25.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 13:25:43 -0800 (PST) Date: Tue, 16 Jan 2024 21:23:29 +0000 From: Lorenzo Stoakes To: "Uladzislau Rezki (Sony)" Cc: linux-mm@kvack.org, Andrew Morton , LKML , Baoquan He , Christoph Hellwig , Matthew Wilcox , "Liam R . Howlett" , Dave Chinner , Oleksiy Avramchenko , kernel test robot Subject: Re: [PATCH 1/1] mm: vmalloc: Mark vmap_init_free_space() with __init tag Message-ID: <6d09807d-0476-4d9d-8753-dd6520c9a2eb@lucifer.local> References: <20240111132628.299644-1-urezki@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240111132628.299644-1-urezki@gmail.com> On Thu, Jan 11, 2024 at 02:26:28PM +0100, 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; > -- > 2.39.2 > Looks good to me too. Feel free to add: Reviewed-by: Lorenzo Stoakes