mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
HID: hv: Remove dependencies on PAGE_SIZE for ring buffer
Define the ring buffer size as a constant expression because it should not depend on the guest page size. Signed-off-by: Maya Nakamura <m.maya.nakamura@gmail.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Acked-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9b54341965
commit
345f0254e5
1 changed files with 2 additions and 2 deletions
|
|
@ -104,8 +104,8 @@ struct synthhid_input_report {
|
|||
|
||||
#pragma pack(pop)
|
||||
|
||||
#define INPUTVSC_SEND_RING_BUFFER_SIZE (10*PAGE_SIZE)
|
||||
#define INPUTVSC_RECV_RING_BUFFER_SIZE (10*PAGE_SIZE)
|
||||
#define INPUTVSC_SEND_RING_BUFFER_SIZE (40 * 1024)
|
||||
#define INPUTVSC_RECV_RING_BUFFER_SIZE (40 * 1024)
|
||||
|
||||
|
||||
enum pipe_prot_msg_type {
|
||||
|
|
|
|||
Loading…
Reference in a new issue