diff options
| author | Hans de Goede <[email protected]> | 2017-05-18 10:50:18 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-05-19 06:57:21 -0300 |
| commit | 02d978318b0983e7af6bbc9c1f9861b0d6983e37 (patch) | |
| tree | ee7274b73c9cad932085cc8397392e21e98abb05 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | c2c611b7b4f6cccbaea47e6b4a6853a129ddd1f8 (diff) | |
[media] atomisp: Fix -Werror=int-in-bool-context compile errors
With gcc-7.1.1 I was getting the following compile error:
error: ‘*’ in boolean context, suggest ‘&&’ instead
The problem is the definition of CEIL_DIV:
#define CEIL_DIV(a, b) ((b) ? ((a) + (b) - 1) / (b) : 0)
Which when called as: CEIL_DIV(x, y * z) triggers this error, note
we cannot do as the error suggests since b is evaluated multiple times.
This commit fixes these compile errors.
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions