Skip to contentSkip to conversation

linux-next: build failure after merge of the nvdimm tree

DISCUSSION Stephen Rothwell 3 participants 6 messages Jul 5, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the nvdimm tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from <command-line>:32:
./usr/include/linux/virtio_pmem.h:19:2: error: unknown type name 'uint64_t'
uint64_t start;
^~~~~~~~
./usr/include/linux/virtio_pmem.h:20:2: error: unknown type name 'uint64_t'
uint64_t size;
^~~~~~~~

Caused by commit

403b7f973855 ("virtio-pmem: Add virtio pmem driver")

I have used the nvdimm tree from next-20190704 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen,

Quoted 14 lines

Hi all,

After merging the nvdimm tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from :32:
./usr/include/linux/virtio_pmem.h:19:2: error: unknown type name 'uint64_t'
uint64_t start;
^~~~~~~~
./usr/include/linux/virtio_pmem.h:20:2: error: unknown type name 'uint64_t'
uint64_t size;
^~~~~~~~

Quoted 5 lines

Caused by commit

403b7f973855 ("virtio-pmem: Add virtio pmem driver")

I have used the nvdimm tree from next-20190704 for today.

Thank you for the report.

Can we apply below patch [1] on top to complete linux-next build for today. I have tested this locally.

Thanks,
Pankaj

========

[1]

drivers/nvdimm/virtio_pmem.h +2 -2
index 998efbc7660c..dbc12dfe8067 100644
@@ -46,8 +46,8 @@ struct virtio_pmem {
        spinlock_t pmem_lock;
 
        /* Memory region information */
-       uint64_t start;
-       uint64_t size;
+       u64 start;
+       u64 size;
 };
 
 void virtio_pmem_host_ack(struct virtqueue *vq);
include/uapi/linux/virtio_pmem.h +4 -5
index 379861f114f1..efcd72f2d20d 100644
@@ -11,25 +11,24 @@
 #define _UAPI_LINUX_VIRTIO_PMEM_H
 
 #include <linux/types.h>
-#include <linux/virtio_types.h>
 #include <linux/virtio_ids.h>
 #include <linux/virtio_config.h>
 
 struct virtio_pmem_config {
-       uint64_t start;
-       uint64_t size;
+       __u64 start;
+       __u64 size;
 };
 
 #define VIRTIO_PMEM_REQ_TYPE_FLUSH      0
 
 struct virtio_pmem_resp {
        /* Host return status corresponding to flush request */
-       __virtio32 ret;
+       __u32 ret;
 };
 
 struct virtio_pmem_req {
        /* command type */
-       __virtio32 type;
+       __u32 type;
 };
#2 lore raw

Hi Pankaj,

Quoted 2 lines · On Fri, 5 Jul 2019 04:45:43 -0400 (EDT) Pankaj Gupta <[email protected]> wrote:

Thank you for the report.

That's what I am here for :-)

Quoted 2 lines

Can we apply below patch [1] on top to complete linux-next build for today. I have tested this locally.

Its a bit of a pain to go back and linux-next is done for today (after 13 hours :-)). You really should do a proper fix patch and get it added to the nvdimm tree.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 10 lines

Hi Pankaj,

Quoted 2 lines · On Fri, 5 Jul 2019 04:45:43 -0400 (EDT) Pankaj Gupta <[email protected]> wrote:

Thank you for the report.

That's what I am here for :-)

:-)

Quoted 7 lines
Quoted 3 lines

Can we apply below patch [1] on top to complete linux-next build for today. I have tested this locally.

Its a bit of a pain to go back and linux-next is done for today (after 13 hours :-)). You really should do a proper fix patch and get it added to the nvdimm tree.

Sure, Thank you! Stephen.

Best regards,
Pankaj

Quoted 5 lines

--
Cheers,
Stephen Rothwell

#4 lore raw
In reply to Stephen Rothwell
Quoted 6 lines · Stephen Rothwell

Hi all,

After merging the nvdimm tree, today's linux-next build (x86_64 allmodconfig) failed like this:

Quoted 7 lines

In file included from <command-line>:32:
./usr/include/linux/virtio_pmem.h:19:2: error: unknown type name 'uint64_t'
uint64_t start;
^~~~~~~~
./usr/include/linux/virtio_pmem.h:20:2: error: unknown type name 'uint64_t'
uint64_t size;
^~~~~~~~

/me boggles at how this sat in 0day visible tree for a long while without this report?

Quoted 6 lines

Caused by commit

403b7f973855 ("virtio-pmem: Add virtio pmem driver")

I have used the nvdimm tree from next-20190704 for today.

Thanks Stephen, sorry for the noise.

#5 lore raw

Hi Dan,

Quoted 14 lines · On Fri, 5 Jul 2019 15:32:19 -0700 Dan Williams <[email protected]> wrote:
Quoted 11 lines · Stephen Rothwell

After merging the nvdimm tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from <command-line>:32:
./usr/include/linux/virtio_pmem.h:19:2: error: unknown type name 'uint64_t'
uint64_t start;
^~~~~~~~
./usr/include/linux/virtio_pmem.h:20:2: error: unknown type name 'uint64_t'
uint64_t size;
^~~~~~~~

Quoted 2 lines

/me boggles at how this sat in 0day visible tree for a long while without this report?

These messages are produced by a new test in the kbuild tree, so you need both it and the nvdimm tree together to get them. That will change after the merge window, of course.

Signature · 2 lines
Cheers,
Stephen Rothwell