Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3458713ybl; Sun, 1 Sep 2019 13:38:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxigsgzbcGyjZZX3XfgCIZtAfIPzd3OPbfOrxH3fyxARj71NMocqag81KvhugY0vdYps8w0 X-Received: by 2002:a63:9e54:: with SMTP id r20mr23057853pgo.64.1567370320228; Sun, 01 Sep 2019 13:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567370320; cv=none; d=google.com; s=arc-20160816; b=P4XKeWM5H1pInPgMQ9CxUK51D0UcBh6xKRlXql+WbOTG2yH9sUT1rhHTz3XToQOyVZ RNwj9FBD1yGE+cWAKNRhJtPbLdn2uT8WwyGhD6EONlAb2PANtCwNxBrqlcfCAUMqg3Af kWxwhpCld45iVCxs/z6YCqi2r53Ay/dI65CBqjQIifRir3AvN8lbTkLHaVT5nyn94Grn sCgPv0somB+Gcrm554chP8UW+c5CRuUBShxSDf6dcf/ST3afSkuufYRamxEgI27fssC9 pXma34HwNICqJ14PnORQTuZa2wAG/TwolVagWvWVoVln8zOi+SRZziHD7vIPMTvBS5bn cYgw== 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:dkim-signature; bh=UMz9j13CPipWdVYjch4adDtFWXAtjYrNSKsSdKhSILc=; b=smDDiO8aNbDM9U1Mq7ezR80magaivozz87b72+G9SorcqTho9PAgIK+gYKDQFklBS4 xsHKu7w0UqciBswU/Vpph1og2ROiVc0yHbAKtcj8ZtVZ7Pib8uWzuzg/73o4N9lGta98 FVfEaxSa0le6ALRGc+WmEaZNH2AymxkeUUz7xnrFei7QI3E2dlwwVHadK5Dhlix0eupJ 8I+0ssR6eNijOLIkdCxUzNUF9JWFCIuLVXTGU0ZRmDcZvMbw6zwNghBQDdIk88jlX7M0 tKD/Dpf3DLmGbLG5CCHHyu/X9/ga0jNBxJID8tKBhaDUeRCifOk7XsshhKPcJZ62snAZ KI4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mvxfW2Rt; 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 c12si9891299pgl.252.2019.09.01.13.37.55; Sun, 01 Sep 2019 13:38:40 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=mvxfW2Rt; 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 S1728934AbfIAUfU (ORCPT + 99 others); Sun, 1 Sep 2019 16:35:20 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:37155 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfIAUfU (ORCPT ); Sun, 1 Sep 2019 16:35:20 -0400 Received: by mail-pf1-f195.google.com with SMTP id y9so7689877pfl.4 for ; Sun, 01 Sep 2019 13:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UMz9j13CPipWdVYjch4adDtFWXAtjYrNSKsSdKhSILc=; b=mvxfW2Rt8/0uJ/cwQTEzc73ZEEki9DlUFiE5zlUcm3w4ZfNRAEYIWuarl+f8hwy6JY 5DFaenL7to7Y3eZdBjobZpoLP5jUacAsTXheeGrznPYzl1I6PTTul1/dKs4tyHj82I41 5io3t1x3adYBQBDjUbpL2Jy8v/kPnnjL22wlnPAi2hZpWpbDEjYZolEVXPJRsLBvMxDa az1bUoS+nkrh8YpQaxjLf+OadAonPIdMpPoMRJc69s67xUVpGcUNGBx7Z26Q6iAUdD+9 PQBZnrrtuzCX41GtyguSJU4y75FDfcWA1Dx6wRXpx65hEnMTh+dHJg1xb3AXyuzaLLKl n8BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UMz9j13CPipWdVYjch4adDtFWXAtjYrNSKsSdKhSILc=; b=l8ZgbAd9h8PiC+kNiBeagQSSNyAUzHWqjdDNT9mbRHZfVdH8oGqjCRExMEibGdx/vL cOtRCdsTejeZrShSxTerllt2xic2csylxjBrqpPFdaqBNQEa2Lw3WCmUdngqB8JTIrHm V6ZVj9n6A+Eim5K1wLXTNvqGgyiCsQpoocpAZPpwynMQ4kZop1HHNw3aGQd9OP5XMksj LlL2afxFFJ2MtWY4ecLtXpmqNIsRpmBKnInwaORk3rgXly8nkS82AUsRdP3jkWtFWsm0 kh+h3GuOkxRoEIaWkvLLAlkhVnvWL1bFX2O4rVyQAPpcN4ee1LMxztoJbNPwhbMy1HaY QDvg== X-Gm-Message-State: APjAAAVReWoUcL/KUwysKeDAvkmx8aXbnaaysscvZJj1tlXWNi6FqhqM 9atmAhwJWop1+mcOvjvjAJg= X-Received: by 2002:a65:640a:: with SMTP id a10mr21967201pgv.338.1567370119245; Sun, 01 Sep 2019 13:35:19 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id r4sm8176158pji.7.2019.09.01.13.35.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Sep 2019 13:35:18 -0700 (PDT) Subject: Re: [PATCH 2/3] pagewalk: separate function pointers from iterator data To: Jason Gunthorpe Cc: Christoph Hellwig , Linus Torvalds , Andrew Morton , =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= , Jerome Glisse , Steven Price , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Thomas Hellstrom References: <20190828141955.22210-1-hch@lst.de> <20190828141955.22210-3-hch@lst.de> <20190901184530.GA18656@roeck-us.net> <20190901193601.GB5208@mellanox.com> From: Guenter Roeck Message-ID: Date: Sun, 1 Sep 2019 13:35:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190901193601.GB5208@mellanox.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/1/19 12:36 PM, Jason Gunthorpe wrote: > On Sun, Sep 01, 2019 at 11:45:30AM -0700, Guenter Roeck wrote: >> On Wed, Aug 28, 2019 at 04:19:54PM +0200, Christoph Hellwig wrote: >>> The mm_walk structure currently mixed data and code. Split out the >>> operations vectors into a new mm_walk_ops structure, and while we >>> are changing the API also declare the mm_walk structure inside the >>> walk_page_range and walk_page_vma functions. >>> >>> Based on patch from Linus Torvalds. >>> >>> Signed-off-by: Christoph Hellwig >>> Reviewed-by: Thomas Hellstrom >>> Reviewed-by: Steven Price >>> Reviewed-by: Jason Gunthorpe >> >> When building csky:defconfig: >> >> In file included from mm/madvise.c:30: >> mm/madvise.c: In function 'madvise_free_single_vma': >> arch/csky/include/asm/tlb.h:11:11: error: >> invalid type argument of '->' (have 'struct mmu_gather') > > I belive the macros above are missing brackets.. Can you confirm the > below takes care of things? I'll add a patch if so > Good catch. Yes, that fixes the build problem. Guenter > diff --git a/arch/csky/include/asm/tlb.h b/arch/csky/include/asm/tlb.h > index 8c7cc097666f04..fdff9b8d70c811 100644 > --- a/arch/csky/include/asm/tlb.h > +++ b/arch/csky/include/asm/tlb.h > @@ -8,14 +8,14 @@ > > #define tlb_start_vma(tlb, vma) \ > do { \ > - if (!tlb->fullmm) \ > - flush_cache_range(vma, vma->vm_start, vma->vm_end); \ > + if (!(tlb)->fullmm) \ > + flush_cache_range(vma, (vma)->vm_start, (vma)->vm_end); \ > } while (0) > > #define tlb_end_vma(tlb, vma) \ > do { \ > - if (!tlb->fullmm) \ > - flush_tlb_range(vma, vma->vm_start, vma->vm_end); \ > + if (!(tlb)->fullmm) \ > + flush_tlb_range(vma, (vma)->vm_start, (vma)->vm_end); \ > } while (0) > > #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm) > > Thanks, > Jason >