Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp550002pxj; Thu, 27 May 2021 06:30:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKgZ6sp2GGYoo5v70a4EEWOLI0EQWaozE72xtO8uulJByxKLgHsmAQ6d1tBmaSK+KyoXLj X-Received: by 2002:a5d:8f81:: with SMTP id l1mr2743233iol.115.1622122253428; Thu, 27 May 2021 06:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622122253; cv=none; d=google.com; s=arc-20160816; b=gmqPvwKRsj9lFhz66X/3pbZTK4AApINLEJZWO4ClvdrGBtJMUh0wvn9Z9FWko1H5E8 G5+zyLSlYutWutmPrVwTblyIxufdAI/S2hDbEAU+wPIk4F6kLwD4zlwMAgeQW37sRUpy 9YXOvzBXR/+UsyXsN+NFE685gGPaYs/PfDBzSxks4F5LERT6st6kJfD+pwxcrB6sdj18 L/QqHP28U9RNj05pNHun0xGlrpyMAbr0meyvBEjDim9stuHi4UKEmPsMwuozqYzaywLn Tyn0aVzRodKcegiz2IIptzzAMhcF4d4NvQIHBtbuYUyQuOi/C2Jr5S13GibGYN5UNTFA 3YwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=AQn5hfzCLEc4kb2lSXsNArfQbcigMS5+il9swaELA4E=; b=VAmW2drdYT/keWvMz0W5gOtMCkUYTBf3qUWCxBZ/9y3ZIhwFlDM7difbladrTByl7c 1FhauE5FHDHKtI6DaFfVjbcRaIfGL1RiFntlzXHGAVRU2Il3m1ZadYPDDH1U76cA6YAw MJNnFJC2D1rKyx/pnk1W1hVXVfaOOgNzDqglMY6WX7yrD9dSyAgm+9avIGUDLuu5hbv8 3eXsDVMNnX/rklbETtqot2TH/X74eux6r2w45YVvZajy7ThUPW67a2E2nvUtw/q1Hz16 p74KqhBJCi3TM2X46p5M8XeXy87i+fKkCaqm2aGvTXufKXRiksuCV/fC+uhZTSPhfte/ f3sA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si2411496jai.103.2021.05.27.06.30.22; Thu, 27 May 2021 06:30:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236491AbhE0NaB (ORCPT + 99 others); Thu, 27 May 2021 09:30:01 -0400 Received: from verein.lst.de ([213.95.11.211]:39102 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236488AbhE0N37 (ORCPT ); Thu, 27 May 2021 09:29:59 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 290AE68AFE; Thu, 27 May 2021 15:28:23 +0200 (CEST) Date: Thu, 27 May 2021 15:28:22 +0200 From: Christoph Hellwig To: Claire Chang Cc: Rob Herring , mpe@ellerman.id.au, Joerg Roedel , Will Deacon , Frank Rowand , Konrad Rzeszutek Wilk , boris.ostrovsky@oracle.com, jgross@suse.com, Christoph Hellwig , Marek Szyprowski , benh@kernel.crashing.org, paulus@samba.org, "list@263.net:IOMMU DRIVERS" , sstabellini@kernel.org, Robin Murphy , grant.likely@arm.com, xypron.glpk@gmx.de, Thierry Reding , mingo@kernel.org, bauerman@linux.ibm.com, peterz@infradead.org, Greg KH , Saravana Kannan , "Rafael J . Wysocki" , heikki.krogerus@linux.intel.com, Andy Shevchenko , Randy Dunlap , Dan Williams , Bartosz Golaszewski , linux-devicetree , lkml , linuxppc-dev@lists.ozlabs.org, xen-devel@lists.xenproject.org, Nicolas Boichat , Jim Quinlan , tfiga@chromium.org, bskeggs@redhat.com, bhelgaas@google.com, chris@chris-wilson.co.uk, daniel@ffwll.ch, airlied@linux.ie, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, jani.nikula@linux.intel.com, jxgao@google.com, joonas.lahtinen@linux.intel.com, linux-pci@vger.kernel.org, maarten.lankhorst@linux.intel.com, matthew.auld@intel.com, rodrigo.vivi@intel.com, thomas.hellstrom@linux.intel.com Subject: Re: [PATCH v7 07/15] swiotlb: Update is_swiotlb_active to add a struct device argument Message-ID: <20210527132822.GE26160@lst.de> References: <20210518064215.2856977-1-tientzu@chromium.org> <20210518064215.2856977-8-tientzu@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210518064215.2856977-8-tientzu@chromium.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > + if (is_swiotlb_active(NULL)) { Passing a NULL argument to this doesn't make sense. They all should have a struct device at hand, you'll just need to dig for it. And this function should be about to go away anyway, but until then we need to do this properly.