Commit 89997c51 authored by xianglai li's avatar xianglai li
Browse files

loongarch/kvm: Modify the kvm code style

LoongArch inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8ONTF



------------------------------------------

Modify the kvm code style so that script/checkpatch.pl checks can pass.

Signed-off-by: default avatarxianglai li <lixianglai@loongson.cn>
parent 9662520d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ struct reg2i14_format {
};

struct reg0i15_format {
	unsigned int simmediate	: 15;
	unsigned int immediate	: 15;
	unsigned int opcode	: 17;
};

+2 −2
Original line number Diff line number Diff line
@@ -252,7 +252,7 @@ static inline unsigned long readl_sw_gcsr(struct loongarch_csrs *csr, int reg)
	return csr->csrs[reg];
}

static inline void writel_sw_gcsr(struct loongarch_csrs *csr, int reg, \
static inline void writel_sw_gcsr(struct loongarch_csrs *csr, int reg,
		unsigned long val)
{
	csr->csrs[reg] = val;
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
/*
 * Hypcall code field
 */
#define KVM_HC_CODE_SERIVCE     0x0
#define KVM_HC_CODE_SERVICE     0x0
#define KVM_HC_CODE_SWDBG       0x5
/*
 *	function id
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o \
KVM := ../../../virt/kvm
common-objs-$(CONFIG_KVM_VFIO) += $(KVM)/vfio.o

EXTRA_CFLAGS += -Ivirt/kvm -Iarch/loongarch/kvm
ccflags-y += -Ivirt/kvm -Iarch/loongarch/kvm

kvm-objs := $(common-objs-y) loongarch.o emulate.o interrupt.o
kvm-objs += hypcall.o
+543 −201

File changed.

Preview size limit exceeded, changes collapsed.

Loading