clear_page(ptr);
ptr += maddr & ~PAGE_MASK;
mchunk = min_t(size_t, mbytes,
- (size_t)(PAGE_SIZE - (maddr & ~PAGE_MASK)));
- uchunk = min_t(size_t, ubytes, mchunk);
+ PAGE_SIZE - (maddr & ~PAGE_MASK));
+ uchunk = min(ubytes, mchunk);
result = copy_from_user(ptr, buf, uchunk);
kunmap(page);
ptr = kmap(page);
ptr += maddr & ~PAGE_MASK;
mchunk = min_t(size_t, mbytes,
- (size_t)(PAGE_SIZE - (maddr & ~PAGE_MASK)));
- uchunk = min_t(size_t, ubytes, mchunk);
+ PAGE_SIZE - (maddr & ~PAGE_MASK));
+ uchunk = min(ubytes, mchunk);
if (mchunk > uchunk) {
/* Zero the trailing part of the page */
memset(ptr + uchunk, 0, mchunk - uchunk);
r = vsnprintf(buf, sizeof(buf), fmt, args);
va_end(args);
- r = min_t(size_t, r, vmcoreinfo_max_size - vmcoreinfo_size);
+ r = min(r, vmcoreinfo_max_size - vmcoreinfo_size);
memcpy(&vmcoreinfo_data[vmcoreinfo_size], buf, r);