From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] uapi: avoid namespace conflict in linux/posix_types.h Date: Tue, 19 Mar 2019 14:46:48 -0700 (PDT) Message-ID: <20190319.144648.2244362851338248970.davem@davemloft.net> References: <20190319165123.3967889-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190319165123.3967889-1-arnd@arndb.de> Sender: linux-kernel-owner@vger.kernel.org To: arnd@arndb.de Cc: linux-api@vger.kernel.org, linux-arch@vger.kernel.org, netdev@vger.kernel.org, labbott@redhat.com, fw@deneb.enyo.de, pburton@wavecomp.com, deepa.kernel@gmail.com, linux-kernel@vger.kernel.org List-Id: linux-api@vger.kernel.org From: Arnd Bergmann Date: Tue, 19 Mar 2019 17:51:09 +0100 > Florian Weimer points out an issue with including linux/posix_types.h > from arbitrary other headers: if an application has defined a macro > named 'fds_bits', it may stop compiling after a change in the kernel > headers. Since fds_bits is a non-reserved identifier in C, that is > considered a bug in the kernel headers. > > The structure definition does not really seem to be helpful here, > as the kernel no longer provides macros to manipulate it. ... > Fixes: a623a7a1a567 ("y2038: fix socket.h header inclusion") > Signed-off-by: Arnd Bergmann Acked-by: David S. Miller