1. 10 10月, 2013 1 次提交
    • D
      usb: g_ffs: fix compilation warning · 7fc031e6
      David Cohen 提交于
      If USB_FUNCTIONFS is selected without USB_FUNCTIONFS_ETH and
      USB_FUNCTIONFS_RNIS, u_ether.h won't be included and then
      USB_ETHERNET_MODULE_PARAMAETERS macro won't be available causing the
      following warning compilation:
      
      drivers/usb/gadget/g_ffs.c:81:1: warning: data definition has no type or
      storage class [enabled by default]
      drivers/usb/gadget/g_ffs.c:81:1: warning: type defaults to ‘int’ in
      declaration of ‘USB_ETHERNET_MODULE_PARAMETERS’ [-Wimplicit-int]
      drivers/usb/gadget/g_ffs.c:81:1: warning: function declaration isn’t a
      prototype [-Wstrict-prototypes]
      
      This patch fixes the warning by making USB_ETHERNET_MODULE_PARAMETERS to
      be used iff u_ether.h is included, otherwise it is not needed.
      Signed-off-by: NDavid Cohen <david.a.cohen@linux.intel.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      7fc031e6
  2. 04 10月, 2013 16 次提交
  3. 02 10月, 2013 4 次提交
  4. 01 10月, 2013 19 次提交