Re: randconfig build error with next-20150806, in drivers/usb/gadget/function/f_mass_storage.c

From: Alan Stern
Date: Thu Aug 06 2015 - 11:25:38 EST


On Thu, 6 Aug 2015, Jim Davis wrote:

> Building with the attached random configuration file,
>
> drivers/usb/gadget/function/f_mass_storage.c: In function âfsg_main_threadâ:
> drivers/usb/gadget/function/f_mass_storage.c:2520:2: error: implicit
> declaration of function âset_fsâ
> [-Werror=implicit-function-declaration]
> set_fs(get_ds());
> ^
> drivers/usb/gadget/function/f_mass_storage.c:2520:2: error: implicit
> declaration of function âget_dsâ
> [-Werror=implicit-function-declaration]

Looks like the source file needs to #include <linux/uaccess.h>.
Apparently it got brought in indirectly from some other header file in
4.1, but not in current linux-next.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/