# Re: \[PATCH\] virtio: mark vring\_dma\_dev() static

- From: Arnd Bergmann \<arnd@arndb.de\>
- Date: 2016-09-01 11:16:31 
- List: virtualization
- Page: https://ratatoskr.run/virtualization/2016/09/4826638
- Thread: https://ratatoskr.run/lkml/2016/09/4826630/t.md

```text
On Thursday, September 1, 2016 7:02:57 PM CEST Baoyou Xie wrote:
> We get 1 warning when building kernel with W=1:
> drivers/virtio/virtio_ring.c:170:16: warning: no previous prototype for 'vring_dma_dev' [-Wmissing-prototypes]
> 
> In fact, this function is only used in the file in which it is
> declared and don't need a declaration, but can be made static.
> so this patch marks this function with 'static'.
> 
> Signed-off-by: Baoyou Xie <redacted>
> 

Acked-by: Arnd Bergmann <arnd@arndb.de>
```
