aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2020-08-12 14:47:03 -0700
committerKees Cook <keescook@chromium.org>2020-10-12 15:19:07 -0700
commit9b80e4c4ddaca3501177ed41e49d0928ba2122a8 (patch)
treed8cc43471bb6c5eb4e5d60545f45b0a87705115f /drivers/usb/cdns3/cdns3-debug.h
parentLinux 5.9-rc1 (diff)
downloadwireguard-linux-9b80e4c4ddaca3501177ed41e49d0928ba2122a8.tar.xz
wireguard-linux-9b80e4c4ddaca3501177ed41e49d0928ba2122a8.zip
overflow: Add __must_check attribute to check_*() helpers
Since the destination variable of the check_*_overflow() helpers will contain a wrapped value on failure, it would be best to make sure callers really did check the return result of the helper. Adjust the macros to use a bool-wrapping static inline that is marked with __must_check. This means the macros can continue to have their type-agnostic behavior while gaining the function attribute (that cannot be applied directly to macros). Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Link: https://lore.kernel.org/lkml/202008151007.EF679DF@keescook/ Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions