aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <[email protected]>2017-06-14 13:01:25 +1000
committerMichael Ellerman <[email protected]>2017-06-16 16:10:37 +1000
commita093c92dc7f96a15de98ec8cfe38e6f7610a5969 (patch)
tree1a1ad5f230c808cb910b998f0715338cc7dd8fc2 /scripts/gcc-plugins/randomize_layout_plugin.c
parent25642705b2359a705784bbbf1655c25a8f8efde2 (diff)
powerpc/debug: Add missing warn flag to WARN_ON's non-builtin path
When trapped on WARN_ON(), report_bug() is expected to return BUG_TRAP_TYPE_WARN so the caller will increment NIP by 4 and continue. The __builtin_constant_p() path of the PPC's WARN_ON() calls (indirectly) __WARN_FLAGS() which has BUGFLAG_WARNING set, however the other branch does not which makes report_bug() report a bug rather than a warning. Fixes: f26dee15103f ("debug: Avoid setting BUGFLAG_WARNING twice") Signed-off-by: Alexey Kardashevskiy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions