diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-12-14 22:15:08 +0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-01-21 22:22:28 +0400 |
commit | 418c59e49ddc77fcb7054f2c8d52c9d47403b43e (patch) | |
tree | a6ad61da008f95849076912a3485237d14ec3e46 /include/drm | |
parent | c1bf08ac26e92122faab9f6c32ea8aba94612dae (diff) | |
download | linux-418c59e49ddc77fcb7054f2c8d52c9d47403b43e.tar.xz |
tracing: Fix sparse warning with is_signed_type() macro
Sparse complains when is_signed_type() is used on a pointer.
This macro is needed for the format output used for ftrace
and perf, to know if a binary field is a signed type or not.
The is_signed_type() macro is used against all fields that are
recorded by events to automate the operation.
The problem sparse has is with the current way is_signed_type()
works:
((type)-1 < 0)
If "type" is a poiner, than sparse does not like it being compared
to an integer (zero). The simple fix is to just give zero the
same type. The runtime result stays the same.
Reported-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions