printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / virtio_anchor.h
blob432e6c00b3cae055febe7db95d7dc994c02aa881
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_VIRTIO_ANCHOR_H
3 #define _LINUX_VIRTIO_ANCHOR_H
5 #ifdef CONFIG_VIRTIO_ANCHOR
6 struct virtio_device;
8 bool virtio_require_restricted_mem_acc(struct virtio_device *dev);
9 extern bool (*virtio_check_mem_acc_cb)(struct virtio_device *dev);
11 static inline void virtio_set_mem_acc_cb(bool (*func)(struct virtio_device *))
13 virtio_check_mem_acc_cb = func;
15 #else
16 #define virtio_set_mem_acc_cb(func) do { } while (0)
17 #endif
19 #endif /* _LINUX_VIRTIO_ANCHOR_H */