Displaying 3 results from an estimated 3 matches for "9dfa96fea2b2".
2023 Apr 10
1
[PATCH] tools/virtio: fix build caused by virtio_ring changes
...of(ptr, type, member) ({ \
- const typeof( ((type *)0)->member ) *__mptr = (ptr); \
- (type *)( (char *)__mptr - offsetof(type,member) );})
-
# ifndef likely
# define likely(x) (__builtin_expect(!!(x), 1))
# endif
diff --git a/tools/virtio/linux/module.h b/tools/virtio/linux/module.h
index 9dfa96fea2b2..e2e791dbd104 100644
--- a/tools/virtio/linux/module.h
+++ b/tools/virtio/linux/module.h
@@ -5,3 +5,4 @@
static __attribute__((unused)) const char *__MODULE_LICENSE_name = \
__MODULE_LICENSE_value
+struct device;
--
2.25.1
2023 Apr 10
2
[PATCH v2 2/2] tools/virtio: fix build caused by virtio_ring changes
...*__mptr = (ptr); \
> > - (type *)( (char *)__mptr - offsetof(type,member) );})
> > -
> > # ifndef likely
> > # define likely(x) (__builtin_expect(!!(x), 1))
> > # endif
> > diff --git a/tools/virtio/linux/module.h b/tools/virtio/linux/module.h
> > index 9dfa96fea2b2..5cf39167d47a 100644
> > --- a/tools/virtio/linux/module.h
> > +++ b/tools/virtio/linux/module.h
> > @@ -4,4 +4,3 @@
> > #define MODULE_LICENSE(__MODULE_LICENSE_value) \
> > static __attribute__((unused)) const char *__MODULE_LICENSE_name = \
> > __MODULE_L...
2023 Apr 10
2
[PATCH v2 1/2] virtio_ring: add a struce device forward declaration
The virtio_ring header file uses the struct device without a forward
declaration.
Signed-off-by: Shunsuke Mie <mie at igel.co.jp>
---
include/linux/virtio_ring.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/virtio_ring.h b/include/linux/virtio_ring.h
index 8b95b69ef694..77a9c2f52919 100644
--- a/include/linux/virtio_ring.h
+++ b/include/linux/virtio_ring.h
@@ -58,6