PM / sleep: declare __tracedata symbols as char[] rather than char
authorEric Biggers <ebiggers3@gmail.com>
Mon, 25 Jan 2016 02:08:52 +0000 (20:08 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 11 Feb 2016 10:07:08 +0000 (11:07 +0100)
commitf97238373b8662a6d580e204df2e7bcbfa43e27a
treecfb079abd3a87ed329d9a4f68a5327f82de25f61
parent388f7b1d6e8ca06762e2454d28d6c3c55ad0fe95
PM / sleep: declare __tracedata symbols as char[] rather than char

Accessing more than one byte from a symbol declared simply 'char' is undefined
behavior, as reported by UBSAN:

UBSAN: Undefined behaviour in drivers/base/power/trace.c:178:18
load of address ffffffff8203fc78 with insufficient space
for an object of type 'char'

Avoid this by declaring the symbols as arrays.

Signed-off-by: Eric Biggers <ebiggers3@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/trace.c