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

Commit a5450400 authored by Nicolas Boichat's avatar Nicolas Boichat Committed by Badhri Jagan Sridharan
Browse files

CHROMIUM: usb: gadget: f_mtp: Declare unused functions as maybe_unused



Without this, we get these 2 warnings:
v3.18/drivers/usb/gadget/function/f_mtp.c:1289:12: error: 'mtp_bind_config' defined but not used [-Werror=unused-function]
 static int mtp_bind_config(struct usb_configuration *c, bool ptp_config)
            ^
v3.18/drivers/usb/gadget/function/f_mtp.c:1372:12: error: 'mtp_setup' defined but not used [-Werror=unused-function]
 static int mtp_setup(void)
            ^
cc1: all warnings being treated as errors

Arguably, the functions could be removed, but it looks like the
intent of drivers/usb/gadget/android.c is to include these, so
leave them be.

BUG=chromium:534254
TEST=emerge-smaug chromeos-kernel-3_18

Change-Id: Ie1b10d91b69b75ab2543e939e51fa9d74a64b950
Signed-off-by: default avatarNicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/300705


Reviewed-by: default avatarBenson Leung <bleung@chromium.org>
parent f5609896
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