# Re: \[PATCH v7 07/15\] swiotlb: Update is\_swiotlb\_active to add a struct device argument

- From: Christoph Hellwig \<hch@lst.de\>
- Date: 2021-05-27 13:28:31 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/05/1394049
- Thread: https://ratatoskr.run/linux-devicetree/2021/05/1381603/t.md

```text
> +	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.
```
