Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp28137img; Thu, 21 Mar 2019 13:17:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwofqHEPwrBEMi7dnERj9sbW0fXxEe9oWayUKeSoN3v8Z8y3jncChhMgkl94Vw4b7eJW0iR X-Received: by 2002:a65:4203:: with SMTP id c3mr5120751pgq.271.1553199431710; Thu, 21 Mar 2019 13:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553199431; cv=none; d=google.com; s=arc-20160816; b=OsUodBAAb7CrNCIdrJljIId1wFczNqbThTWfQMS7KFXrUZ+95nVbKasYWkSOYmmXZ/ dj1VYb/Y191rqX16QfYLN/G3bZeGeLixQ3Rwpod27HclNXzgFtCLozdm0lJF9dqPWYnJ +QZdrfMuYTpCZrYV1OjxhMVdIQHOIXzk42KzJTqUvIpPg7NGAqCLLhHg3UOrWtX2Ptlv 1j2htu3JCzWI/F+v89YI7q2kIADGyUEGulNKTTk2V96k/7I06w6dLi5QqU2l8WmfTCEA fZFM/YlJr/ltpV9xjw/c7BKLonMoBMD9342D7q3mAvW82lA3CoVNacWF1s1DkKDu3akt GgBg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pqC8bFm2Wf1s8GpzzZo76PBATWaK/VBLqxdzhGES4Sc=; b=mGJNNIdqUOwte2YWXW+OxEaVmuEaV07Pn4PssRxzs3AQMqjgduRCtIOSAxYtk9DDSC gIZV3s5y29ep7yyyOSDIciyUDtOeB+fWev/f1wWKyiqSPToq+4ttWv1cV5oL5QrG+XWu tHD2sP1Y2ImCUsZUwqex1vNP7tFCwtWjy5gmQ1W0O41nYf0/yL9iIb2tb4RIQ8KpKg6R Zm9q8nCei2DyYpmmv3YPgPb3w7FqEGnI/E8GjxbVZzZ75QhwGUOVUlm1SRTd8Q0v8qxv YTIWqTaUpNqE0V4bHwn2Ja1i3TmS8efUvPUx5wwaR0PgRbhLi1cjvcrMBn49n3AObAzC ETXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BbfdCkoZ; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si4736619pgq.285.2019.03.21.13.16.48; Thu, 21 Mar 2019 13:17:11 -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=@linaro.org header.s=google header.b=BbfdCkoZ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728645AbfCUUQF (ORCPT + 99 others); Thu, 21 Mar 2019 16:16:05 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40644 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728316AbfCUUQF (ORCPT ); Thu, 21 Mar 2019 16:16:05 -0400 Received: by mail-wr1-f67.google.com with SMTP id t5so8051871wri.7 for ; Thu, 21 Mar 2019 13:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=pqC8bFm2Wf1s8GpzzZo76PBATWaK/VBLqxdzhGES4Sc=; b=BbfdCkoZWQ7XoPU6Mmyhas0B+RKZef2OyTgBD3IqDyxO33oyUtPfXCMYrlmmG73sqI IfwphO3mLJEto26um/XfvikHG+J7mCV6pPkHy7+3ZtUNP2a1Ia9n3ioJL/nqz6ZGTUFR 9829YR4qpmDsfMe5YDdIxdvo7wQYq+eZYJFfZ0RoeTHbA9kpk3vR8iuaFOOPwCSGN7sa PsrzGGMrVqhbn8beEI5DUA9Shsx297pw57NoCnxhGUwNexnjQJfJ5+v+ubLSH6u5rDWp 5c7BtT4JtcEJqAKBSADkdTWVV6qlsfJiD2bLcbZwKiAOz0I0Zv6iyUn6YNtjM3xWGg23 xVHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=pqC8bFm2Wf1s8GpzzZo76PBATWaK/VBLqxdzhGES4Sc=; b=aIgIts8IzGnjYYyaMzfwoVV/IcVbiTRJHuGluturcCaPkuu7uMiSGQnUESOoKGryWt D6gmiS6YbigU7bp0K5fjEQMTMoD3euJIELMc/PXCPJZnWmrj98w9s9JnAGqSGrWl276V YrW9MiBzN8/fPXnz4p16UB7Lj8PiUo6LvwzIxPmKpl+hQemvzbeZn3Cn3+U0lf6KqpP8 xYIqa5JGWyuQ1dEh9QFdW1tynqBhr04c0VorRDDBeW0Ayvv/Cmd5NitYHHD7J6Dl2ZkA KcCNt7fp9ACfnd+ZfIYQ5QD9dlfRZ4KRRTLx6gdUnGxqu6WFF2gbnjxyTUrji7c/Vh2j MDVA== X-Gm-Message-State: APjAAAUveNWMPbBH8u5pukE6L1QMR6Ot4fPikxmvjUrI+7AWLrLbT2ok MqhuVoObk7rdrTmD66I6Um5AEUVV8w2LQ/a4mBBwEA== X-Received: by 2002:adf:cd90:: with SMTP id q16mr3745478wrj.75.1553199363177; Thu, 21 Mar 2019 13:16:03 -0700 (PDT) MIME-Version: 1.0 References: <1551819273-640-1-git-send-email-john.stultz@linaro.org> <1551819273-640-5-git-send-email-john.stultz@linaro.org> In-Reply-To: From: John Stultz Date: Thu, 21 Mar 2019 13:15:52 -0700 Message-ID: Subject: Re: [RFC][PATCH 4/5 v2] dma-buf: heaps: Add CMA heap to dmabuf heapss To: Benjamin Gaignard Cc: lkml , Laura Abbott , Greg KH , Sumit Semwal , Liam Mark , Brian Starkey , "Andrew F . Davis" , Chenbo Feng , Alistair Strachan , ML dri-devel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 6, 2019 at 8:05 AM Benjamin Gaignard wrote: > Le mar. 5 mars 2019 =C3=A0 21:54, John Stultz a = =C3=A9crit : > > +#define to_cma_heap(x) container_of(x, struct cma_heap, heap) > > Even if I had write this macro years ago, now I would prefer to have a > static inline function > to be able to check the types. > > with that: > Reviewed-by: Benjamin Gaignard Thanks for the suggestion! I've reworked that and the other container_of macro I had in the patch series to be inline functions. thanks again! -john