Repalce kthread_create/wake_up_process() with kthread_run()
to simplify the code.
Signed-off-by: Cai Huoqing
---
drivers/vhost/vhost.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index 59edb5a1ffe2..e67bd5603b5f 100644
use SPDX-License-Identifier instead of a verbose license text
Signed-off-by: Cai Huoqing
---
drivers/vhost/scsi.c | 14 +-
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
index 46f897e41217..532e204f2b1b 100644
--- a/drivers
it's a nice refactor to make use of
PFN_PHYS/PFN_UP/PFN_DOWN helper macro
Signed-off-by: Cai Huoqing
---
drivers/vhost/vdpa.c | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c
index 210ab35
Is it a error, try “make virtio” in the path of linux/tools/ with config
VHOST_IOTLB=n
-Original Message-
From: Cai,Huoqing
Sent: 2021年7月14日 10:29
To: sgarz...@redhat.com; m...@redhat.com; jasow...@redhat.com
Cc: virtualization@lists.linux-foundation.org; linux-ker...@vger.kernel.org
when run "make virtio" in linux/tools,
the error: "'prev' and 'head_flags' may be used
uninitialized in this function" occurs
Signed-off-by: Cai Huoqing
---
drivers/virtio/virtio_ring.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
dif
when run "make virtio" in linux/tools,
the error: unknown type name 'spinlock_t' occurs
Signed-off-by: Cai Huoqing
---
include/linux/vringh.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/vringh.h b/include/linux/vringh.h
index 84db7b8f912f..ff21c
the errors occurs when run "make virtio" in linux/tools
Cai Huoqing (2):
virtio_ring: fix error - unknown type name 'spinlock_t'
virtio_ring: fix error - 'prev' and 'head_flags' may be used
uninitialized in this function
drivers/virtio/virtio_r
coding-style.rst shows that:
if (condition) {
do_this();
do_that();
} else {
otherwise();
}
Signed-off-by: Cai Huoqing
---
drivers/net/virtio_net.c | 3 ++-
drivers/vhost/vringh.c | 3 ++-
2 files changed, 4 insertions
coding-style.rst shows that:
if (condition) {
do_this();
do_that();
} else {
otherwise();
}
Signed-off-by: Cai Huoqing
---
drivers/net/virtio_net.c | 3 ++-
drivers/vhost/vringh.c | 3 ++-
2 files changed, 4 insertions