From: Arnd Bergmann <arnd@arndb.de>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [patch 5/8] add missing #includes in user space parts of headers
Date: Mon, 18 Sep 2006 03:27:45 +0200 [thread overview]
Message-ID: <20060918013217.356156000@klappe.arndb.de> (raw)
In-Reply-To: <1158079495.9189.125.camel@hades.cambridge.redhat.com>
[-- Attachment #1: headercheck.diff --]
[-- Type: text/plain, Size: 10883 bytes --]
These files should include some other headers in order
to be included from user space.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Index: linux-cg/include/asm-s390/cmb.h
===================================================================
--- linux-cg.orig/include/asm-s390/cmb.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/asm-s390/cmb.h 2006-09-18 02:36:00.000000000 +0200
@@ -1,5 +1,9 @@
#ifndef S390_CMB_H
#define S390_CMB_H
+
+#include <linux/ioctl.h>
+#include <linux/types.h>
+
/**
* struct cmbdata -- channel measurement block data for user space
*
Index: linux-cg/include/asm-s390/dasd.h
===================================================================
--- linux-cg.orig/include/asm-s390/dasd.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/asm-s390/dasd.h 2006-09-18 02:36:00.000000000 +0200
@@ -13,6 +13,7 @@
#ifndef DASD_H
#define DASD_H
#include <linux/ioctl.h>
+#include <linux/types.h>
#define DASD_IOCTL_LETTER 'D'
Index: linux-cg/include/asm-s390/qeth.h
===================================================================
--- linux-cg.orig/include/asm-s390/qeth.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/asm-s390/qeth.h 2006-09-18 02:36:00.000000000 +0200
@@ -11,6 +11,7 @@
#ifndef __ASM_S390_QETH_IOCTL_H__
#define __ASM_S390_QETH_IOCTL_H__
#include <linux/ioctl.h>
+#include <linux/types.h>
#define SIOC_QETH_ARP_SET_NO_ENTRIES (SIOCDEVPRIVATE)
#define SIOC_QETH_ARP_QUERY_INFO (SIOCDEVPRIVATE + 1)
Index: linux-cg/include/linux/atm.h
===================================================================
--- linux-cg.orig/include/linux/atm.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/atm.h 2006-09-18 02:36:00.000000000 +0200
@@ -11,6 +11,7 @@
#ifndef _LINUX_ATM_H
#define _LINUX_ATM_H
+#include <linux/types.h>
/*
* BEGIN_xx and END_xx markers are used for automatic generation of
* documentation. Do not change them.
Index: linux-cg/include/linux/audit.h
===================================================================
--- linux-cg.orig/include/linux/audit.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/audit.h 2006-09-18 02:36:00.000000000 +0200
@@ -25,6 +25,7 @@
#define _LINUX_AUDIT_H_
#include <linux/elf-em.h>
+#include <linux/types.h>
/* The netlink messages for the audit system is divided into blocks:
* 1000 - 1099 are for commanding the audit system
Index: linux-cg/include/linux/cm4000_cs.h
===================================================================
--- linux-cg.orig/include/linux/cm4000_cs.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/cm4000_cs.h 2006-09-18 02:36:00.000000000 +0200
@@ -1,6 +1,8 @@
#ifndef _CM4000_H_
#define _CM4000_H_
+#include <linux/types.h>
+
#define MAX_ATR 33
#define CM4000_MAX_DEV 4
Index: linux-cg/include/linux/cyclades.h
===================================================================
--- linux-cg.orig/include/linux/cyclades.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/cyclades.h 2006-09-18 02:36:00.000000000 +0200
@@ -67,6 +67,8 @@
#ifndef _LINUX_CYCLADES_H
#define _LINUX_CYCLADES_H
+#include <linux/types.h>
+
struct cyclades_monitor {
unsigned long int_count;
unsigned long char_count;
Index: linux-cg/include/linux/ftape-header-segment.h
===================================================================
--- linux-cg.orig/include/linux/ftape-header-segment.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/ftape-header-segment.h 2006-09-18 02:36:00.000000000 +0200
@@ -1,6 +1,7 @@
#ifndef _FTAPE_HEADER_SEGMENT_H
#define _FTAPE_HEADER_SEGMENT_H
+#include <linux/types.h>
/*
* Copyright (C) 1996-1997 Claus-Justus Heine.
Index: linux-cg/include/linux/hiddev.h
===================================================================
--- linux-cg.orig/include/linux/hiddev.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/hiddev.h 2006-09-18 02:36:00.000000000 +0200
@@ -29,6 +29,8 @@
* Vojtech Pavlik, Ucitelska 1576, Prague 8, 182 00 Czech Republic
*/
+#include <linux/types.h>
+
/*
* The event structure itself
*/
Index: linux-cg/include/linux/i2o-dev.h
===================================================================
--- linux-cg.orig/include/linux/i2o-dev.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/i2o-dev.h 2006-09-18 02:36:00.000000000 +0200
@@ -24,6 +24,7 @@
#define MAX_I2O_CONTROLLERS 32
#include <linux/ioctl.h>
+#include <linux/types.h>
/*
* I2O Control IOCTLs and structures
Index: linux-cg/include/linux/ite_gpio.h
===================================================================
--- linux-cg.orig/include/linux/ite_gpio.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/ite_gpio.h 2006-09-18 02:36:00.000000000 +0200
@@ -33,6 +33,7 @@
#ifndef __ITE_GPIO_H
#define __ITE_GPIO_H
+#include <linux/types.h>
#include <linux/ioctl.h>
struct ite_gpio_ioctl_data {
Index: linux-cg/include/linux/loop.h
===================================================================
--- linux-cg.orig/include/linux/loop.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/loop.h 2006-09-18 02:36:00.000000000 +0200
@@ -77,8 +77,8 @@
LO_FLAGS_USE_AOPS = 2,
};
-#include <asm/posix_types.h> /* for __kernel_old_dev_t */
-#include <asm/types.h> /* for __u64 */
+#include <linux/posix_types.h> /* for __kernel_old_dev_t */
+#include <linux/types.h> /* for __u64 */
/* Backwards compatibility version */
struct loop_info {
Index: linux-cg/include/linux/nbd.h
===================================================================
--- linux-cg.orig/include/linux/nbd.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/nbd.h 2006-09-18 02:36:00.000000000 +0200
@@ -15,6 +15,8 @@
#ifndef LINUX_NBD_H
#define LINUX_NBD_H
+#include <linux/types.h>
+
#define NBD_SET_SOCK _IO( 0xab, 0 )
#define NBD_SET_BLKSIZE _IO( 0xab, 1 )
#define NBD_SET_SIZE _IO( 0xab, 2 )
Index: linux-cg/include/linux/pkt_sched.h
===================================================================
--- linux-cg.orig/include/linux/pkt_sched.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/pkt_sched.h 2006-09-18 02:45:05.000000000 +0200
@@ -1,6 +1,8 @@
#ifndef __LINUX_PKT_SCHED_H
#define __LINUX_PKT_SCHED_H
+#include <linux/types.h>
+
/* Logical priority bands not depending on specific packet scheduler.
Every scheduler will map them to real traffic classes, if it has
no more precise mechanism to classify packets.
Index: linux-cg/include/linux/ppp_defs.h
===================================================================
--- linux-cg.orig/include/linux/ppp_defs.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/ppp_defs.h 2006-09-18 02:43:44.000000000 +0200
@@ -42,6 +42,8 @@
#ifndef _PPP_DEFS_H_
#define _PPP_DEFS_H_
+#include <linux/types.h>
+
/*
* The basic PPP frame.
*/
Index: linux-cg/include/linux/qic117.h
===================================================================
--- linux-cg.orig/include/linux/qic117.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/qic117.h 2006-09-18 02:36:00.000000000 +0200
@@ -53,6 +53,8 @@
* QIC-CRF3, Rev. B, 15 Jun 95.
* */
+#include <linux/types.h>
+
/*
* QIC-117 common command set rev. J.
* These commands are sent to the tape unit
Index: linux-cg/include/linux/qnxtypes.h
===================================================================
--- linux-cg.orig/include/linux/qnxtypes.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/qnxtypes.h 2006-09-18 02:36:00.000000000 +0200
@@ -12,6 +12,8 @@
#ifndef _QNX4TYPES_H
#define _QNX4TYPES_H
+#include <linux/types.h>
+
typedef __le16 qnx4_nxtnt_t;
typedef __u8 qnx4_ftype_t;
Index: linux-cg/include/linux/raid/md_p.h
===================================================================
--- linux-cg.orig/include/linux/raid/md_p.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/raid/md_p.h 2006-09-18 02:36:00.000000000 +0200
@@ -15,6 +15,7 @@
#ifndef _MD_P_H
#define _MD_P_H
+#include <linux/types.h>
/*
* RAID superblock.
*
Index: linux-cg/include/linux/random.h
===================================================================
--- linux-cg.orig/include/linux/random.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/random.h 2006-09-18 02:36:00.000000000 +0200
@@ -8,6 +8,7 @@
#define _LINUX_RANDOM_H
#include <linux/ioctl.h>
+#include <linux/types.h>
/* ioctl()'s for the random number generator */
Index: linux-cg/include/linux/reiserfs_xattr.h
===================================================================
--- linux-cg.orig/include/linux/reiserfs_xattr.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/reiserfs_xattr.h 2006-09-18 02:36:00.000000000 +0200
@@ -3,6 +3,7 @@
*/
#include <linux/xattr.h>
+#include <linux/types.h>
/* Magic value in header */
#define REISERFS_XATTR_MAGIC 0x52465841 /* "RFXA" */
Index: linux-cg/include/linux/video_decoder.h
===================================================================
--- linux-cg.orig/include/linux/video_decoder.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/video_decoder.h 2006-09-18 02:36:00.000000000 +0200
@@ -1,6 +1,8 @@
#ifndef _LINUX_VIDEO_DECODER_H
#define _LINUX_VIDEO_DECODER_H
+#include <linux/types.h>
+
#define HAVE_VIDEO_DECODER 1
struct video_decoder_capability { /* this name is too long */
Index: linux-cg/include/linux/video_encoder.h
===================================================================
--- linux-cg.orig/include/linux/video_encoder.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/video_encoder.h 2006-09-18 02:36:00.000000000 +0200
@@ -1,6 +1,8 @@
#ifndef _LINUX_VIDEO_ENCODER_H
#define _LINUX_VIDEO_ENCODER_H
+#include <linux/types.h>
+
struct video_encoder_capability { /* this name is too long */
__u32 flags;
#define VIDEO_ENCODER_PAL 1 /* can encode PAL signal */
Index: linux-cg/include/linux/videodev2.h
===================================================================
--- linux-cg.orig/include/linux/videodev2.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/linux/videodev2.h 2006-09-18 02:36:00.000000000 +0200
@@ -19,6 +19,7 @@
#include <linux/compiler.h> /* need __user */
#else
#define __user
+#include <sys/time.h>
#endif
#include <linux/types.h>
Index: linux-cg/include/sound/hdsp.h
===================================================================
--- linux-cg.orig/include/sound/hdsp.h 2006-09-18 02:36:00.000000000 +0200
+++ linux-cg/include/sound/hdsp.h 2006-09-18 02:36:00.000000000 +0200
@@ -1,6 +1,8 @@
#ifndef __SOUND_HDSP_H
#define __SOUND_HDSP_H
+#include <linux/types.h>
+
/*
* Copyright (C) 2003 Thomas Charbonnel (thomas@undata.org)
*
--
next prev parent reply other threads:[~2006-09-18 1:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1158079495.9189.125.camel@hades.cambridge.redhat.com>
2006-09-18 1:27 ` [patch 0/8] Re: All arch maintainers: 'make headers_check' fails on most architectures Arnd Bergmann
2006-09-18 1:27 ` [patch 1/8] extend make headers_check to detect more problems Arnd Bergmann
2006-09-18 6:21 ` Sam Ravnborg
2006-09-18 6:45 ` David Woodhouse
2006-09-21 15:13 ` David Woodhouse
2006-09-18 8:05 ` Arnd Bergmann
2006-09-18 8:10 ` David Woodhouse
2006-09-23 11:04 ` David Woodhouse
2006-09-23 13:18 ` Arnd Bergmann
2006-09-18 1:27 ` [patch 2/8] fix byteorder headers for make headers_check Arnd Bergmann
2006-09-18 1:27 ` [patch 3/8] hide kernel-only parts of some installed headers Arnd Bergmann
2006-09-18 1:27 ` [patch 4/8] fix exported flock64 constants Arnd Bergmann
2006-09-18 1:27 ` Arnd Bergmann [this message]
2006-09-18 1:27 ` [patch 6/8] annotate header files for make headers_check Arnd Bergmann
2006-09-18 1:27 ` [patch 8/8] annotate netfilter header " Arnd Bergmann
2006-09-18 1:37 ` [patch 7/8] annotate if_* " Arnd Bergmann
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=20060918013217.356156000@klappe.arndb.de \
--to=arnd@arndb.de \
--cc=dwmw2@infradead.org \
--cc=linux-arch@vger.kernel.org \
--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
Powered by JetHome