Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp633758ybg; Tue, 28 Jul 2020 14:59:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG3zWaZs4xojDk7pULypfkwlI4f1hxmf2Q/S9OOlDNLqTY1P5msUQSTPh3a2AE4lqN9asd X-Received: by 2002:a05:6402:1cb3:: with SMTP id cz19mr9108697edb.299.1595973556019; Tue, 28 Jul 2020 14:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595973556; cv=none; d=google.com; s=arc-20160816; b=wf3wz2Gf0araS7rJcjIIcoGyrQsQBaL6AGB0teAPF1qiEv/e0CaTLFpgI8al4KMTQG pnhSpkKJJPSJyJe7W9PZh5CNMEIzCp53LncwxfPX0/Mz9+4yct+8dqp4v8R7xPuBggiQ vUyQRImfki6jC9V9wyTutNSmmJBO2d9p83cUNJl4PuLkDbptfXnFS/SyAxZNI1k4qaq4 Nz/gy/COLuH5Tg8qEXlgsuhGsF+5iB9XSN7OHmm9+9XlcH2hoa93ew3nylqwlgGp62N6 O816bjLJ78p7GHluyvQ4MbkNjBhTbe2c/g8q3HNVRAKnC6G0yiuSKyCHwuCuC+VDt9kp pS/w== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=dijMa2YYCS5BGuoZME0O/78k7wdAKQiXaSoW8DSfAfU=; b=nr/CSw2IRZ46tKMYbxQHxTqvYqbsnhDL/YPJ4clJHpU3B0VKiBg0v1ltKGgiRTnJuT bnRFu0l4uY65ktcW8VVbI+uY5BSz4/9aRlwbWD9kH+Xlf4Apy7umy6h3a5AHocz9Uhg+ H3Fm/1Jo7YZMqVPCehwEBacAVIKexbJh4fx61KRQGr0nZMXx2ROHQtYL4u0rIbBCKyj/ 2GhOo6aogObh6QRNxHRhySpBsLl6CTpKyiqG1EsIZaPrhqfsDe2wfvGznsctd/K/zbra buJAtivP6cbyeKSpZtjt31uCs9m58MYPSLrvq6lLzwtN4ba+Xq9TkjlfUH97lwA4ZpqR rgBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l5YXwP19; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dx22si8209133ejb.18.2020.07.28.14.58.53; Tue, 28 Jul 2020 14:59:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l5YXwP19; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729589AbgG1Vzz (ORCPT + 99 others); Tue, 28 Jul 2020 17:55:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:60856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728149AbgG1Vzz (ORCPT ); Tue, 28 Jul 2020 17:55:55 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6375B206D4; Tue, 28 Jul 2020 21:55:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595973354; bh=iHwgETSwMYC9wiqhA4AumxvqL8yv08TTtqWNcMzlamY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=l5YXwP19L5ctPXEi1iX/s1kox20cdAYURxF6KpqQbK6OL8B3WbykWVyTkErlUU2Vo Ubvm25JXVritJ23Cwg+aAHPIOva1RDwH5kFTi3I0c+gkJxvEbm1HFOntpi/yyyMdLZ JMAs8GZQKyw/ozzB/WKOqJ+pHwkHkw/uHnTzNqV8= Date: Tue, 28 Jul 2020 14:55:53 -0700 From: Andrew Morton To: Randy Dunlap Cc: broonie@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-next@vger.kernel.org, mhocko@suse.cz, mm-commits@vger.kernel.org, sfr@canb.auug.org.au Subject: Re: mmotm 2020-07-27-18-18 uploaded (mm/page_alloc.c) Message-Id: <20200728145553.2a69fa2080de01922b3a74e0@linux-foundation.org> In-Reply-To: References: <20200728011914.S-8vAYUK0%akpm@linux-foundation.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Jul 2020 05:33:58 -0700 Randy Dunlap wrote: > On 7/27/20 6:19 PM, Andrew Morton wrote: > > The mm-of-the-moment snapshot 2020-07-27-18-18 has been uploaded to > > > > http://www.ozlabs.org/~akpm/mmotm/ > > > > mmotm-readme.txt says > > > > README for mm-of-the-moment: > > > > http://www.ozlabs.org/~akpm/mmotm/ > > > > This is a snapshot of my -mm patch queue. Uploaded at random hopefully > > more than once a week. > > > > You will need quilt to apply these patches to the latest Linus release (5.x > > or 5.x-rcY). The series file is in broken-out.tar.gz and is duplicated in > > http://ozlabs.org/~akpm/mmotm/series > > > > on x86_64: > > ../mm/page_alloc.c:8355:48: warning: ‘struct compact_control’ declared inside parameter list will not be visible outside of this definition or declaration > static int __alloc_contig_migrate_range(struct compact_control *cc, > ^~~~~~~~~~~~~~~ As is usually the case with your reports, I can't figure out how to reproduce it. I copy then .config, run `make oldconfig' (need to hit enter a zillion times because the .config is whacky) then the build succeeds. What's the secret? Anyway, #ifdef CONFIG_CONTIG_ALLOC ... /* [start, end) must belong to a single zone. */ static int __alloc_contig_migrate_range(struct compact_control *cc, unsigned long start, unsigned long end) and #if defined CONFIG_COMPACTION || defined CONFIG_CMA ... struct compact_control { so we presumably have CONFIG_CONTIG_ALLOC=y CONFIG_COMPACTION=n CONFIG_CMA=n which is indeed what's in your config file. But config CONTIG_ALLOC def_bool (MEMORY_ISOLATION && COMPACTION) || CMA says this is an improper combination. And `make oldconfig' fixes it up. What's happening here?