[RAMEN9610-12262][COMMON] usb: add __nocfi to avoid cfi checking
authorKisang Lee <kisang80.lee@samsung.com>
Mon, 18 Feb 2019 04:45:18 +0000 (13:45 +0900)
committerhskang <hs1218.kang@samsung.com>
Wed, 20 Feb 2019 01:00:30 +0000 (10:00 +0900)
Change-Id: I8795e8c2f8828bb71d85a1b48516f037d77bdfaf
Signed-off-by: Kisang Lee <kisang80.lee@samsung.com>
drivers/usb/gadget/composite.c
include/linux/usb/composite.h

index fa34388a2d115735ce405f5179cdf5ae0771510f..17fda13227c1f4e905a8ea7cdcd37eb31e64ea0e 100644 (file)
@@ -2253,7 +2253,7 @@ fail:
 
 /*-------------------------------------------------------------------------*/
 
-void composite_suspend(struct usb_gadget *gadget)
+void __nocfi composite_suspend(struct usb_gadget *gadget)
 {
        struct usb_composite_dev        *cdev = get_gadget_data(gadget);
        struct usb_function             *f;
index ae33f881db5957eda2d2c492682c2d9ecc98e4c3..c00cce86faa940fc60f501334429bcf84cd7fb7a 100644 (file)
@@ -529,7 +529,7 @@ extern int usb_string_ids_n(struct usb_composite_dev *c, unsigned n);
 extern void composite_disconnect(struct usb_gadget *gadget);
 extern int composite_setup(struct usb_gadget *gadget,
                const struct usb_ctrlrequest *ctrl);
-extern void composite_suspend(struct usb_gadget *gadget);
+extern void __nocfi composite_suspend(struct usb_gadget *gadget);
 extern void composite_resume(struct usb_gadget *gadget);
 
 /*