Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1734933
| From | Stefan Mätje <Stefan.Maetje@esd.eu> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: linux-4.14-rc1/arch/x86/include/asm/uaccess.h: Missing include of <linux/sched.h> |
| Date | 2017-09-19 16:00 +0200 |
| Message-ID | <urrea-69k-19@gated-at.bofh.it> (permalink) |
| References | <urpP6-5pF-31@gated-at.bofh.it> <urqBs-5WC-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi, changing the include line to <linux/uaccess.h> solves the problem for me. Thank you for taking the time to look into this. Best regards, Stefan Mätje Am 19.09.2017 um 15:12 schrieb Seraphime Kirkovski: > Hi, > >> ./arch/x86/include/asm/uaccess.h: In function ‘set_fs’: >> ./arch/x86/include/asm/uaccess.h:31:9: error: dereferencing pointer to >> incomplete type > > I can reproduce your problem by including <asm/uaccess.h>, but not with > <linux/uaccess.h>. > > #include <asm/uaccess.h> > //#include <linux/uaccess.h> does compile > #include <linux/module.h> My code doesn't use set_fs() but it is only in the header. > If my memory is any good, direct inclusion of <asm/uaccess.h> was > deprecated in 4.12 and new code should use <linux/uaccess.h> I did miss this deprecation. > Thanks, > Seraphime Kirkovski >
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
linux-4.14-rc1/arch/x86/include/asm/uaccess.h: Missing include of <linux/sched.h> Stefan Mätje <Stefan.Maetje@esd.eu> - 2017-09-19 14:30 +0200
Re: linux-4.14-rc1/arch/x86/include/asm/uaccess.h: Missing include of <linux/sched.h> Seraphime Kirkovski <kirkseraph@gmail.com> - 2017-09-19 15:20 +0200
Re: linux-4.14-rc1/arch/x86/include/asm/uaccess.h: Missing include of <linux/sched.h> Stefan Mätje <Stefan.Maetje@esd.eu> - 2017-09-19 16:00 +0200
csiph-web