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

Commit 1f550878 authored by Amit Pundir's avatar Amit Pundir
Browse files

usb: gadget: function: fix unused function warnings



Use __maybe_unused attribute to fix following compiler warnings:
----------
  CC      drivers/usb/gadget/function/f_mtp.o
drivers/usb/gadget/function/f_mtp.c:1219:12: warning: ‘mtp_bind_config’ defined but not used [-Wunused-function]
drivers/usb/gadget/function/f_mtp.c:1300:12: warning: ‘mtp_setup’ defined but not used [-Wunused-function]
  LD      drivers/usb/gadget/function/usb_f_mtp.o
  CC      drivers/usb/gadget/function/f_accessory.o
drivers/usb/gadget/function/f_accessory.c:1172:12: warning: ‘acc_bind_config’ defined but not used [-Wunused-function]
  LD      drivers/usb/gadget/function/usb_f_accessory.o
----------

Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
parent 8ef8a59b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment