Received: by 10.223.176.46 with SMTP id f43csp340434wra; Tue, 23 Jan 2018 22:16:07 -0800 (PST) X-Google-Smtp-Source: AH8x224Sp0PhHPDjEPlG/SXvzeljGtRJ8iBtIz93ERlTvvdvyY6mRyp36z7cbyAHvhcbDr+cmXHs X-Received: by 2002:a17:902:780f:: with SMTP id p15-v6mr7320774pll.16.1516774567854; Tue, 23 Jan 2018 22:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516774567; cv=none; d=google.com; s=arc-20160816; b=bdEg/jmCUhVSbLKXoeuelm5qrZDoOq/RaVqvhFWj04BdsXPqEGyV0S+fkRIQ1Cismu EKcUATU2/owmAYus2RGNStayJrqFYxtonKBiSZOBUP1YpRnW8M4pV6Co9noobpsQX/Jq cjk4sq2mKHsOXh7UzGEFbSS8EW6YwXZJTTdHimKHx32erpujKrY4qtEN2DN7vyRwTYE4 sCoqgkhR5aav1+vONVDN3cvhRyTpbuRuujEbmEv2hgbacqlif+6xYFvhLszciJazajfU g6+dGhFFTlbCJaW8sLqUZOJRoMRcqFf7CEi+Mij35nLhWLjE4CZl/1giYqYBB65p77Xq XIVQ== 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:arc-authentication-results; bh=GpN2E4Yih5BxCup1CfdBUja+WmP/ASTT0C+eFCAjgqM=; b=L5bvbOLxZrP3DT/8303Icpit6x/zUfOe/iuAh1TNMoGy/IzjPOjZYyo6cQVx3KkYf1 JR4SI3n4t8DzvywAuGqtjAVh426UtSFir5Ik05xUtAuFWQqvmwf2nw3/zFgCCRr+k62N WEHVmzvlmh6sCQoQkB565AkUPQaCS1Ijfx2n73s1SCAJl47RPhwj7B+1rW1L9u+RQ3tL EQj24VL9g9JfgiMS7XTWB1A7Rk+JmXUC96WGpkQK0EDTAEfOKnVFMNiUPWHP+IDz572S CkBL2DcAPR4iBQAhu7c8+Y5fEqRtwdASQdfWJNAK/YSUvmp+Ihnvv/f9gDeSoSdERDep iwAA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r29si2399862pfj.102.2018.01.23.22.15.54; Tue, 23 Jan 2018 22:16:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752371AbeAXGO7 (ORCPT + 99 others); Wed, 24 Jan 2018 01:14:59 -0500 Received: from 9pmail.ess.barracuda.com ([64.235.150.224]:49039 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751488AbeAXGO6 (ORCPT ); Wed, 24 Jan 2018 01:14:58 -0500 Received: from MIPSMAIL01.mipstec.com (mailrelay.mips.com [12.201.5.28]) by mx4.ess.sfj.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NO); Wed, 24 Jan 2018 06:13:12 +0000 Received: from [192.168.159.158] (192.168.159.158) by MIPSMAIL01.mipstec.com (10.20.43.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 23 Jan 2018 22:13:10 -0800 Subject: Re: [PATCH 07/14] MIPS: memblock: Mark present sparsemem sections To: Serge Semin , , , , , , , , , CC: , , , , , , , References: <20180117222312.14763-1-fancer.lancer@gmail.com> <20180117222312.14763-8-fancer.lancer@gmail.com> From: Marcin Nowakowski Message-ID: <7246ebaa-0ffa-f012-c18e-269b1e0130e6@mips.com> Date: Wed, 24 Jan 2018 07:13:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180117222312.14763-8-fancer.lancer@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.159.158] X-BESS-ID: 1516774390-298555-16351-38487-9 X-BESS-VER: 2017.17-r1801171719 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.20 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.189299 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.20 BSF_SC7_SA298e META: Custom Rule SA298e 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.20 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_SC7_SA298e, BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Marcin