trivial fix for raw compiled as module 2.5.45

trivial fix for raw compiled as module 2.5.45

Post by Stephen Hemminge » Sat, 02 Nov 2002 19:50:11



Can't compile raw.c as module because blkdev_ioctl is not exported.

# 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.877   -> 1.878  
#       drivers/block/ioctl.c   1.51    -> 1.52  
#       drivers/block/Makefile  1.12    -> 1.13  
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------

# Export block dev to allow raw to be built as a module
# --------------------------------------------
#
diff -Nru a/drivers/block/Makefile b/drivers/block/Makefile
--- a/drivers/block/Makefile    Fri Nov  1 09:45:40 2002

 # In the future, some of these should be built conditionally.
 #

-export-objs    := elevator.o ll_rw_blk.o loop.o genhd.o acsi.o \
-                  scsi_ioctl.o deadline-iosched.o
+export-objs    := elevator.o ll_rw_blk.o ioctl.o loop.o genhd.o acsi.o \
+                  scsi_ioctl.o deadline-iosched.o

 obj-y  := elevator.o ll_rw_blk.o ioctl.o genhd.o scsi_ioctl.o deadline-iosched.o

diff -Nru a/drivers/block/ioctl.c b/drivers/block/ioctl.c
--- a/drivers/block/ioctl.c     Fri Nov  1 09:45:40 2002

 #include <linux/sched.h>         /* for capable() */
+#include <linux/module.h>
 #include <linux/blk.h>                   /* for set_device_ro() */
 #include <linux/blkpg.h>

        }
        return -ENOTTY;
 }
+
+EXPORT_SYMBOL(blkdev_ioctl);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. 2.5.45 [TRIVIAL] Fixed pmtu usage in iptunnel

# 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.858   -> 1.859  
#       net/ipv4/netfilter/ipt_TCPMSS.c 1.5     -> 1.6    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------

# ipt_TCPMSS.c:
#   Fixed broken code to use inline shorthand dst_pmtu()
# --------------------------------------------
#
diff -Nru a/net/ipv4/netfilter/ipt_TCPMSS.c b/net/ipv4/netfilter/ipt_TCPMSS.c
--- a/net/ipv4/netfilter/ipt_TCPMSS.c   Fri Nov  1 13:13:29 2002

                        return NF_DROP; /* or IPT_CONTINUE ?? */
                }

-               if((*pskb)->dst->pmtu <= (sizeof(struct iphdr) + sizeof(struct tcphdr))) {
+               if(dst_pmtu((*pskb)->dst) <= (sizeof(struct iphdr) + sizeof(struct tcphdr))) {
                        if (net_ratelimit())
                                printk(KERN_ERR
-                                       "ipt_tcpmss_target: unknown or invalid path-MTU (%d)\n", (*pskb)->dst->pmtu);
+                                       "ipt_tcpmss_target: unknown or invalid path-MTU (%d)\n", dst_pmtu((*pskb)->dst));
                        return NF_DROP; /* or IPT_CONTINUE ?? */
                }

-               newmss = (*pskb)->dst->pmtu - sizeof(struct iphdr) - sizeof(struct tcphdr);
+               newmss = dst_pmtu((*pskb)->dst) - sizeof(struct iphdr) - sizeof(struct tcphdr);
        } else
                newmss = tcpmssinfo->mss;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. how to get DNS domain name using socket API??

3. 2.5.45 drivers/net/irda/irda-usb.c Compile Fix

4. Multiple processes accessing the same FIFO

5. 2.5.45 Patch to fix ipt_TCPMSS compile error

6. Enhanced IDE Patch?

7. 2.5.45-ac1 CardBus compile Fix

8. Has anyone been able to get new xf33 drivers to work??

9. 2.5.45 [TRIVIAL]: Cosmetic ide-cd error message printk format

10. fixes for building kernel 2.5.45 using Intel compiler

11. fixes for building kernel 2.5.45 using Intel compiler (Ta ke 2)

12. 2.5.45: fix fs capabilities initialization

13. 2.5.45: IDE as modules - unresolved symbols