Merge tag 'fbdev-for-6.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller...
[linux-block.git] / include / linux / virtio_anchor.h
CommitLineData
a603002e
JG
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_VIRTIO_ANCHOR_H
3#define _LINUX_VIRTIO_ANCHOR_H
4
5#ifdef CONFIG_VIRTIO_ANCHOR
6struct virtio_device;
7
8bool virtio_require_restricted_mem_acc(struct virtio_device *dev);
9extern bool (*virtio_check_mem_acc_cb)(struct virtio_device *dev);
10
11static inline void virtio_set_mem_acc_cb(bool (*func)(struct virtio_device *))
12{
13 virtio_check_mem_acc_cb = func;
14}
15#else
16#define virtio_set_mem_acc_cb(func) do { } while (0)
17#endif
18
19#endif /* _LINUX_VIRTIO_ANCHOR_H */