Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1201835 > unrolled thread

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

Started byJim Davis <jim.epost@gmail.com>
First post2015-08-06 17:10 +0200
Last post2015-08-06 17:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  randconfig build error with next-20150806, in drivers/usb/gadget/function/f_mass_storage.c Jim Davis <jim.epost@gmail.com> - 2015-08-06 17:10 +0200
    Re: randconfig build error with next-20150806, in  drivers/usb/gadget/function/f_mass_storage.c Alan Stern <stern@rowland.harvard.edu> - 2015-08-06 17:30 +0200

#1201835 — randconfig build error with next-20150806, in drivers/usb/gadget/function/f_mass_storage.c

FromJim Davis <jim.epost@gmail.com>
Date2015-08-06 17:10 +0200
Subjectrandconfig build error with next-20150806, in drivers/usb/gadget/function/f_mass_storage.c
Message-ID<pUuXT-4cV-3@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

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]

-- 
Jim

[toc] | [next] | [standalone]


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

FromAlan Stern <stern@rowland.harvard.edu>
Date2015-08-06 17:30 +0200
SubjectRe: randconfig build error with next-20150806, in drivers/usb/gadget/function/f_mass_storage.c
Message-ID<pUvhg-4zC-3@gated-at.bofh.it>
In reply to#1201835
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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web