kcov, usb: hide in_serving_softirq checks in __usb_hcd_giveback_urb
authorAndrey Konovalov <andreyknvl@google.com>
Tue, 5 Jan 2021 19:53:42 +0000 (20:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jan 2021 13:17:29 +0000 (14:17 +0100)
commite89eed02a5f1b864fa5abafc8e8e71bd9fd66d1f
tree4276d664ecbdc24eb9ffbab0acbac74f4405d112
parent10a05404c4fe184ae9087fb49f1df5b84c1534dc
kcov, usb: hide in_serving_softirq checks in __usb_hcd_giveback_urb

Done opencode in_serving_softirq() checks in in_serving_softirq() to avoid
cluttering the code, hide them in kcov helpers instead.

Fixes: aee9ddb1d371 ("kcov, usb: only collect coverage from __usb_hcd_giveback_urb in softirq")
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Link: https://lore.kernel.org/r/aeb430c5bb90b0ccdf1ec302c70831c1a47b9c45.1609876340.git.andreyknvl@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd.c
include/linux/kcov.h