Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3419274ybl; Sun, 1 Sep 2019 12:39:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5rgmhC8c/spS+ixo8wGIaCmJ+Y6ujJ9WP+sddd4p1HHcm7n/PTnnqzsaqqgpSYIrnCfV5 X-Received: by 2002:a17:90a:fe0c:: with SMTP id ck12mr9861966pjb.74.1567366743366; Sun, 01 Sep 2019 12:39:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1567366743; cv=pass; d=google.com; s=arc-20160816; b=JT+BtbOudb8gCRTGlh9OcKa6tnKRBL3fkXbOQZfcLTtlqTQ69fDiNfxvLniPlN7KBB YLgyEW8fqqgYj2oSY6q3+6xLlB5x9Y+Lb1vtnKpi4sHMa/3PTyKYRaLZ/2dD6xVB4+ox MPsyFulbXK+SCuI8clzpYvc7Lgh7lhhO8I+fneILCN4gEGffKPzwFVsVR9Ap6RAGpOty o0Tbd5UKKnZMDY4Y4fUq8+/oH6i3EqeXmL8d53ZLou7htKzw8/etH0eatBNsBYlBdgzy yKRcuMD7WxSB+Cc9QPjl3NZQnx2Fk2xZ9I+CQzx3etKw8/kaB8iXeQu58Pal1JBtlYgM jEYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=5GuMWTKasVdinIcBryJlCnAHqCnqXJdRbQDfdlcgBuQ=; b=WapF9Az1bDDU/xnuKrEFpxbu2Ea65WvyT4ShuCZoRWHABRkFLekOwsKXwfI4hZU3dN 8AqfjTx2vG3IGjky7GrkcLPC041Hjawf5EM9VnFhPqGsi8EAD955MdImcYUh2MqobGUX ejV3yhgqmf4tRcc04oLRl8go++PCkA+WRQ0jOEg/KH8UB4spohS562bwnZpjznlVVBZT xZDD6bsJG+yNoV7q20yuiN8kj26LqfaCLrwbowbE3hZ80M/6kxm/gjaRG0pnUB2xqYzg 7VzU59cfM9SYdMXzcs2Yl65oJX3Su/Qh/4aiVjgJuKPJMMtS6jIO+EvXqzsjrKwjKfVN jaMw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b=rMTJ4Ebb; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.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=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d27si9782817pgd.328.2019.09.01.12.38.47; Sun, 01 Sep 2019 12:39:03 -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=pass header.i=@Mellanox.com header.s=selector2 header.b=rMTJ4Ebb; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.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=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729209AbfIATgI (ORCPT + 99 others); Sun, 1 Sep 2019 15:36:08 -0400 Received: from mail-eopbgr150047.outbound.protection.outlook.com ([40.107.15.47]:28815 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729048AbfIATgH (ORCPT ); Sun, 1 Sep 2019 15:36:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IRx+xDt+QXpX15PkwJZXGu6XhaUEcMqgggJ5ZJ00B6ydMMaaP1UwyMifMsrPl+UU5dl7IaiHNcJrtgEVtXTz2gwDCsc+n1nFsEf9H20uVIa5Vgz8ZktrgkGOoVc+Gb8rRyVkF3Rg3dKJY0xSBBq4HvP4UQ0t51uESOzbP0iOcnQxwVLvsEZ4YeH29C+1JdZfvtMXT8G37DRGCYDJJUtfS1K6SSES9zwkh6P1IXbPZNBiNu3BSRT80/+ZZj6qzvUVtoTXUQDYRhmhoTyg58HC/iVmiECoNWcidBQ/tckrmOyleOdWHBPsSxzJjhWQnLkIi7LRSkmwJik9UgJr1+WbIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5GuMWTKasVdinIcBryJlCnAHqCnqXJdRbQDfdlcgBuQ=; b=X9X7aHkn1hbO2vYLEiwoDNzoJ/UYlHcYLT1eKmDQFB+CVK2upOd7+rAPays32wfvEwsnOAM7/VGvrMj4wraod/qBwpIye+W1WVDKWQHDcbessf6TV0tcEkXUDKHUXe7kpvhHfigORUH6hksUxI6axqgEjCdRGjfW6aDPYBkSQqE4MRf1cfnh0ehdgACj/UjnhzcXb53qDTIVAB7eo7Ui46NIVHVjyBtG2VsIQx4tP1Kg0nBRS1Q//oEBd/P44CQrSzBk4tWa5YG9FfYM/wFT1WMHaVgTNobj1g/BZiRHl4N9LreqmzEHm4MB7hX1kUKDzZZ+QeS3zeS4Bal9f30aQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5GuMWTKasVdinIcBryJlCnAHqCnqXJdRbQDfdlcgBuQ=; b=rMTJ4EbbiO8BOY1nPBdL6HpvkT9U4Ie4gm0woMoxBjAO062yjy28cQl4ahYdtDOj9m6G4yhWND8RFi3Pti+PsI+0H61A2RferZa2qxa+f0P6Pis/jYp9Nl8IJY426qpyCKOxjhkr6x+HDflMHtJEi1TcW/veLYGb3afIOmm1e+M= Received: from VI1PR05MB4141.eurprd05.prod.outlook.com (10.171.182.144) by VI1PR05MB5407.eurprd05.prod.outlook.com (20.177.63.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2220.20; Sun, 1 Sep 2019 19:36:04 +0000 Received: from VI1PR05MB4141.eurprd05.prod.outlook.com ([fe80::79a3:d971:d1f3:ab6f]) by VI1PR05MB4141.eurprd05.prod.outlook.com ([fe80::79a3:d971:d1f3:ab6f%7]) with mapi id 15.20.2220.020; Sun, 1 Sep 2019 19:36:04 +0000 From: Jason Gunthorpe To: Guenter Roeck CC: Christoph Hellwig , Linus Torvalds , Andrew Morton , =?iso-8859-1?Q?Thomas_Hellstr=F6m?= , Jerome Glisse , Steven Price , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Thomas Hellstrom Subject: Re: [PATCH 2/3] pagewalk: separate function pointers from iterator data Thread-Topic: [PATCH 2/3] pagewalk: separate function pointers from iterator data Thread-Index: AQHVXauzoOyMGt/Rm0+/Xu8LAWoHTqcXL4MAgAAOHoA= Date: Sun, 1 Sep 2019 19:36:04 +0000 Message-ID: <20190901193601.GB5208@mellanox.com> References: <20190828141955.22210-1-hch@lst.de> <20190828141955.22210-3-hch@lst.de> <20190901184530.GA18656@roeck-us.net> In-Reply-To: <20190901184530.GA18656@roeck-us.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM4PR07CA0034.eurprd07.prod.outlook.com (2603:10a6:205:1::47) To VI1PR05MB4141.eurprd05.prod.outlook.com (2603:10a6:803:4d::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=jgg@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [31.168.164.202] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b0e66951-a2b0-4fd6-683c-08d72f13a071 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:VI1PR05MB5407; x-ms-traffictypediagnostic: VI1PR05MB5407: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:773; x-forefront-prvs: 0147E151B5 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(376002)(396003)(136003)(366004)(346002)(189003)(199004)(25786009)(4326008)(6512007)(6436002)(6246003)(6486002)(1076003)(7416002)(53936002)(6916009)(33656002)(14444005)(36756003)(256004)(71190400001)(71200400001)(86362001)(64756008)(66556008)(66476007)(7736002)(8676002)(81166006)(81156014)(5660300002)(2906002)(66946007)(55236004)(66446008)(229853002)(99286004)(446003)(14454004)(11346002)(386003)(6506007)(186003)(6116002)(52116002)(26005)(102836004)(3846002)(76176011)(316002)(486006)(54906003)(305945005)(8936002)(66066001)(2616005)(476003)(478600001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR05MB5407;H:VI1PR05MB4141.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 2H/j1oARbAJtKOVJKSQqJFFv+h6ipUsCvwwYYdm5zqVKw9Ez2G3SnEsBEpNA1CndH0AeiDkhf08CI4ehmWa0hZGrUEmrADuqazImYReADHhm1bEf4ZWEvhCnzq0CaEdJftpumTSwfzAizQN+wKB0rOGr7oa60gdVSk45kKHwARrgIM3wudPiMatpNUSnmgCsbyc5Rdjv9/rFrjyg0qY5sfO3SvBLZONOpZ6vEqP0e0k+lAXlwiARdFHKUIw2UPAftubwAJMZDS69tfI0iMLqvUXv0g/an5S/l/x0zoDgc0BlIpSxn2I8jZta3mOT5YOupE/U8P1WuCRKBfQ4LsRtjUiSOAiqrwCWVuWnbEOTsNVIhVgogjOC3I3+iKJGduedyxcmxTshXtNEmnXLsL7mcqAEEYpIyhy1s3P4mSPKosY= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: b0e66951-a2b0-4fd6-683c-08d72f13a071 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Sep 2019 19:36:04.0184 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Rjv2JEheY8Wkh8x2OIbus5T2sUEVI1CMh3ek2LTXnsSK/pgZ67NLwEUsSdSdp+IY0O9IL3rR5B+IEKKscsrK6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB5407 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > >=20 > > Based on patch from Linus Torvalds. > >=20 > > Signed-off-by: Christoph Hellwig > > Reviewed-by: Thomas Hellstrom > > Reviewed-by: Steven Price > > Reviewed-by: Jason Gunthorpe >=20 > When building csky:defconfig: >=20 > 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 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 @@ =20 #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) =20 #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) =20 #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm) Thanks, Jason