Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp400700imu; Wed, 19 Dec 2018 21:42:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/WnpTx5Ds30PHiNTljpTzymT0eqiJUkxZEkKg+2TrVwj+Js4CbzyMkqBM62msiTm/Zkvrl/ X-Received: by 2002:a17:902:e08b:: with SMTP id cb11mr23109063plb.263.1545284551689; Wed, 19 Dec 2018 21:42:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545284551; cv=none; d=google.com; s=arc-20160816; b=yLu7s5wOU37fcmMYoBndgMF8kv2WN3FFn8LdhUnuKgr/FzdgFUe3Q0ngZ8WEidlkgv TshxMZHgk/2+uUfiqqITmECx+228XB3d64gWVjHns+iKxsKE+SuLsVMK1qNEJH4WpYIo HGn4O8NWXGidYzj0blmxVDnH986m9YNbEpNTuQOhnYxTaHu1O5TJQkq78T8uH8UFcdcR h1ev83cbMVmYqSXwlso/gw/kNd5FJ9m+UiJD7YBjVtskyvxAvWwJt1FH/fK26vJU2J3v wJBcm/he0dM+zg25Micz2FHq+xGyfGEx8L3RBFH7cdUNDLP8A9IXMdf7M1u5pddE2oDV 0nfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=L3XH4kqyX2/sGqjzjGECY7eV+eREYOLOdzS2zstuaMY=; b=lxPTC3lgo2iAfXR8ix0HuYdk+SqFVovaTCB+59XLez7esEcH1exyNZwj8ZBcFb5ICj hCgce+MdrAZfXJxSZji3KiqyaiGWp69YpsSqx7oUQnF1yi334W99zSp+nl4HwAFjLjT3 aTKt1bc2KjwMAIW38U1CZaSVmsXfplo49vzYUGtKDaXxetwZe/GxwA1BFFG2b0DpOqEf kkcLrAiGPq3rPVzExNGC2go6dAVD4n56Sx7TK+XKX7b6pl85iCDmdZo0y0aXSopwt+jk PwOk7XBCI0+cLX4nKUhyTaMQ3aXACyl7sYSPkY5614ESijGEDAoohO+tptDeVEUTg6EI hzrg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11si18433106pgi.324.2018.12.19.21.42.03; Wed, 19 Dec 2018 21:42:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728155AbeLTBjv (ORCPT + 99 others); Wed, 19 Dec 2018 20:39:51 -0500 Received: from szxga03-in.huawei.com ([45.249.212.189]:6520 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726535AbeLTBjv (ORCPT ); Wed, 19 Dec 2018 20:39:51 -0500 Received: from DGGEMM402-HUB.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id EA86C3307685F; Thu, 20 Dec 2018 09:39:46 +0800 (CST) Received: from DGGEMM526-MBX.china.huawei.com ([169.254.8.137]) by DGGEMM402-HUB.china.huawei.com ([10.3.20.210]) with mapi id 14.03.0415.000; Thu, 20 Dec 2018 09:39:45 +0800 From: "Zengtao (B)" To: Laura Abbott , "sumit.semwal@linaro.org" CC: Greg Kroah-Hartman , =?utf-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Todd Kjos , Martijn Coenen , Joel Fernandes , "devel@driverdev.osuosl.org" , "dri-devel@lists.freedesktop.org" , "linaro-mm-sig@lists.linaro.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] staging: android: ion: add buffer flag update ioctl Thread-Topic: [PATCH] staging: android: ion: add buffer flag update ioctl Thread-Index: AQHUl3t2yiOi+mE2D0GoXeOyj1fBg6WF1uUAgAD/fVA= Date: Thu, 20 Dec 2018 01:39:45 +0000 Message-ID: <678F3D1BB717D949B966B68EAEB446ED24E2926A@dggemm526-mbx.china.huawei.com> References: <1545239943-15414-1-git-send-email-prime.zeng@hisilicon.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.222.15] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgbGF1cmE6DQoNCj4tLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPkZyb206IExhdXJhIEFi Ym90dCBbbWFpbHRvOmxhYmJvdHRAcmVkaGF0LmNvbV0NCj5TZW50OiBUaHVyc2RheSwgRGVjZW1i ZXIgMjAsIDIwMTggMjoxMCBBTQ0KPlRvOiBaZW5ndGFvIChCKSA8cHJpbWUuemVuZ0BoaXNpbGlj b24uY29tPjsgc3VtaXQuc2Vtd2FsQGxpbmFyby5vcmcNCj5DYzogR3JlZyBLcm9haC1IYXJ0bWFu IDxncmVna2hAbGludXhmb3VuZGF0aW9uLm9yZz47IEFydmUgSGrDuG5uZXbDpWcNCj48YXJ2ZUBh bmRyb2lkLmNvbT47IFRvZGQgS2pvcyA8dGtqb3NAYW5kcm9pZC5jb20+OyBNYXJ0aWpuIENvZW5l bg0KPjxtYWNvQGFuZHJvaWQuY29tPjsgSm9lbCBGZXJuYW5kZXMgPGpvZWxAam9lbGZlcm5hbmRl cy5vcmc+Ow0KPmRldmVsQGRyaXZlcmRldi5vc3Vvc2wub3JnOyBkcmktZGV2ZWxAbGl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