diff options
| author | David Cohen <david.a.cohen@linux.intel.com> | 2013-10-04 15:30:21 -0700 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2013-10-10 09:40:28 -0500 |
| commit | 7fc031e612238a7bbf6e989001abc5ce274bcba6 (patch) | |
| tree | 43622748e0c6ae68ed7c101ade240fd5a8ae2d8e /arch/mips/include/asm/mach-netlogic/multi-node.h | |
| parent | 13613c133bb8dc70ec404b61345496ba75611dbd (diff) | |
usb: g_ffs: fix compilation warning
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: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'arch/mips/include/asm/mach-netlogic/multi-node.h')
0 files changed, 0 insertions, 0 deletions
