mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: lkml <linux-kernel@vger.kernel.org>,
	Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Subject: [PATCH] resource: fix userspace warning
Date: Sun, 15 Aug 2010 22:19:34 +0200	[thread overview]
Message-ID: <20100815201934.GC4571@merkur.ravnborg.org> (raw)

"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 <linux/types.h>

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 <sam@ravnborg.org>
Cc: Jiri Slaby <jslaby@suse.cz>
---

	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 <linux/time.h>
+#include <linux/types.h>
 
 /*
  * Resource control/accounting header file for linux

                 reply	other threads:[~2010-08-15 20:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20100815201934.GC4571@merkur.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=jbarnes@virtuousgeek.org \
    --cc=jslaby@suse.cz \
    --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

all inboxes | Powered by JetHome®