It is currently Tue, 14 Jul 2020 01:41:52 GMT



 
Author Message
 Trivial PATCH: linux-2.5.20/include/linux/blkdev.h - BLK_DEFAULT_QUEUE needs parentheses
        The definition of BLK_DEFAULT_QUEUE in
linux-2.5.20/include/linux/blkdev.h needs parentheses.  Otherwise,
expressions like "DEFAULT_BLK_QUEUE(major)->queuedata" generate
compiler errors.

        Here is the patch.

Adam J. Richter     __     ______________   575 Oroville Road
a...@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

--- linux-2.5.20/include/linux/blkdev.h 2002-06-02 18:44:44.000000000 -0700
+++ linux/include/linux/blkdev.h        2002-06-07 07:21:15.000000000 -0700
@@ -281,7 +281,7 @@
  * so as to eliminate the need for each and every block device
  * driver to know about the internal structure of blk_dev[].
  */
-#define BLK_DEFAULT_QUEUE(_MAJOR)  &blk_dev[_MAJOR].request_queue
+#define BLK_DEFAULT_QUEUE(_MAJOR)  (&blk_dev[_MAJOR].request_queue)

 extern struct sec_size * blk_sec[MAX_BLKDEV];
 extern struct blk_dev_struct blk_dev[MAX_BLKDEV];
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at   http://www.**-**.com/
Please read the FAQ at   http://www.**-**.com/



 Tue, 23 Nov 2004 22:30:17 GMT   
 
   [ 1 post ] 

Similar Threads

1. Patch: linux-2.5.31/include/linux/blkdev.h paranethesis problem in BLK__DEFAULT_QUEUE

2. Small bug in linux-2.4.20/include/linux/kernel.h

3. Trivial patch: linux-2.5.20/Rules.make cleanup

4. [PATCH] linux-2.4.20-pre1_cyclone-timer_B3

5. [PATCH] linux-2.4.20-pre5_cyclone-timer_B0

6. Patch: linux-2.5.44/include/linux/pci.h - eliminate pci_dev.driver_data

7. Trivial patch: linux-2.5.33/arch/i386/pci/irq.c - pcibios_fixup_irqs should be static

8. Trivial fix for get_user undefined in linux-2.4.20 wdt977 kernel module

9. [2.5.33] trivial compile fix for include/asm-arm/arch-pxa/pxa-regs.h (fwd)

10. [2.5.33] trivial compile fix for include/asm-arm/arch-pxa/pxa-regs.h


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software