From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751775Ab0HOUTg (ORCPT ); Sun, 15 Aug 2010 16:19:36 -0400 Received: from pfepb.post.tele.dk ([195.41.46.236]:33306 "EHLO pfepb.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751602Ab0HOUTf (ORCPT ); Sun, 15 Aug 2010 16:19:35 -0400 Date: Sun, 15 Aug 2010 22:19:34 +0200 From: Sam Ravnborg To: lkml , Jesse Barnes Cc: Jiri Slaby Subject: [PATCH] resource: fix userspace warning Message-ID: <20100815201934.GC4571@merkur.ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "make headers_check" gave following warning: CHECK include/linux (364 files) include/linux/resource.h:49: found __[us]{8,16,32,64} type without #include The warning started to appear after rlimit64 structure was added. The rlimit64 structure uses the correct types for export, but the patch failed to include linux/types.h - thus the warning. But include/linux/resource.h contains a _lot_ of native types, which size may vary dependent on the architecture. It would be good if all uses of native types could be repalced by the intended exportable types. Signed-off-by: Sam Ravnborg Cc: Jiri Slaby --- Sam diff --git a/include/linux/resource.h b/include/linux/resource.h index 88d36f9..d01c96c 100644 --- a/include/linux/resource.h +++ b/include/linux/resource.h @@ -2,6 +2,7 @@ #define _LINUX_RESOURCE_H #include +#include /* * Resource control/accounting header file for linux