diff -up ./arch/x86/mm/ioremap.c.w64 ./arch/x86/mm/ioremap.c --- ./arch/x86/mm/ioremap.c.w64 2016-12-11 00:27:13.000000000 +0900 +++ ./arch/x86/mm/ioremap.c 2017-02-06 22:19:51.000000000 +0900 @@ -116,7 +116,7 @@ static void __iomem *__ioremap_caller(re if (walk_system_ram_range(pfn, last_pfn - pfn + 1, NULL, __ioremap_check_ram) == 1) { WARN_ONCE(1, "ioremap on RAM at 0x%llx - 0x%llx\n", - phys_addr, last_addr); + (unsigned long long)phys_addr, (unsigned long long)last_addr); return NULL; } --- ./drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c 2016-12-11 00:27:13.000000000 +0900 +++ ../../../../kernel.org/linux-4.9.8/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c 2017-02-04 17:47:29.000000000 +0900 @@ -293,13 +293,10 @@ static int vmw_cmdbuf_header_submit(stru struct vmw_cmdbuf_man *man = header->man; u32 val; - if (sizeof(header->handle) > 4) - val = (header->handle >> 32); - else - val = 0; + val = upper_32_bits(header->handle); vmw_write(man->dev_priv, SVGA_REG_COMMAND_HIGH, val); - val = (header->handle & 0xFFFFFFFFULL); + val = lower_32_bits(header->handle); val |= header->cb_context & SVGA_CB_CONTEXT_MASK; vmw_write(man->dev_priv, SVGA_REG_COMMAND_LOW, val);