Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1185697imu; Tue, 11 Dec 2018 14:21:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/XT6ODcBe/8VGCHksg1vWyMNq9lBLELNFd5RkcrsUtcBYjG5fbKtycqw39CNZkB64wpSoH4 X-Received: by 2002:a62:ae12:: with SMTP id q18mr18034420pff.126.1544566913698; Tue, 11 Dec 2018 14:21:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544566913; cv=none; d=google.com; s=arc-20160816; b=eTpOhlYHltoCvXwehyGdKc70xNvY6cyEks+h3GrZv9c2jqJ7xSTPvXps9/jaPQnHvY j8GeAQ82y4GXk3Xh0Tm1Ni4TZHwKjXAxuqqxXnzDdz2shba61ZFCSeN8uC9mYq5zBc1V D/10fx8cxvvUaTxWjur4tB+ni0pySb9Q8Jtu+26PoXMHjMNTKP+WgUiBTZzcy2DP11vf mR9dp0ePh+bdPmCEoHOPSJUYqvTcjJmMgGHm+piKpSVTWnGzNm+cjl6XfXeMgrz61qJP 8kSbCpznOcT8hAKVrexMeOd4YgMczP/J75tpLlIytQhEw8p4W7JxJF0PdAjXKvsZNkFQ sl7Q== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=CuekZZi94VSHB4oFBbWi8r0XFj/PYruVoKQmaRP2s8U=; b=NJdl+gHxdrzXWJ+WZgzxRvaHYY8SEOoYpES4BV+1+h4ATy4sSNohYnSNywdCYZlLV8 lReaXYuXLazt9TgG0EldYwkvehFG4UQfZS4bD+w1MsBF9wZtBg4wlQ3/DNjUEERJpzGX T0APhKjpEDlZpv3vg9tW+9fG9uixtnB7AE5MGsnIqxqiGXVjPcRR9+aPMK/iI/TpG5rx Zj53H0CFhFwQukW6JKjgWe+LZAlHtFpqEsp0anFBYZ5FoE0sgUi5Qqib7nsfIpXNAJqN /OGHGhhbx9ytOuvrQs1r635KpBlMLggfbpSGurxcb56gBkpe2CgDZZFWZo7JAkPw7+jt 6uPg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si13023350pgd.461.2018.12.11.14.21.38; Tue, 11 Dec 2018 14:21:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726249AbeLKWTk (ORCPT + 99 others); Tue, 11 Dec 2018 17:19:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37944 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726209AbeLKWTk (ORCPT ); Tue, 11 Dec 2018 17:19:40 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DCF3BC058CB4; Tue, 11 Dec 2018 22:19:39 +0000 (UTC) Received: from redhat.com (ovpn-124-191.rdu2.redhat.com [10.10.124.191]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 89F3719748; Tue, 11 Dec 2018 22:19:37 +0000 (UTC) Date: Tue, 11 Dec 2018 17:19:35 -0500 From: Jerome Glisse To: Arnd Bergmann Cc: David Rientjes , Andrew Morton , Stephen Rothwell , Michal Hocko , Mike Rapoport , Linux Kernel Mailing List Subject: Re: [PATCH] mm/mmu_notifier: fix mmu_notifier_range_init warning Message-ID: <20181211221935.GC6478@redhat.com> References: <20181211200526.3868586-1-arnd@arndb.de> <20181211201909.GA6478@redhat.com> <20181211213636.GB6478@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 11 Dec 2018 22:19:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 11, 2018 at 10:53:03PM +0100, Arnd Bergmann wrote: > On Tue, Dec 11, 2018 at 10:43 PM David Rientjes wrote: > > > > On Tue, 11 Dec 2018, Jerome Glisse wrote: > > > > > Hmm, strange that Arnd's build failure is only reporting about an unused > > variable instead of MMU_NOTIFY_CLEAR being undefined :/ > > > > I think this should be done so that anybody using > > mmu_notifier_range_init() doesn't need to worry about the implications of > > *any* unused formal parameter as a result of how the #define is formed: > > Your patch below is more or less what I tried at first, and that resulted > in another build failure for > > mm/hugetlb.c: mmu_notifier_range_init(&range, mm, start, end, > MMU_NOTIFY_CLEAR); > mm/hugetlb.c- adjust_range_if_pmd_sharing_possible(vma, > &range.start, &range.end); > > where range.end refers to a nonexisting member of range. > > Arnd I will post a v3 with htmldoc fix and build warning fix incorporated. Cheers, J?r?me