Commit 48866f7 1 parent 2c6d66f commit 48866f7 Copy full SHA for 48866f7
File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ typedef struct MSRReply {
67
67
typedef struct MSRQuery {
68
68
uint32 msrNum ; // IN
69
69
uint32 numLogicalCPUs ; // IN/OUT
70
- MSRReply logicalCPUs [0 ]; // OUT
70
+ MSRReply logicalCPUs []; // OUT
71
71
} MSRQuery ;
72
72
#pragma pack(pop)
73
73
Original file line number Diff line number Diff line change 41
41
compat_skb_set_network_header(skb, sizeof (struct ethhdr)), \
42
42
dev_queue_xmit(skb) \
43
43
)
44
- #define dev_lock_list () read_lock(&dev_base_lock)
45
- #define dev_unlock_list () read_unlock(&dev_base_lock)
44
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION (6 , 9 , 0 )
45
+ # define dev_lock_list () rcu_read_lock()
46
+ # define dev_unlock_list () rcu_read_unlock()
47
+ #else
48
+ # define dev_lock_list () read_lock(&dev_base_lock)
49
+ # define dev_unlock_list () read_unlock(&dev_base_lock)
50
+ #endif
46
51
47
52
48
53
extern struct proto vmnet_proto ;
You can’t perform that action at this time.
0 commit comments