From: Alexey Dobriyan <adobriyan@gmail.com>
To: akpm@linux-foundation.org
Cc: ldv@altlinux.org, ebiederm@xmission.com, linux-kernel@vger.kernel.org
Subject: Re: + uapi-fix-linux-sysctlh-userspace-compilation-errors.patch added to -mm tree
Date: Fri, 24 Feb 2017 17:35:33 +0300 [thread overview]
Message-ID: <20170224143533.GA6820@avx2> (raw)
In-Reply-To: <58af65cf.uNXK5zzvUJ4F6QpG%akpm@linux-foundation.org>
On Thu, Feb 23, 2017 at 02:44:31PM -0800, akpm@linux-foundation.org wrote:
> /usr/include/linux/sysctl.h:38:2: error: unknown type name 'size_t'
> size_t *oldlenp;
> /usr/include/linux/sysctl.h:40:2: error: unknown type name 'size_t'
> size_t newlen;
> --- a/include/uapi/linux/sysctl.h~uapi-fix-linux-sysctlh-userspace-compilation-errors
> +++ a/include/uapi/linux/sysctl.h
> @@ -26,6 +26,10 @@
> #include <linux/types.h>
> #include <linux/compiler.h>
>
> +#ifndef __KERNEL__
> +#include <stddef.h> /* For size_t. */
> +#endif
There is __kernel_size_t for cases like this.
next parent reply other threads:[~2017-02-24 14:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <58af65cf.uNXK5zzvUJ4F6QpG%akpm@linux-foundation.org>
2017-02-24 14:35 ` Alexey Dobriyan [this message]
2017-02-24 22:35 ` + uapi-fix-linux-sysctlh-userspace-compilation-errors.patch added to -mm tree Dmitry V. Levin
2017-02-27 9:38 ` Alexey Dobriyan
2017-02-27 10:09 ` Dmitry V. Levin
2017-02-27 19:48 ` Dmitry V. Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170224143533.GA6820@avx2 \
--to=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=ebiederm@xmission.com \
--cc=ldv@altlinux.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox