OSDN Git Service

ACPICA: Explicitly cast 1 to u32
authorErik Schmauss <erik.schmauss@intel.com>
Mon, 5 Jun 2017 08:40:15 +0000 (16:40 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Jun 2017 12:58:41 +0000 (14:58 +0200)
commitdeb85f6c8a4870c7372d36cf26b73f9a35bfd81a
tree765f983d0690631acc7d463fc3e4cdc640e5a7ae
parent5e2d9e919f5c785879e35e4686758c36542ccaa9
ACPICA: Explicitly cast 1 to u32

ACPICA commit 4091360d6526c8d4f1e6bccb6b1c3123bda9ac33

The runtime errors caused when acpica tools are compiled with
-fsanitize=shift imply that these 1s are stored in integers.
This cast insures that 1 is stored in unsigned integers.

Link: https://github.com/acpica/acpica/commit/4091360d
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/utownerid.c