]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: tracing: fix "make check" warnings
authorAlex Elder <elder@linaro.org>
Fri, 3 Jun 2016 20:55:29 +0000 (15:55 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 4 Jun 2016 00:03:23 +0000 (17:03 -0700)
commite5f23c45841ff371e4e515e8c5395fc659017930
tree515c4f23293a24219fb793e1a1fc4396eb7674d9
parent17ca677018117deee1bd75b301894dca975e7fc5
greybus: tracing: fix "make check" warnings

Some of the trace buffer fields were defined as Booleans.  This
leads to two problems reported by "make check":
    - the __field() macro (or some descendent macro) performs
      a sizeof(bool) operation, which results in a warning
    - The TP_printk() macro, which specifies a printf() style
      format string, produces a warning when one attempts to
      format a Boolean as an integer.
Fix both problems implicitly converting Boolean values from the data
structures into integers in the trace buffer.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_trace.h