lkml.org 
[lkml]   [2002]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.5 patch] drivers/char/rio/func.h needs linux/kdev_t.h
Hi,

while compiling 2.5.22 the compilation failed with the following error:

<-- snip -->

...
gcc -Wp,-MD,./.rioinit.o.d -D__KERNEL__
-I/home/bunk/linux/kernel-2.5/linux-2.5.22-full/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2
-fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=k6 -nostdinc -iwithprefix include -DKBUILD_BASENAME=rioinit -c -o
rioinit.o rioinit.c
In file included from rioinit.c:68:
func.h:167: parse error before `device'
func.h:167: warning: function declaration isn't a prototype
func.h:168: parse error before `device'
func.h:168: warning: function declaration isn't a prototype
make[3]: *** [rioinit.o] Error 1
make[3]: Leaving directory
`/home/bunk/linux/kernel-2.5/linux-2.5.22-full/drivers/char/rio'

<-- snip -->


It seems func.h needs to inlude linux/kdev_t.h:


--- drivers/char/rio/func.h.old Mon Jun 17 12:08:02 2002
+++ drivers/char/rio/func.h Mon Jun 17 12:10:09 2002
@@ -33,6 +33,8 @@
#ifndef __func_h_def
#define __func_h_def

+#include <linux/kdev_t.h>
+
#ifdef SCCS_LABELS
#ifndef lint
static char *_func_h_sccs_ = "@(#)func.h 1.3";

cu
Adrian

--

You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
Alan Cox

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.030 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site