Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751844AbdH3PmV (ORCPT ); Wed, 30 Aug 2017 11:42:21 -0400 Received: from mail-cys01nam02on0087.outbound.protection.outlook.com ([104.47.37.87]:64026 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751776AbdH3PmQ (ORCPT ); Wed, 30 Aug 2017 11:42:16 -0400 Date: Wed, 30 Aug 2017 08:42:04 -0700 From: Sinclair Yeh To: Thomas Hellstrom , Arvind Yadav , airlied@linux.ie, linux-graphics-maintainer@vmware.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm: vmwgfx: constify vmw_fence_ops Message-ID: <20170830154203.GA12100@promb-2n-dhcp227.eng.vmware.com> References: <63ab6910a20e486c69cf768b6d1bf8c8bc60149b.1504071891.git.arvind.yadav.cs@gmail.com> <5901b4a5-5eef-393f-7d18-704c037708c6@vmware.com> <20170830083024.fokqszud2euwg476@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170830083024.fokqszud2euwg476@phenom.ffwll.local> User-Agent: Mutt/1.8.2 (2017-04-18) X-Originating-IP: [208.91.1.34] X-ClientProxiedBy: MWHPR2001CA0021.namprd20.prod.outlook.com (10.172.58.159) To CY4PR05MB3286.namprd05.prod.outlook.com (10.171.247.158) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 44aa2c53-0517-4680-8bbe-08d4efbdaf9e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CY4PR05MB3286; X-Microsoft-Exchange-Diagnostics: 1;CY4PR05MB3286;3:Yd44o57ZvY59c3e/rKIcQS3oGHVHBweVwV+ujLZmBLq9VFHaCAcEzpvGtG1BSf/Tmp4eZh3I7n1cmKL2axMzerhgTvJOyUvVURXt1y5ibZDuVQWyYAjmCC1s4t8xyp/JaYmYpYXGj3cxCvclJApvcgnP41PQ1dFuf8ERyJqbC9bfw/i5KnPwUtSPEfFPzQsN7CNni5FJiq65wPJQNYgYDDjdsQKggeIFTZ76+aKRjrzgcJyOk8osgrVwZHGj/MYH;25:bcE/AM+E4Xy/s+QGvBD6Cv0TOB/KH1m1mH+uufYWAAvfak5rQwphXJKJ91AiEZ4A9Ms/glOcB3wFcf1rN/UK1y1CNMreJVh0T+FjbsgJAKCE7wzPPdV/HSjoPZdlHGL5nOJC8IH64Q44wFkh36ZThZYqnAYDnsNeisi5hIx/G3WpZWJxmxYbszfNNEIzOxcfojXEKik1UrYgGDb5oPuYo5n8wlxviR9kz1TP8H/bT40G6TaH+9LCQ9I0pBA7UIEvJexJcDpzJY/PT+Kv/1+q6OSLvOQDmMZ6ZYT7i5yNjVKAkjK/133J1oAg8gS4BjLjhT6raJZ8e2qe8qnaz3QLvQ==;31:QNXw5L7R6hPXAwfIUuHoHkHNlDFtSxFKuQJXcYyhvC+/NN9obN6X0W7EepTWPdhpq1jzszI8GX0YbQoPktwmS87YrxYoy9XcBbgFKN13yct7Qv2q8xAJc1mPk+yshdV//ZsqTqrcUKlI1G3kxd23g2N/7iBZXevEhz+JBS15DHtAP89sMP6vJ5+QzsvjABs9wbQ3/77Bkmjs/sS00oRI5w7WCrjuefR4IYRF/nTtwtk= X-MS-TrafficTypeDiagnostic: CY4PR05MB3286: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=syeh@vmware.com; X-Microsoft-Exchange-Diagnostics: 1;CY4PR05MB3286;20:F7viVV2MF6JGRjE1pOmH3UTYbWgUROxnuJwYrt8SMfzMHZxzJRMWdqe7iDry7+msNidgl0u3bi638pnn82D8s8jI6/bN+F9cDX760vcQSwOIt6ttL68v5FeQG0ecrPQmhNaB1GILReSZuVrzr3eVlrSxiXKpuA1cYvlUHCT445RJrA0/Rv98Ln/ZkYxYUcIIVlxLk5aDcX8Ey35eNGGNY8W6RWmEJkq+I0dlPyCzEDmWRI7FEC3EIY+pgQSB7HO6hfA0JSyup2ksecTLWoE7eEtCTuTjveDcMywnWNXS3PJf2dt8vSo5x4kK5m+3ip9EibvfBe4UFh5MQtNSid5m72/YiMDm/hZzg6WMQ9wck85Hfzw9QGL7VJCFeFHa1SSt6Nt2gQJfnYllGSBq7xBb6XO20HsxUvXVvbGhRsRovweW6Z6izUr9/1d/swuD6tvMLlKDVP/qqLmQeM9djNc69xT0uih2Ja7YP/Qbhry8FSgyJg19YalDWJ9D3Xac4Yvu;4:CTOrg/albAhtmi7KSJOoRmFtGIZ0odBk+3wK92/yhx/OQ/TXim/A51F/W23uJeZzWTlHlF4P6HdBGxdJ4mbbKZmVCmtUDemTfbjv+o9BjUaWmM0YSnXnq5VSXOZu9AibpCSCD/uGD+GFuWYEyDuXujmjrhuR3CB/Kg097Osfcpn9XTWuyRI1dEmIS2eCzgjSY1jTw+8P2taod7/VLeVqiNoyJprx2+xkOJnl7TpnmA8qhIsHVYzrBNZ9xF0AmeFLCflQxBNHukJvb4GttWwxBYVjTxR/1kdnERR17GgkIZY= X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123558100)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY4PR05MB3286;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY4PR05MB3286; X-Forefront-PRVS: 041517DFAB X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(199003)(24454002)(377454003)(189002)(6666003)(53936002)(105586002)(54356999)(50986999)(81166006)(42186005)(76176999)(8676002)(5660300001)(101416001)(81156014)(33656002)(106356001)(2950100002)(229853002)(53546010)(55016002)(305945005)(4001350100001)(68736007)(7736002)(189998001)(47776003)(97736004)(50466002)(66066001)(25786009)(478600001)(23726003)(6246003)(6116002)(3846002)(86362001)(8936002)(1076002)(2906002)(83506001)(39060400002)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR05MB3286;H:promb-2n-dhcp227.eng.vmware.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR05MB3286;23:ZW7dOBGMehtiG8Woov9dnji/mNumX3KPSk4eEM1Mt?= =?us-ascii?Q?4BfaBnzfrb8/N4RljKmcvNOTxlBzG3G/LcsPcg/0QYvYsrldirpsKvIZKN3k?= =?us-ascii?Q?yDrn6e/ozz9bzeM/d7ID84L2ukwv17/Mkm+zfq/RWs/SH7kwUkvTdWWkv6Ur?= =?us-ascii?Q?ipO6y7zhcjwN+Qkou68ByOy9yDPinQC0ANIq33B0/udg5FV6hPL+PW1xn4VR?= =?us-ascii?Q?V5d0qo2pAD/cGDEV1mjo6fr3xn7n+/LkN/wpxyLVaVlk1+NXP48k/8l5SzPx?= =?us-ascii?Q?jPVzeTgEDxbMnIjUPPp2tBfqGdq11P6MHT6DkL0bi59i4krp3P4hPak6AzOI?= =?us-ascii?Q?OMPJfJCQOxVhiAvEKH9Kz05B9sw6DfjV2Es4EqgOHs76+FADFsVAT4YyGeAN?= =?us-ascii?Q?/9iKFMYS4tCOn25T/YSMNZ/GW1fDkXgAdA9XwTQeqSQ3ReW/8RxuYJ2SqkTt?= =?us-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ZGn90JSHdrymxMWapf9LAOn4mywvfmKfHP1luWKR26gdt4uO8DGEBmBpQHBfrx1OnoHp7QQgnwdJePsr5GTWpK+H8xGnJq90ec9Q==;5:R/TF99YYer5MFOwk63ROwu7DIctVuYLrYZo9TJaybn8Hzf8gHJQ1jVKSPJHwoo4lthHB2sWfh5aP/vPGbor5kdkqRw1o29U+PJwUMdppxzGsdH0jIcMN8TlyHCcqvEClHdBzWdR8cHEPQNVBcPE7ig==;24:FPjBUrnML9BhgKDQIW0r6wGx1B7AfKtysn0NGF+jSMxgVTnfXP11ckOYBTKjdkgr+8hIFWAVPOXU5cAseacZm43xzMw15vd47SQkwUEXrlk=;7:8G1CrqDUgm1URWnLUFDothnX7MULAEumJfKzt8NGFgA51pLdaF+gM1wZIvyaT21bdl2pPuNEyl0CK/UIuzzqbYsDdyWzfW7gncCuYLNbPWxT2sYOw3n83HjDnc9mAvKV/g3kCRLmVL4t1xAcwQVLH6nfUOpzSOm2tRKW+7MzIlCRLPJLPqshyu7l91ctEgZFUX9xD6k4M62l1mbYbhRuF1QV3UnG/YJPNWPgQHloMv4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR05MB3286;20:jHJM7K6jIzETgVWGDbPf86Ms2pBFK8NWvFpA3lBG8o6lCdghrwFatWuGxkfcUkVaEGaK0Ra2tKEx695fhl6S8V+Q//yfdIHPDLVh9a3OwY9nzChNSyK3pz6c4CpE3KMU7hKxEKP3J2bGpOZfO+Sq81nm5xT5MkT3g4bqQW0n+nQ= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2017 15:42:13.3780 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR05MB3286 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1461 Lines: 33 On Wed, Aug 30, 2017 at 10:30:24AM +0200, Daniel Vetter wrote: > On Wed, Aug 30, 2017 at 08:21:46AM +0200, Thomas Hellstrom wrote: > > On 08/30/2017 07:47 AM, Arvind Yadav wrote: > > > vmw_fence_ops are not supposed to change at runtime. Functions > > > "dma_fence_init" working with const vmw_fence_ops provided > > > by . So mark the non-const structs as const. > > > > > > Signed-off-by: Arvind Yadav > > > --- > > > drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c > > > index b8bc5bc..abc5f03 100644 > > > --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c > > > +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c > > > @@ -225,7 +225,7 @@ static long vmw_fence_wait(struct dma_fence *f, bool intr, signed long timeout) > > > return ret; > > > } > > > -static struct dma_fence_ops vmw_fence_ops = { > > > +static const struct dma_fence_ops vmw_fence_ops = { > > > .get_driver_name = vmw_fence_get_driver_name, > > > .get_timeline_name = vmw_fence_get_timeline_name, > > > .enable_signaling = vmw_fence_enable_signaling, > > > > Reviewed-by: Thomas Hellstrom > > Does this mean you'll merge it, or does this mean you'll expect someone > else to merge this? Yes, we have this queued and will go out in the next pull request.