Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp174155ybe; Sun, 1 Sep 2019 22:59:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUAFRmulMx5ssLbJ+WXxOVFiADP09UcrSdEiHu8JnVdO4yjoG7ByTlSP4uSx5e+4cv/muQ X-Received: by 2002:a17:902:9689:: with SMTP id n9mr28661654plp.3.1567403950699; Sun, 01 Sep 2019 22:59:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1567403950; cv=pass; d=google.com; s=arc-20160816; b=D0hddvw20nWlmHAas+PNyxaXauiKkk3Us3vHB+eK7B5AEIe3LqH2ix1+iZbj1ZGPi2 7KMIzhBv6DkeUv4acpVjXL0+Trw6bn6Z8rSSTJySZ5PgDs2f+oyweMxPzIlanSvUwUAT E4ibt7SWNH0dcZNV+jy/x/we/nbk7J77BjWkxK+/biP57IqwCxzARS4xLA6kM17ze12F YxWWgg1BpgZemg4VnxU9Cd9RZR89eBjbZGIimQc+H8TEJ8bXvgdU4/ljwX98j0A2fkaW tBhFpAfXFWDFZrqCXA9LIcTYFzR6zrapRbm0/CVfpNJswj6kK8nVodeZWgdBDEjGgIWG hRYA== 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=3YpW+m5iJT03m2/HaZIr+pQumPBsZ7WrQOgbG+uLwmc=; b=O627BRFZlvq3oEsE2gen9x21qSjXmVuzc/IVvh8qQ7XF4TfGsD/C2g6aB7U6TtCoIZ InhYSfp72PqRZhOjBzBhJDfUYcEKiGy0YTE5CdjP/bsQTZHjFtgzh7BWVk4QoJ8B2SWT 8oP1HspmM0ksX9irvgDNfwVqBfcqS1yTD/8OdEji79TUZS4oE6yb1HOplyfIrUI65JVY CKzqsPLcmNTCOGlKUEK4eMh/G2pGOMRilmYFVneYJVZlW4cGq7NF2+8emo/wHWtPpDb0 zwT1JaddLR/DK3AOxlO7f8JoAqKdzbyHbo3SqgR8LCPR8XN0b0K6O7ZjcEvlIuqry//S RMVw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b=YptSjpp2; 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 g13si11289998plq.359.2019.09.01.22.58.56; Sun, 01 Sep 2019 22:59:10 -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=YptSjpp2; 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 S1729408AbfIBFwR (ORCPT + 99 others); Mon, 2 Sep 2019 01:52:17 -0400 Received: from mail-eopbgr70079.outbound.protection.outlook.com ([40.107.7.79]:41740 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725839AbfIBFwR (ORCPT ); Mon, 2 Sep 2019 01:52:17 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XyJqA0ZCSB9I91xfQur/LXrawn5+e0BBiWz0tb3GI6KF8AQkf5r0VTCH3wQqoy+MIxIY925oeSvYloWIGnmedrirZ7Ab1azuLJMkjDfjEWMhC0G8bOnwlOCr8hDKaxufaug1OD1iTTiBNPCOSTs/GNugYAAXB3skql0cvPTzJwHboZ8rA5gsDtsMYrNE8OA12/glhqYIkjh6NMelL/G6bFLdlbes/beEuKXKj/x/xeCrInc4INBI28d6RtFN0fUI7zJp6ao+Za3E+gDDL1YFzE+sg2nZVrszsFgFEsCI6l4zSefgSelF3de+uqjkMbVjPBeFUaU8BUAD3BoEwjq9jQ== 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=3YpW+m5iJT03m2/HaZIr+pQumPBsZ7WrQOgbG+uLwmc=; b=YT629KHSbJ7Zor60WB7KiX4tqVwpkBSuplC7jIhVQEw8Xznit1PD/BoSKT/FN6p8F1YzdmxEbr9mi4nFCgGpbm4CxE+kRYcTlV94S4YWCSpijJ9q38tg3jLGhxVN98hUlAfalrggk5GT68kntm0DHmwDrIwSbbeEgqZm+vjO/jGQSz5rOc2aiMfd+14nw/14tEyhpcobob931pq5pTXpyjN8W6r28wA53tP5OdJ+5MlmRAvo/lboG3b8qS+fXzk11lE0kNuadGoJQmnkOgwPzQGIOwit3Wpt3EfVoM7R9lxDqmXBFCDfSn+khYjDU7aGBrrys1pT24rdK3DePCB5Uw== 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=3YpW+m5iJT03m2/HaZIr+pQumPBsZ7WrQOgbG+uLwmc=; b=YptSjpp2ID9UBlUxfbAJIM13nm4cRCQWi8eCSanBH9zIPW3pNc5vgBSHqy83A6HxHIiBXAilySbFTHeP4jbpWVM361ZMbtuk7CaGlqYI5pJgI2Nx5myhrtTrB02Lc++ujaIcTIosH9EdHBXOnxsOPuweL9TEkBbh2tYamED2/q8= Received: from VI1PR05MB4141.eurprd05.prod.outlook.com (10.171.182.144) by VI1PR05MB5278.eurprd05.prod.outlook.com (20.178.11.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2220.21; Mon, 2 Sep 2019 05:51:58 +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; Mon, 2 Sep 2019 05:51:58 +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+/Xu8LAWoHTqcXL4MAgAAOHoCAABCOAIAAm4cA Date: Mon, 2 Sep 2019 05:51:58 +0000 Message-ID: <20190902055156.GA24116@mellanox.com> References: <20190828141955.22210-1-hch@lst.de> <20190828141955.22210-3-hch@lst.de> <20190901184530.GA18656@roeck-us.net> <20190901193601.GB5208@mellanox.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P265CA0418.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a0::22) 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: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3155ef9c-6c0b-4e99-3c89-08d72f69ab28 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:VI1PR05MB5278; x-ms-traffictypediagnostic: VI1PR05MB5278: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 01480965DA x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(39860400002)(136003)(346002)(376002)(396003)(199004)(189003)(11346002)(7736002)(25786009)(6436002)(478600001)(102836004)(66066001)(1076003)(64756008)(6916009)(66446008)(2906002)(99286004)(5660300002)(4326008)(33656002)(71200400001)(71190400001)(66946007)(446003)(6512007)(53936002)(66476007)(66556008)(76176011)(386003)(53546011)(6506007)(966005)(26005)(86362001)(186003)(36756003)(8676002)(6246003)(14454004)(229853002)(486006)(6306002)(6486002)(476003)(305945005)(7416002)(81166006)(81156014)(8936002)(3846002)(316002)(52116002)(54906003)(14444005)(256004)(2616005)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR05MB5278;H:VI1PR05MB4141.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: g6JO3kBvtgZxbcJjg57ba+LaBoSaZxouJ4xCd+ajdI3+nEYSorJjVj7kQ0XGBgvJiJjSU2jJrS7ZaAE01oACh08wOXzto1v7YfyzMD8JI+8kGONhzM+WXWqur+95h5+6K3e8BhlsQtweQfLpTkK8OGbykFk/fZpradsYfMdbDB8SKMzin1gsOxVgfRXcfUeWfzMnsMxQKA1p4Ks4W43piElJA3P86PGtdtCGLnXRIOeuEOxeCcvB7Pt9nsHaWfWbDrpWcQa9m2rl9aHWpGKuNMiM+1tV97SpkEbBDXURe0xpyrrShCh8Hf/CRw04mWlYhVQb+63tZ7JIAroQ14/8+VL4LOzy2SdyBZfL+e8wEbaKBbPBmyrbgzPjPy62DWAFDklC7MU4ST7odckmkecdyEBaXRMqzA+FObjyr4ccm0c= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-ID: <95F200D0B68A014B94DC2DE38EBA9207@eurprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3155ef9c-6c0b-4e99-3c89-08d72f69ab28 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2019 05:51:58.7046 (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: Lop4Pj6n2+1ioW7qTX/lXOF+ZFzhPKqFIA+ItWCZ7rZ9Tb4Rsh8EJ+o68pYtDaZvDkyxcqW6YQH/MQC61ip0DA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB5278 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 01:35:16PM -0700, Guenter Roeck wrote: > > I belive the macros above are missing brackets.. Can you confirm the > > below takes care of things? I'll add a patch if so > >=20 >=20 > Good catch. Yes, that fixes the build problem. I added this to the hmm tree to fix it: From 6a7e550e0f1c1eeab75e0e2c7ffe5e9e9ae649ba Mon Sep 17 00:00:00 2001 From: Jason Gunthorpe Date: Mon, 2 Sep 2019 02:47:05 -0300 Subject: [PATCH] csky: add missing brackets in a macro for tlb.h As an earlier patch made the macro argument more complicated, compilation now fails with: 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') Link: https://lore.kernel.org/r/20190901193601.GB5208@mellanox.com Fixes: 923bfc561e75 ("pagewalk: separate function pointers from iterator da= ta") Reported-by: Guenter Roeck Signed-off-by: Jason Gunthorpe --- arch/csky/include/asm/tlb.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) --=20 2.23.0