Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp965033ybz; Fri, 1 May 2020 11:46:24 -0700 (PDT) X-Google-Smtp-Source: APiQypKXfLJtueY+qXtHRJihDUm4hUn7zAAcNJA6VVrDhnAKc6rAO3CNI4G5fJ0Zud+OtjtArEgw X-Received: by 2002:a05:6402:1296:: with SMTP id w22mr4555309edv.364.1588358783935; Fri, 01 May 2020 11:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588358783; cv=none; d=google.com; s=arc-20160816; b=taTdpqnoEibdhHM1T9cqmTsXfN0AWJ4S501HCgqdZSsfoHE1rzOovcsJ70M0m/P4a1 DLb5cZbd8sOWRMRYcl5Lt+cQc9nJPPhfh99NVilzFNiNNwfUumVrO2Q6ZxD16gchTtHW xn4b3qJelCPcUM3CNTEpdWNKupU4vyfl5TLSin5ADeuxVwHc3qYcnsWyrY6fwyp4Rwx/ 26+oGALFnvGGJGyzpwEG8u2hGP0nnKc31hWXiqg1lFDsL038+FERgRYH0cwto5LBytBo sQ/IBSRjFhHmuK/gvSub4Hx/9YSc1jT+Jzu9XrKvEQR8CI4YYT6IcFKunuX9HLd6rBCp gBFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yq7Ibs47iQ7Lo5VGMp7gRZ6yUxyqVA2i9kts0jwiLrg=; b=u/HtGHLKMO7UrizJz0mHZ3im2yje5gM9Lcbjg40RBr/RxOKmB+7RUtUMRyfAFNSPBv DIJaHeqs4UqLbqXC7YNSDzNdQDHBwgpLHIZc9CjaZAAv1WesQLmvD25B9u1N58mxu75C lPl61ntggpBcffglYpUYWRi7MADbU5BI4pDa14gTwoPbEDeM9TKfy0ndFyOXlbKYr0PU LHwkSUE6ZtC+QY3JgcaBkBNG8l7u9qqHos9+cp/x95qvVQEYHMUFag1+A22BtRR0qgaS 5JFj5J8RlR/D514OI5svKgwn2c4k5ZTiNWDHqg73oh5sJnB6luH8+ah/szRdogpWLOpQ oS/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sqk3ZNvO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b17si2279826ejd.452.2020.05.01.11.46.00; Fri, 01 May 2020 11:46:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sqk3ZNvO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730189AbgEASmk (ORCPT + 99 others); Fri, 1 May 2020 14:42:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729721AbgEASmk (ORCPT ); Fri, 1 May 2020 14:42:40 -0400 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72EB6C061A0C for ; Fri, 1 May 2020 11:42:40 -0700 (PDT) Received: by mail-ot1-x342.google.com with SMTP id j4so3262958otr.11 for ; Fri, 01 May 2020 11:42:40 -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; bh=yq7Ibs47iQ7Lo5VGMp7gRZ6yUxyqVA2i9kts0jwiLrg=; b=Sqk3ZNvO90q24WbyfeYjeqHXxER0SZRc5xSI5RM5Nuv9B3ZrYEi33jQuT1hGlipWhW hvfe10Z7MjuWVqIgFIGCh1vX61lDdIWshuPxlhpxYvSGgIykaDH4wYq9CcG9PYvJCxnG Qod+n3wh9PZsgmkcNsHVm4KLG8FyyBIFO8o+o+M0pbZrNFM0eWtfAF6okflgipvcQ1k0 ZpKOab+w3go1VnlFI2C/NWHJFgBePuy+8oTNmaHzdoaXKkj+5vcaptuIxg4ethg4nCCg oe12HiqThde5msD1xr4IG5FgmGjSqY+lbxjSPwdLZoqN9ONczywqxt+3yssPl4cyaexa 9RFg== 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; bh=yq7Ibs47iQ7Lo5VGMp7gRZ6yUxyqVA2i9kts0jwiLrg=; b=XwwGRxoTHHcybDLBMQw7XOVfNL0nLugyw5gs0pXLaBCbMItDumvAT28Bz+QuKId1dL aj95dky268ZzZXj2i6s6Z+tFA+5ciN+OCOPWZtkJ47K8+iN/XWJg/2iBCkS4IVy9JG+v hWNN0E1U/nJ0v9bE3QwssMjyxs31KMBqVY4sVbGX4eMFvbtL6eLu5QKOD64W7WrUXk5S 7hQNQGZPUJAKQlAuF6UrrYlIgzkk84ansgNuEkVR0nx4DXnbzl5UKyfJkzMRKgejdBGE xLA/thaaSHKBd+T0qXLVCb8EwnhpHJixOJxf9mIfydk5dwdIrapL8xel3WAAP2JGVnOe zYpg== X-Gm-Message-State: AGi0Puafv906Os215Be+nD2ukCD2+fiORGBS7w7f69cc3V3cFh7dpgDT WZcndkn6OxETy0UtW8aWOYMh3Nwyef45ttIrrbacbg== X-Received: by 2002:a05:6830:1589:: with SMTP id i9mr4948265otr.102.1588358559590; Fri, 01 May 2020 11:42:39 -0700 (PDT) MIME-Version: 1.0 References: <20200501073949.120396-1-john.stultz@linaro.org> <20200501073949.120396-3-john.stultz@linaro.org> <20200501104810.v6oa2yhawr4iki67@DESKTOP-E1NTVVP.localdomain> In-Reply-To: <20200501104810.v6oa2yhawr4iki67@DESKTOP-E1NTVVP.localdomain> From: John Stultz Date: Fri, 1 May 2020 11:42:28 -0700 Message-ID: Subject: Re: [RFC][PATCH 2/4] mm: cma: Add dma_heap flag to cma structure To: Brian Starkey Cc: lkml , Rob Herring , Sumit Semwal , "Andrew F. Davis" , Benjamin Gaignard , Liam Mark , Pratik Patel , Laura Abbott , Chenbo Feng , Alistair Strachan , Sandeep Patil , Hridya Valsaraju , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Andrew Morton , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , dri-devel , linux-mm , nd Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 1, 2020 at 3:48 AM Brian Starkey wrote: > On Fri, May 01, 2020 at 07:39:47AM +0000, John Stultz wrote: > > +bool cma_dma_heap_enabled(struct cma *cma) > > +{ > > + return !!cma->dma_heap; > > Stylistic thing, but I don't think the !! is really necessary. It's > already a bool anyway. Yea, I was using a bit field earlier and then moved to a bool for simplicity and left this. I saw it as soon as I sent the patch, so it's already fixed up. > > @@ -157,6 +167,7 @@ static int __init cma_init_reserved_areas(void) > > } > > core_initcall(cma_init_reserved_areas); > > > > + > > nit: spurious newline Yep. Same. The things you only see once the mail is sent. :) Thanks so much for the review though! -john