diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-03-19 04:47:30 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-03-19 04:47:30 -0400 |
commit | 0d4a42f6bd298e826620585e766a154ab460617a (patch) | |
tree | 406d8f7778691d858dbe3e48e4bbb10e99c0a58a /include/linux/virtio.h | |
parent | d62b4892f3d9f7dd2002e5309be10719d6805b0f (diff) | |
parent | a937536b868b8369b98967929045f1df54234323 (diff) |
Merge tag 'v3.9-rc3' into drm-intel-next-queued
Backmerge so that I can merge Imre Deak's coalesced sg entries fixes,
which depend upon the new for_each_sg_page introduce in
commit a321e91b6d73ed011ffceed384c40d2785cf723b
Author: Imre Deak <imre.deak@intel.com>
Date: Wed Feb 27 17:02:56 2013 -0800
lib/scatterlist: add simple page iterator
The merge itself is just two trivial conflicts:
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/virtio.h')
-rw-r--r-- | include/linux/virtio.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h index cf8adb1f5b2c..ff6714e6d0f5 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h | |||
@@ -78,7 +78,7 @@ struct virtio_device { | |||
78 | int index; | 78 | int index; |
79 | struct device dev; | 79 | struct device dev; |
80 | struct virtio_device_id id; | 80 | struct virtio_device_id id; |
81 | struct virtio_config_ops *config; | 81 | const struct virtio_config_ops *config; |
82 | struct list_head vqs; | 82 | struct list_head vqs; |
83 | /* Note that this is a Linux set_bit-style bitmap. */ | 83 | /* Note that this is a Linux set_bit-style bitmap. */ |
84 | unsigned long features[1]; | 84 | unsigned long features[1]; |
@@ -126,4 +126,13 @@ static inline struct virtio_driver *drv_to_virtio(struct device_driver *drv) | |||
126 | 126 | ||
127 | int register_virtio_driver(struct virtio_driver *drv); | 127 | int register_virtio_driver(struct virtio_driver *drv); |
128 | void unregister_virtio_driver(struct virtio_driver *drv); | 128 | void unregister_virtio_driver(struct virtio_driver *drv); |
129 | |||
130 | /* module_virtio_driver() - Helper macro for drivers that don't do | ||
131 | * anything special in module init/exit. This eliminates a lot of | ||
132 | * boilerplate. Each module may only use this macro once, and | ||
133 | * calling it replaces module_init() and module_exit() | ||
134 | */ | ||
135 | #define module_virtio_driver(__virtio_driver) \ | ||
136 | module_driver(__virtio_driver, register_virtio_driver, \ | ||
137 | unregister_virtio_driver) | ||
129 | #endif /* _LINUX_VIRTIO_H */ | 138 | #endif /* _LINUX_VIRTIO_H */ |