浏览代码

PM/ACPI/x86: Fix sparse warning in arch/x86/kernel/acpi/sleep.c

One of the numbers in arch/x86/kernel/acpi/sleep.c is long, but it is
not annotated appropriately, so sparese warns about it.  Fix that.

[rjw: added the changelog.]

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Jaswinder Singh Rajput 16 年之前
父节点
当前提交
ce4b3c5547
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/x86/kernel/acpi/sleep.c

+ 1 - 1
arch/x86/kernel/acpi/sleep.c

@@ -104,7 +104,7 @@ int acpi_save_state_mem(void)
 	initial_gs = per_cpu_offset(smp_processor_id());
 	initial_gs = per_cpu_offset(smp_processor_id());
 #endif
 #endif
 	initial_code = (unsigned long)wakeup_long64;
 	initial_code = (unsigned long)wakeup_long64;
-	saved_magic = 0x123456789abcdef0;
+       saved_magic = 0x123456789abcdef0L;
 #endif /* CONFIG_64BIT */
 #endif /* CONFIG_64BIT */
 
 
 	return 0;
 	return 0;