mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
intel_th: Fix integer mismatch warnings
Use unsigned long in place of size_t to operate on buffer sizes and offsets to clean up the 32 bit build. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0df771dedf
commit
ed392688b5
@ -1056,7 +1056,7 @@ static int intel_th_msc_release(struct inode *inode, struct file *file)
|
|||||||
static ssize_t
|
static ssize_t
|
||||||
msc_single_to_user(struct msc *msc, char __user *buf, loff_t off, size_t len)
|
msc_single_to_user(struct msc *msc, char __user *buf, loff_t off, size_t len)
|
||||||
{
|
{
|
||||||
size_t size = msc->nr_pages << PAGE_SHIFT, rem = len;
|
unsigned long size = msc->nr_pages << PAGE_SHIFT, rem = len;
|
||||||
unsigned long start = off, tocopy = 0;
|
unsigned long start = off, tocopy = 0;
|
||||||
|
|
||||||
if (msc->single_wrap) {
|
if (msc->single_wrap) {
|
||||||
|
Loading…
Reference in New Issue
Block a user