Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Unverified Commit 3b6162d6 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Michael Bestas
Browse files

ANDROID: usb: gadget: Add missing inline qualifier to stub functions



When CONFIG_USB_GADGET is disabled:

In file included from drivers/usb/dwc2/core_intr.c:54:
In file included from drivers/usb/dwc2/core.h:43:
include/linux/usb/gadget.h:348:12: warning: unused function
'usb_gsi_ep_op' [-Wunused-function]
static int usb_gsi_ep_op(struct usb_ep *ep,
           ^
include/linux/usb/gadget.h:645:12: warning: unused function
'usb_gadget_func_wakeup' [-Wunused-function]
static int usb_gadget_func_wakeup(struct usb_gadget *gadget, int
interface_id)
           ^
2 warnings generated.

Stub functions are expected to use inline to hide the fact that they are
unused. Add that here to eliminate the warnings.

Change-Id: I55cabd7602e5ddf6213265053e1b7850ff62bcdb
Fixes: 632093ec ("ANDROID: GKI: USB: Resolve ABI diff for usb_gadget and usb_gadget_ops")
Fixes: b582ef5b ("ANDROID: GKI: drivers: usb: Add functions usb_func_ep_queue/usb_func_wakeup")
Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
parent ca645bd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment