Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1586611
| From | "Dmitry V. Levin" <ldv@altlinux.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] uapi: fix linux/kexec.h userspace compilation errors |
| Date | 2017-02-23 03:20 +0100 |
| Message-ID | <tdRaF-2LC-7@gated-at.bofh.it> (permalink) |
| References | <tdNTs-eQ-3@gated-at.bofh.it> <tdQHD-2lQ-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Thu, Feb 23, 2017 at 02:37:46PM +1300, Eric W. Biederman wrote: > "Dmitry V. Levin" <ldv@altlinux.org> writes: > > > Include <stddef.h> (guarded by #ifndef __KERNEL__) to fix the following > > linux/kexec.h userspace compilation errors: > > > > /usr/include/linux/kexec.h:53:2: error: unknown type name 'size_t' > > size_t bufsz; > > /usr/include/linux/kexec.h:55:2: error: unknown type name 'size_t' > > size_t memsz; > > Were these failures generated with a static checker? Yes, with gcc -S -o/dev/null -xc /dev/null -include /usr/include/linux/kexec.h > What changed that you are seeing new failures in old essentially static > headers? Every uapi header file should be standalone, i.e. it must include, directly or indirectly, every definition it uses, so that no user should have to guess header dependencies. It's not the first time I'm seeing this compilation error, but now I've got some time to submit a fix. Better late than never. -- ldv
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] uapi: fix linux/kexec.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-02-22 23:50 +0100
Re: [PATCH] uapi: fix linux/kexec.h userspace compilation errors ebiederm@xmission.com (Eric W. Biederman) - 2017-02-23 02:50 +0100
Re: [PATCH] uapi: fix linux/kexec.h userspace compilation errors "Dmitry V. Levin" <ldv@altlinux.org> - 2017-02-23 03:20 +0100
csiph-web