diff options
| author | Arnd Bergmann <[email protected]> | 2020-12-04 00:07:30 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2021-01-12 18:09:46 +0100 |
| commit | d7a7d721064c548042b019cd0d4d62e0bb878d71 (patch) | |
| tree | c9d3e31b64576a1aa97c2ebea4fd44965567da39 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 36fe4655d06c7d9185412514dfbb4a37ec936b5a (diff) | |
media: ti-vpe: cal: avoid FIELD_GET assertion
FIELD_GET() must only be used with a mask that is a compile-time
constant:
drivers/media/platform/ti-vpe/cal.h: In function 'cal_read_field':
include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_247' declared with attribute error: FIELD_GET: mask is not constant
include/linux/bitfield.h:46:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
46 | BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask), \
| ^~~~~~~~~~~~~~~~
drivers/media/platform/ti-vpe/cal.h:220:9: note: in expansion of macro 'FIELD_GET'
220 | return FIELD_GET(mask, cal_read(cal, offset));
| ^~~~~~~~~
The problem here is that the function is not always inlined. Mark it
__always_inline to avoid the problem.
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions