public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vlsi_ir.h, add #define for KERNEL_VERSION
@ 2002-12-30  0:14 Steven Barnhart
  2002-12-30  0:22 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Barnhart @ 2002-12-30  0:14 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1387 bytes --]

This patch defines (what seems to be missing) KERNEL_VERSION for the
header file, include/net/irda/vlsi_ir.h to use. This fixes the bug that
the compiler spits out saying "no binary before (" or something of the
like. drivers/net/irda/vlsi_ir.c now compiles flawlessly.

Steven

------
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or
higher.
# This patch includes the following deltas:
#	           ChangeSet	1.975   -> 1.976  
#	include/net/irda/vlsi_ir.h	1.5     -> 1.6    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/12/29	steven@sbarn.net	1.976
# [PATCH] Allows /drivers/net/irda/vlsi_ir.c to compile by adding
missing
# #define to the include file include/net/irda/vlsi_ir.h.
# --------------------------------------------
#
diff -Nru a/include/net/irda/vlsi_ir.h b/include/net/irda/vlsi_ir.h
--- a/include/net/irda/vlsi_ir.h	Sun Dec 29 19:02:54 2002
+++ b/include/net/irda/vlsi_ir.h	Sun Dec 29 19:02:54 2002
@@ -26,8 +26,8 @@
 
 #ifndef IRDA_VLSI_FIR_H
 #define IRDA_VLSI_FIR_H
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,4)
+#define KERNEL_VERSION
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,4) 
 #ifdef CONFIG_PROC_FS
 /* PDE() introduced in 2.5.4 */
 #define PDE(inode) ((inode)->u.generic_ip)




[-- Attachment #2: vlsi_ir.h-patch --]
[-- Type: text/plain, Size: 1126 bytes --]

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.975   -> 1.976  
#	include/net/irda/vlsi_ir.h	1.5     -> 1.6    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/12/29	steven@sbarn.net	1.976
# [PATCH] Allows /drivers/net/irda/vlsi_ir.c to compile by adding missing
# #define to the include file include/net/irda/vlsi_ir.h.
# --------------------------------------------
#
diff -Nru a/include/net/irda/vlsi_ir.h b/include/net/irda/vlsi_ir.h
--- a/include/net/irda/vlsi_ir.h	Sun Dec 29 19:02:54 2002
+++ b/include/net/irda/vlsi_ir.h	Sun Dec 29 19:02:54 2002
@@ -26,8 +26,8 @@
 
 #ifndef IRDA_VLSI_FIR_H
 #define IRDA_VLSI_FIR_H
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,4)
+#define KERNEL_VERSION
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,4) 
 #ifdef CONFIG_PROC_FS
 /* PDE() introduced in 2.5.4 */
 #define PDE(inode) ((inode)->u.generic_ip)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] vlsi_ir.h, add #define for KERNEL_VERSION
  2002-12-30  0:14 [PATCH] vlsi_ir.h, add #define for KERNEL_VERSION Steven Barnhart
@ 2002-12-30  0:22 ` Christoph Hellwig
  2002-12-30  1:01   ` Steven Barnhart
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2002-12-30  0:22 UTC (permalink / raw)
  To: Steven Barnhart; +Cc: alan, linux-kernel

On Sun, Dec 29, 2002 at 07:14:38PM -0500, Steven Barnhart wrote:
> This patch defines (what seems to be missing) KERNEL_VERSION for the
> header file, include/net/irda/vlsi_ir.h to use. This fixes the bug that
> the compiler spits out saying "no binary before (" or something of the
> like. drivers/net/irda/vlsi_ir.c now compiles flawlessly.

What about including <linux/version.h> instead? :)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] vlsi_ir.h, add #define for KERNEL_VERSION
  2002-12-30  0:22 ` Christoph Hellwig
@ 2002-12-30  1:01   ` Steven Barnhart
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Barnhart @ 2002-12-30  1:01 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: alan, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1676 bytes --]

On Sun, 2002-12-29 at 19:22, Christoph Hellwig wrote:

> What about including <linux/version.h> instead? :)
> 

Ok that obviously is better so here is the updated patch. Please apply
and comment on any other problems with that :)

Steven

-----
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or
higher.
# This patch includes the following deltas:
#	           ChangeSet	1.976   -> 1.977  
#	drivers/net/irda/vlsi_ir.c	1.14    -> 1.15   
#	include/net/irda/vlsi_ir.h	1.6     -> 1.7    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/12/29	steven@sbarn.net	1.977
# [PATCH] Add missing include <linux/version.h> to vlsi_ir.c in place of
previous patch.
# --------------------------------------------
#
diff -Nru a/drivers/net/irda/vlsi_ir.c b/drivers/net/irda/vlsi_ir.c
--- a/drivers/net/irda/vlsi_ir.c	Sun Dec 29 19:59:26 2002
+++ b/drivers/net/irda/vlsi_ir.c	Sun Dec 29 19:59:26 2002
@@ -49,7 +49,7 @@
 #include <net/irda/irda.h>
 #include <net/irda/irda_device.h>
 #include <net/irda/wrapper.h>
-
+#include <linux/version.h>
 #include <net/irda/vlsi_ir.h>
 
 /********************************************************/
diff -Nru a/include/net/irda/vlsi_ir.h b/include/net/irda/vlsi_ir.h
--- a/include/net/irda/vlsi_ir.h	Sun Dec 29 19:59:26 2002
+++ b/include/net/irda/vlsi_ir.h	Sun Dec 29 19:59:26 2002
@@ -26,7 +26,7 @@
 
 #ifndef IRDA_VLSI_FIR_H
 #define IRDA_VLSI_FIR_H
-#define KERNEL_VERSION
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,4) 
 #ifdef CONFIG_PROC_FS
 /* PDE() introduced in 2.5.4 */


[-- Attachment #2: vlsi.c-patch --]
[-- Type: text/plain, Size: 1468 bytes --]

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.976   -> 1.977  
#	drivers/net/irda/vlsi_ir.c	1.14    -> 1.15   
#	include/net/irda/vlsi_ir.h	1.6     -> 1.7    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/12/29	steven@sbarn.net	1.977
# [PATCH] Add missing include <linux/version.h> to vlsi_ir.c in place of previous patch.
# --------------------------------------------
#
diff -Nru a/drivers/net/irda/vlsi_ir.c b/drivers/net/irda/vlsi_ir.c
--- a/drivers/net/irda/vlsi_ir.c	Sun Dec 29 19:59:26 2002
+++ b/drivers/net/irda/vlsi_ir.c	Sun Dec 29 19:59:26 2002
@@ -49,7 +49,7 @@
 #include <net/irda/irda.h>
 #include <net/irda/irda_device.h>
 #include <net/irda/wrapper.h>
-
+#include <linux/version.h>
 #include <net/irda/vlsi_ir.h>
 
 /********************************************************/
diff -Nru a/include/net/irda/vlsi_ir.h b/include/net/irda/vlsi_ir.h
--- a/include/net/irda/vlsi_ir.h	Sun Dec 29 19:59:26 2002
+++ b/include/net/irda/vlsi_ir.h	Sun Dec 29 19:59:26 2002
@@ -26,7 +26,7 @@
 
 #ifndef IRDA_VLSI_FIR_H
 #define IRDA_VLSI_FIR_H
-#define KERNEL_VERSION
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,4) 
 #ifdef CONFIG_PROC_FS
 /* PDE() introduced in 2.5.4 */

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-30  0:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-30  0:14 [PATCH] vlsi_ir.h, add #define for KERNEL_VERSION Steven Barnhart
2002-12-30  0:22 ` Christoph Hellwig
2002-12-30  1:01   ` Steven Barnhart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox