From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754595AbdASTqw (ORCPT ); Thu, 19 Jan 2017 14:46:52 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:53920 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754553AbdASTqu (ORCPT ); Thu, 19 Jan 2017 14:46:50 -0500 From: Mike Frysinger To: linux-kernel@vger.kernel.org Cc: Andrew Morton Subject: [PATCH] uapi: mqueue.h: add missing linux/types.h include Date: Thu, 19 Jan 2017 13:46:44 -0600 Message-Id: <20170119194644.4403-1-vapier@gentoo.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <1446072402-5337-1-git-send-email-vapier@gentoo.org> References: <1446072402-5337-1-git-send-email-vapier@gentoo.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Frysinger Commit 63159f5dcccb3858d88aaef800c4ee0eb4cc8577 changed the types from long to __kernel_long_t, but didn't add a linux/types.h include. Code that tries to include this header directly breaks: /usr/include/linux/mqueue.h:26:2: error: unknown type name '__kernel_long_t' __kernel_long_t mq_flags; /* message queue flags */ This also upsets configure tests for this header: checking linux/mqueue.h usability... no checking linux/mqueue.h presence... yes configure: WARNING: linux/mqueue.h: present but cannot be compiled configure: WARNING: linux/mqueue.h: check for missing prerequisite headers? configure: WARNING: linux/mqueue.h: see the Autoconf documentation configure: WARNING: linux/mqueue.h: section "Present But Cannot Be Compiled" configure: WARNING: linux/mqueue.h: proceeding with the compiler's result checking for linux/mqueue.h... no Signed-off-by: Mike Frysinger --- include/uapi/linux/mqueue.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/mqueue.h b/include/uapi/linux/mqueue.h index d0a2b8e89813..bbd5116ea739 100644 --- a/include/uapi/linux/mqueue.h +++ b/include/uapi/linux/mqueue.h @@ -18,6 +18,8 @@ #ifndef _LINUX_MQUEUE_H #define _LINUX_MQUEUE_H +#include + #define MQ_PRIO_MAX 32768 /* per-uid limit of kernel memory used by mqueue, in bytes */ #define MQ_BYTES_MAX 819200 -- 2.11.0