From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751291AbdBXOfq (ORCPT ); Fri, 24 Feb 2017 09:35:46 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:35856 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751192AbdBXOfl (ORCPT ); Fri, 24 Feb 2017 09:35:41 -0500 Date: Fri, 24 Feb 2017 17:35:33 +0300 From: Alexey Dobriyan 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 Message-ID: <20170224143533.GA6820@avx2> References: <58af65cf.uNXK5zzvUJ4F6QpG%akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58af65cf.uNXK5zzvUJ4F6QpG%akpm@linux-foundation.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 > #include > > +#ifndef __KERNEL__ > +#include /* For size_t. */ > +#endif There is __kernel_size_t for cases like this.