diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2015-10-06 12:47:18 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-10 12:24:47 -0700 |
commit | ed392688b5312cd4f015b70669fb12c519218113 (patch) | |
tree | ad4127fb99f4b3de2e66e8696b8e905705533b62 /drivers/hwtracing/intel_th/msu.c | |
parent | 0df771dedf67622b9135709fe4cbfb3222481997 (diff) | |
download | linux-ed392688b5312cd4f015b70669fb12c519218113.tar.gz linux-ed392688b5312cd4f015b70669fb12c519218113.tar.xz |
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>
Diffstat (limited to 'drivers/hwtracing/intel_th/msu.c')
-rw-r--r-- | drivers/hwtracing/intel_th/msu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/intel_th/msu.c b/drivers/hwtracing/intel_th/msu.c index 99f7662e27f1..80a12384ed20 100644 --- a/drivers/hwtracing/intel_th/msu.c +++ b/drivers/hwtracing/intel_th/msu.c @@ -1056,7 +1056,7 @@ static int intel_th_msc_release(struct inode *inode, struct file *file) static ssize_t 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; if (msc->single_wrap) { |