uio_hv_generic: Remove use of PAGE_SIZE
authorSaurabh Sengar <ssengar@linux.microsoft.com>
Sat, 30 Mar 2024 08:52:03 +0000 (01:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2024 12:55:53 +0000 (14:55 +0200)
commit76457f9a11dd1521efeb553526d350100e1ef422
treeffb2673c12db02529905113846d95d6cdc70ce87
parentec314f61e4fc2d3dd6ea78aa18a5ac276eb1a8e3
uio_hv_generic: Remove use of PAGE_SIZE

Remove use of PAGE_SIZE for device ring buffer size calculation, as
there is no dependency on device ring buffer size for linux kernel's
PAGE_SIZE. Use the absolute value of 2 MB instead.

Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
Link: https://lore.kernel.org/r/1711788723-8593-8-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_hv_generic.c