Skip to contentSkip to conversation

tools/virtio: Fix build

PATCH In review Jan Kiszka 2 participants 11 messages Oct 13, 2019 virtio core

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 tools/virtio: Fix build

From: Jan Kiszka <[email protected]>

Various changes in the recent kernel versions broke the build due to missing function and header stubs.

---
 tools/virtio/crypto/hash.h       | 0
 tools/virtio/linux/dma-mapping.h | 2 ++
 tools/virtio/linux/kernel.h      | 2 ++
 3 files changed, 4 insertions(+)
 create mode 100644 tools/virtio/crypto/hash.h
tools/virtio/crypto/hash.h new file +0 -0
new file mode 100644
index 000000000000..e69de29bb2d1
tools/virtio/linux/dma-mapping.h +2 -0
index f91aeb5fe571..db96cb4bf877 100644
@@ -29,4 +29,6 @@ enum dma_data_direction {
 #define dma_unmap_single(...) do { } while (0)
 #define dma_unmap_page(...) do { } while (0)
 
+#define dma_max_mapping_size(d)	0
+
 #endif
tools/virtio/linux/kernel.h +2 -0
index 6683b4a70b05..ccf321173210 100644
@@ -141,4 +141,6 @@ static inline void free_page(unsigned long addr)
 #define list_for_each_entry(a, b, c) while (0)
 /* end of stubs */
 
+#define xen_domain() 0
+
 #endif /* KERNEL_H */

--
2.16.4

#1 lore raw
Quoted 6 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Various changes in the recent kernel versions broke the build due to missing function and header stubs.

Thanks!
I think it's already fixes in the vhost tree.
That tree also includes a bugfix for the test.
Can you pls give it a spin and report?
Thanks!

Quoted 34 lines
---
 tools/virtio/crypto/hash.h       | 0
 tools/virtio/linux/dma-mapping.h | 2 ++
 tools/virtio/linux/kernel.h      | 2 ++
 3 files changed, 4 insertions(+)
 create mode 100644 tools/virtio/crypto/hash.h
tools/virtio/crypto/hash.h new file +0 -0
new file mode 100644
index 000000000000..e69de29bb2d1
tools/virtio/linux/dma-mapping.h +2 -0
index f91aeb5fe571..db96cb4bf877 100644
@@ -29,4 +29,6 @@ enum dma_data_direction {
 #define dma_unmap_single(...) do { } while (0)
 #define dma_unmap_page(...) do { } while (0)
 
+#define dma_max_mapping_size(d)	0
+
 #endif
tools/virtio/linux/kernel.h +2 -1
index 6683b4a70b05..ccf321173210 100644
@@ -141,4 +141,6 @@ static inline void free_page(unsigned long addr)
 #define list_for_each_entry(a, b, c) while (0)
 /* end of stubs */
 
+#define xen_domain() 0
+
 #endif /* KERNEL_H */
--

2.16.4

#2 lore raw
In reply to Jan Kiszka
Quoted 6 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Various changes in the recent kernel versions broke the build due to missing function and header stubs.

Thanks!
I think it's already fixes in the vhost tree.
That tree also includes a bugfix for the test.
Can you pls give it a spin and report?
Thanks!

Quoted 34 lines
---
 tools/virtio/crypto/hash.h       | 0
 tools/virtio/linux/dma-mapping.h | 2 ++
 tools/virtio/linux/kernel.h      | 2 ++
 3 files changed, 4 insertions(+)
 create mode 100644 tools/virtio/crypto/hash.h
tools/virtio/crypto/hash.h new file +0 -0
new file mode 100644
index 000000000000..e69de29bb2d1
tools/virtio/linux/dma-mapping.h +2 -0
index f91aeb5fe571..db96cb4bf877 100644
@@ -29,4 +29,6 @@ enum dma_data_direction {
 #define dma_unmap_single(...) do { } while (0)
 #define dma_unmap_page(...) do { } while (0)
 
+#define dma_max_mapping_size(d)	0
+
 #endif
tools/virtio/linux/kernel.h +2 -1
index 6683b4a70b05..ccf321173210 100644
@@ -141,4 +141,6 @@ static inline void free_page(unsigned long addr)
 #define list_for_each_entry(a, b, c) while (0)
 /* end of stubs */
 
+#define xen_domain() 0
+
 #endif /* KERNEL_H */
--

2.16.4

author
#3 lore raw
Quoted 6 lines · Michael S. Tsirkin
Quoted 5 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Various changes in the recent kernel versions broke the build due to missing function and header stubs.

Quoted 6 lines
Quoted 1 line

Thanks!
I think it's already fixes in the vhost tree.
That tree also includes a bugfix for the test.
Can you pls give it a spin and report?

Mostly fixed: the xen_domain stup is missing.

Jan

Quoted 36 lines

Thanks!

Quoted 34 lines
---
 tools/virtio/crypto/hash.h       | 0
 tools/virtio/linux/dma-mapping.h | 2 ++
 tools/virtio/linux/kernel.h      | 2 ++
 3 files changed, 4 insertions(+)
 create mode 100644 tools/virtio/crypto/hash.h
tools/virtio/crypto/hash.h new file +0 -0
new file mode 100644
index 000000000000..e69de29bb2d1
tools/virtio/linux/dma-mapping.h +2 -0
index f91aeb5fe571..db96cb4bf877 100644
@@ -29,4 +29,6 @@ enum dma_data_direction {
 #define dma_unmap_single(...) do { } while (0)
 #define dma_unmap_page(...) do { } while (0)
 
+#define dma_max_mapping_size(d)	0
+
 #endif
tools/virtio/linux/kernel.h +2 -1
index 6683b4a70b05..ccf321173210 100644
@@ -141,4 +141,6 @@ static inline void free_page(unsigned long addr)
 #define list_for_each_entry(a, b, c) while (0)
 /* end of stubs */
 
+#define xen_domain() 0
+
 #endif /* KERNEL_H */
--

2.16.4

author
#4 lore raw
In reply to Michael S. Tsirkin
Quoted 6 lines · Michael S. Tsirkin
Quoted 5 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Various changes in the recent kernel versions broke the build due to missing function and header stubs.

Quoted 6 lines
Quoted 1 line

Thanks!
I think it's already fixes in the vhost tree.
That tree also includes a bugfix for the test.
Can you pls give it a spin and report?

Mostly fixed: the xen_domain stup is missing.

Jan

Quoted 36 lines

Thanks!

Quoted 34 lines
---
 tools/virtio/crypto/hash.h       | 0
 tools/virtio/linux/dma-mapping.h | 2 ++
 tools/virtio/linux/kernel.h      | 2 ++
 3 files changed, 4 insertions(+)
 create mode 100644 tools/virtio/crypto/hash.h
tools/virtio/crypto/hash.h new file +0 -0
new file mode 100644
index 000000000000..e69de29bb2d1
tools/virtio/linux/dma-mapping.h +2 -0
index f91aeb5fe571..db96cb4bf877 100644
@@ -29,4 +29,6 @@ enum dma_data_direction {
 #define dma_unmap_single(...) do { } while (0)
 #define dma_unmap_page(...) do { } while (0)
 
+#define dma_max_mapping_size(d)	0
+
 #endif
tools/virtio/linux/kernel.h +2 -1
index 6683b4a70b05..ccf321173210 100644
@@ -141,4 +141,6 @@ static inline void free_page(unsigned long addr)
 #define list_for_each_entry(a, b, c) while (0)
 /* end of stubs */
 
+#define xen_domain() 0
+
 #endif /* KERNEL_H */
--

2.16.4

#5 lore raw
Quoted 9 lines · Jan Kiszka
Quoted 8 lines · Michael S. Tsirkin
Quoted 6 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Various changes in the recent kernel versions broke the build due to missing function and header stubs.

Quoted 8 lines
Quoted 4 lines

Thanks!
I think it's already fixes in the vhost tree.
That tree also includes a bugfix for the test.
Can you pls give it a spin and report?

Mostly fixed: the xen_domain stup is missing.

Jan

That's in xen/xen.h. Do you still see any build errors?

Quoted 36 lines
Quoted 36 lines

Thanks!

Quoted 34 lines
---
 tools/virtio/crypto/hash.h       | 0
 tools/virtio/linux/dma-mapping.h | 2 ++
 tools/virtio/linux/kernel.h      | 2 ++
 3 files changed, 4 insertions(+)
 create mode 100644 tools/virtio/crypto/hash.h
tools/virtio/crypto/hash.h new file +0 -0
new file mode 100644
index 000000000000..e69de29bb2d1
tools/virtio/linux/dma-mapping.h +2 -0
index f91aeb5fe571..db96cb4bf877 100644
@@ -29,4 +29,6 @@ enum dma_data_direction {
 #define dma_unmap_single(...) do { } while (0)
 #define dma_unmap_page(...) do { } while (0)
 
+#define dma_max_mapping_size(d)	0
+
 #endif
tools/virtio/linux/kernel.h +2 -1
index 6683b4a70b05..ccf321173210 100644
@@ -141,4 +141,6 @@ static inline void free_page(unsigned long addr)
 #define list_for_each_entry(a, b, c) while (0)
 /* end of stubs */
 
+#define xen_domain() 0
+
 #endif /* KERNEL_H */
--

2.16.4

#6 lore raw
In reply to Jan Kiszka
Quoted 9 lines · Jan Kiszka
Quoted 8 lines · Michael S. Tsirkin
Quoted 6 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Various changes in the recent kernel versions broke the build due to missing function and header stubs.

Quoted 8 lines
Quoted 4 lines

Thanks!
I think it's already fixes in the vhost tree.
That tree also includes a bugfix for the test.
Can you pls give it a spin and report?

Mostly fixed: the xen_domain stup is missing.

Jan

That's in xen/xen.h. Do you still see any build errors?

Quoted 36 lines
Quoted 36 lines

Thanks!

Quoted 34 lines
---
 tools/virtio/crypto/hash.h       | 0
 tools/virtio/linux/dma-mapping.h | 2 ++
 tools/virtio/linux/kernel.h      | 2 ++
 3 files changed, 4 insertions(+)
 create mode 100644 tools/virtio/crypto/hash.h
tools/virtio/crypto/hash.h new file +0 -0
new file mode 100644
index 000000000000..e69de29bb2d1
tools/virtio/linux/dma-mapping.h +2 -0
index f91aeb5fe571..db96cb4bf877 100644
@@ -29,4 +29,6 @@ enum dma_data_direction {
 #define dma_unmap_single(...) do { } while (0)
 #define dma_unmap_page(...) do { } while (0)
 
+#define dma_max_mapping_size(d)	0
+
 #endif
tools/virtio/linux/kernel.h +2 -1
index 6683b4a70b05..ccf321173210 100644
@@ -141,4 +141,6 @@ static inline void free_page(unsigned long addr)
 #define list_for_each_entry(a, b, c) while (0)
 /* end of stubs */
 
+#define xen_domain() 0
+
 #endif /* KERNEL_H */
--

2.16.4

author
#7 lore raw
Quoted 15 lines · Michael S. Tsirkin
Quoted 14 lines · Jan Kiszka
Quoted 12 lines · Michael S. Tsirkin
Quoted 6 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Various changes in the recent kernel versions broke the build due to missing function and header stubs.

Thanks!
I think it's already fixes in the vhost tree.
That tree also includes a bugfix for the test.
Can you pls give it a spin and report?

Quoted 5 lines
Quoted 3 lines

Mostly fixed: the xen_domain stup is missing.

Jan

That's in xen/xen.h. Do you still see any build errors?

ca16cf7b30ca79eeca4d612af121e664ee7d8737 lacks this - forgot to add to some commit?

Jan

author
#8 lore raw
In reply to Michael S. Tsirkin
Quoted 15 lines · Michael S. Tsirkin
Quoted 14 lines · Jan Kiszka
Quoted 12 lines · Michael S. Tsirkin
Quoted 6 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Various changes in the recent kernel versions broke the build due to missing function and header stubs.

Thanks!
I think it's already fixes in the vhost tree.
That tree also includes a bugfix for the test.
Can you pls give it a spin and report?

Quoted 5 lines
Quoted 3 lines

Mostly fixed: the xen_domain stup is missing.

Jan

That's in xen/xen.h. Do you still see any build errors?

ca16cf7b30ca79eeca4d612af121e664ee7d8737 lacks this - forgot to add to some commit?

Jan

#9 lore raw
Quoted 18 lines · Jan Kiszka
Quoted 17 lines · Michael S. Tsirkin
Quoted 16 lines · Jan Kiszka
Quoted 6 lines · Michael S. Tsirkin
Quoted 5 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Various changes in the recent kernel versions broke the build due to missing function and header stubs.

Quoted 6 lines
Quoted 1 line

Thanks!
I think it's already fixes in the vhost tree.
That tree also includes a bugfix for the test.
Can you pls give it a spin and report?

Mostly fixed: the xen_domain stup is missing.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Jan

That's in xen/xen.h. Do you still see any build errors?

ca16cf7b30ca79eeca4d612af121e664ee7d8737 lacks this - forgot to add to some commit?

Jan

Oh, you are right.
Should be fixed now.
Thanks!

Signature · 1 line
MST
#10 lore raw
In reply to Jan Kiszka
Quoted 18 lines · Jan Kiszka
Quoted 17 lines · Michael S. Tsirkin
Quoted 16 lines · Jan Kiszka
Quoted 6 lines · Michael S. Tsirkin
Quoted 5 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Various changes in the recent kernel versions broke the build due to missing function and header stubs.

Quoted 6 lines
Quoted 1 line

Thanks!
I think it's already fixes in the vhost tree.
That tree also includes a bugfix for the test.
Can you pls give it a spin and report?

Mostly fixed: the xen_domain stup is missing.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Jan

That's in xen/xen.h. Do you still see any build errors?

ca16cf7b30ca79eeca4d612af121e664ee7d8737 lacks this - forgot to add to some commit?

Jan

Oh, you are right.
Should be fixed now.
Thanks!

Signature · 1 line
MST