Received: by 10.223.176.46 with SMTP id f43csp400591wra; Tue, 23 Jan 2018 23:28:09 -0800 (PST) X-Google-Smtp-Source: AH8x225vpgHHqBDZD5TZHrcAWK/2WNv+l6hp5a/apYuGI8T9V7Q40M4MTm0I0XJJIc5X5ikxO7Wy X-Received: by 2002:a17:902:7716:: with SMTP id n22-v6mr7423667pll.388.1516778889151; Tue, 23 Jan 2018 23:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516778889; cv=none; d=google.com; s=arc-20160816; b=EdKIOlrC5ogTWnXzkovbD3DxqqIJ2OIonRoSWjkyjPV6nEAMHLjU96/b0nyb5hY25f oqc9g6a7doMLAsk+yg5QBaUdlQgqjAHhvgZwFYQoV3oCtee+E24saZcUUDX1YrCdE6aY b8Y/pNjAVioa9xoMCrl018xrMnAnaVvjpg6orMBlLjlOTIL6Dh/neRL+q9OKG73aBOcU Z9PVQfpszZXrx2t+yYdTi6oej2MBfxx8VwfTInBwBb3VhHzsQrllCIEDaybAPdfvkSsF He3yYzEBHUmgh4jXnZQPrOwjuqV4lBtCFbLhNypb2iMxY3dBJNCD04UNEprq4QNWNwmZ 5ZlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=nYbd/dImqKIjZuqUw1YeF8PGwKUpzegZMAiv2XI1PVQ=; b=ogWRUv8IRqQJul6L0XeSbRTc4Nxa/Q1EOrgRVZsRWFOW/7xbB/YDyjziEOIiDwS+FH 4Vxvt1FDLGiINeaXU9cC6TxN6sVws3EPE75P+89UPYCW0TGEh95S9zMesSQH4fgCJmrE O8ig6Z7QPe858okg/7xcYLp3EUIhgXIt1CNuNPIj9qqT7w3LWzbDp7+JA+KkchPFg5mh j279PkDj7dmj2c8i8SPxHqK9X4MmpiCpAIDs6KMYer0mswIqO0nWlEX4dzC4CT/ZS+Tq TxgfRcXEBHF4KWRdQ+BkarEEM5xrLWAI+9BuenA1Sw7p2TKKmsiI4N4cj1XQXXY0Ql+N xb5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nEitd+l4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a92-v6si3456286pla.543.2018.01.23.23.27.55; Tue, 23 Jan 2018 23:28:09 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nEitd+l4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932487AbeAXH1d (ORCPT + 99 others); Wed, 24 Jan 2018 02:27:33 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:39512 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932108AbeAXH1b (ORCPT ); Wed, 24 Jan 2018 02:27:31 -0500 Received: by mail-lf0-f67.google.com with SMTP id w27so2605632lfd.6 for ; Tue, 23 Jan 2018 23:27:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nYbd/dImqKIjZuqUw1YeF8PGwKUpzegZMAiv2XI1PVQ=; b=nEitd+l4RdSE2siv1DPe5JbMUeMyzOOhNQsKPeVdf2Zgpwfu9GCG4QMc4h9UREfrFS jAZmAj+9JFE3PSfN+GdumDbRYfpR1H1pXkMAP5LW/dQLWMg0Om2xbdHVZShGvYqQSXau hpBgLzi57rORsZDL6TP04XlUU3d2RZbc8xtZi4+zk1lB99SwhZ5LNFX69eQwN5hvR5uR JHWVQmaKyVmOR8HnBezMGYm/gjYSX8mUt5KvWVfyA6Wvm/bx/1VjSptOMXWCK4kDNhIF XYd4AS7DabSfJ4g3Ou/SASX67ap0pDqfzkXzneYSZ1l4/a4jHUwZ7m758hKt7j4drLiO 4y9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=nYbd/dImqKIjZuqUw1YeF8PGwKUpzegZMAiv2XI1PVQ=; b=txo3FpPl0YdbHFdlhskEl+ALoVcJAgO0ZQiX/gDLUV2gyWScfrdi7t8fAZcWoeJjAi IsivJdbHP5PWMTtOdzpddBdcHGCO8nEiiX+hj3/aySNrckRbkWpLKWOXhx82OGzrWgSR 9fabcfG027lMSxV5oejXmNldsqtL9KXqRYildsVMCVhHpTy6QhPDr+NpuwF47yqkjQT8 HTZiQ2XkmJcrWweDlhUL9ZE0gyEbDEYaxyV/LM9+dHro+7QCwgys2rWjJNEIesUJl74l Z7nzEtEvnOfTAV73pmch10nHcYWwYvOFHrAZOVwdkXXuNG57iMDaWQJ0jllQjk56d3s6 xW6Q== X-Gm-Message-State: AKwxytenHt3vLfg6I/poWNh0kx9RM4kGRLk57YyoBz7Y91bGe7BNyaO/ kSY5uEnhUptc99cUlZMnTJQ= X-Received: by 10.46.93.130 with SMTP id v2mr2740899lje.63.1516778850467; Tue, 23 Jan 2018 23:27:30 -0800 (PST) Received: from mobilestation ([95.79.164.146]) by smtp.gmail.com with ESMTPSA id y198sm419045lfd.62.2018.01.23.23.27.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jan 2018 23:27:29 -0800 (PST) Date: Wed, 24 Jan 2018 10:27:43 +0300 From: Serge Semin To: Marcin Nowakowski Cc: ralf@linux-mips.org, miodrag.dinic@mips.com, jhogan@kernel.org, goran.ferenc@mips.com, david.daney@cavium.com, paul.gortmaker@windriver.com, paul.burton@mips.com, alex.belits@cavium.com, Steven.Hill@cavium.com, alexander.sverdlin@nokia.com, matt.redfearn@mips.com, kumba@gentoo.org, James.hogan@mips.com, Peter.Wotton@mips.com, Sergey.Semin@t-platforms.ru, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/14] MIPS: memblock: Mark present sparsemem sections Message-ID: <20180124072743.GA31120@mobilestation> References: <20180117222312.14763-1-fancer.lancer@gmail.com> <20180117222312.14763-8-fancer.lancer@gmail.com> <7246ebaa-0ffa-f012-c18e-269b1e0130e6@mips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7246ebaa-0ffa-f012-c18e-269b1e0130e6@mips.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Marcin On Wed, Jan 24, 2018 at 07:13:03AM +0100, Marcin Nowakowski wrote: > Hi Serge, > > On 17.01.2018 23:23, Serge Semin wrote: > >If sparsemem is activated all sections with present pages must > >be accordingly marked after memblock is fully initialized. > > > >Signed-off-by: Serge Semin > >--- > > arch/mips/kernel/setup.c | 7 ++++++- > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > >diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c > >index b121fa702..6df1eaf38 100644 > >--- a/arch/mips/kernel/setup.c > >+++ b/arch/mips/kernel/setup.c > >@@ -778,7 +778,7 @@ static void __init request_crashkernel(struct resource *res) > > static void __init arch_mem_init(char **cmdline_p) > > { > >- struct memblock_region *reg; > >+ struct memblock_region *reg __maybe_unused; > > nit: reg is used here. It becomes __maybe_unused in patch 8. > Right. I'll move __maybe_unused change to the patch 8. -Sergey > > Marcin