diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-v850/hardirq.h | 4 | ||||
-rw-r--r-- | include/linux/libata.h | 14 | ||||
-rw-r--r-- | include/linux/sysctl.h | 2 |
3 files changed, 19 insertions, 1 deletions
diff --git a/include/asm-v850/hardirq.h b/include/asm-v850/hardirq.h index 5dfca8047cbe..d98488cd5af1 100644 --- a/include/asm-v850/hardirq.h +++ b/include/asm-v850/hardirq.h | |||
@@ -5,6 +5,8 @@ | |||
5 | #include <linux/threads.h> | 5 | #include <linux/threads.h> |
6 | #include <linux/cache.h> | 6 | #include <linux/cache.h> |
7 | 7 | ||
8 | #include <asm/irq.h> | ||
9 | |||
8 | typedef struct { | 10 | typedef struct { |
9 | unsigned int __softirq_pending; | 11 | unsigned int __softirq_pending; |
10 | } ____cacheline_aligned irq_cpustat_t; | 12 | } ____cacheline_aligned irq_cpustat_t; |
@@ -22,4 +24,6 @@ typedef struct { | |||
22 | # error HARDIRQ_BITS is too low! | 24 | # error HARDIRQ_BITS is too low! |
23 | #endif | 25 | #endif |
24 | 26 | ||
27 | void ack_bad_irq(unsigned int irq); | ||
28 | |||
25 | #endif /* __V850_HARDIRQ_H__ */ | 29 | #endif /* __V850_HARDIRQ_H__ */ |
diff --git a/include/linux/libata.h b/include/linux/libata.h index ad5996183ec2..f2dbb684ce9e 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -59,6 +59,8 @@ | |||
59 | #define VPRINTK(fmt, args...) | 59 | #define VPRINTK(fmt, args...) |
60 | #endif /* ATA_DEBUG */ | 60 | #endif /* ATA_DEBUG */ |
61 | 61 | ||
62 | #define BPRINTK(fmt, args...) if (ap->flags & ATA_FLAG_DEBUGMSG) printk(KERN_ERR "%s: " fmt, __FUNCTION__, ## args) | ||
63 | |||
62 | #ifdef ATA_NDEBUG | 64 | #ifdef ATA_NDEBUG |
63 | #define assert(expr) | 65 | #define assert(expr) |
64 | #else | 66 | #else |
@@ -119,6 +121,7 @@ enum { | |||
119 | ATA_FLAG_PIO_DMA = (1 << 8), /* PIO cmds via DMA */ | 121 | ATA_FLAG_PIO_DMA = (1 << 8), /* PIO cmds via DMA */ |
120 | ATA_FLAG_NOINTR = (1 << 9), /* FIXME: Remove this once | 122 | ATA_FLAG_NOINTR = (1 << 9), /* FIXME: Remove this once |
121 | * proper HSM is in place. */ | 123 | * proper HSM is in place. */ |
124 | ATA_FLAG_DEBUGMSG = (1 << 10), | ||
122 | 125 | ||
123 | ATA_QCFLAG_ACTIVE = (1 << 1), /* cmd not yet ack'd to scsi lyer */ | 126 | ATA_QCFLAG_ACTIVE = (1 << 1), /* cmd not yet ack'd to scsi lyer */ |
124 | ATA_QCFLAG_SG = (1 << 3), /* have s/g table? */ | 127 | ATA_QCFLAG_SG = (1 << 3), /* have s/g table? */ |
@@ -659,6 +662,17 @@ static inline void ata_tf_init(struct ata_port *ap, struct ata_taskfile *tf, uns | |||
659 | tf->device = ATA_DEVICE_OBS | ATA_DEV1; | 662 | tf->device = ATA_DEVICE_OBS | ATA_DEV1; |
660 | } | 663 | } |
661 | 664 | ||
665 | static inline void ata_qc_reinit(struct ata_queued_cmd *qc) | ||
666 | { | ||
667 | qc->__sg = NULL; | ||
668 | qc->flags = 0; | ||
669 | qc->cursect = qc->cursg = qc->cursg_ofs = 0; | ||
670 | qc->nsect = 0; | ||
671 | qc->nbytes = qc->curbytes = 0; | ||
672 | |||
673 | ata_tf_init(qc->ap, &qc->tf, qc->dev->devno); | ||
674 | } | ||
675 | |||
662 | 676 | ||
663 | /** | 677 | /** |
664 | * ata_irq_on - Enable interrupts on a port. | 678 | * ata_irq_on - Enable interrupts on a port. |
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 64f203c45378..6bc03c911a83 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
@@ -20,7 +20,6 @@ | |||
20 | 20 | ||
21 | #include <linux/kernel.h> | 21 | #include <linux/kernel.h> |
22 | #include <linux/types.h> | 22 | #include <linux/types.h> |
23 | #include <linux/list.h> | ||
24 | #include <linux/compiler.h> | 23 | #include <linux/compiler.h> |
25 | 24 | ||
26 | struct file; | 25 | struct file; |
@@ -859,6 +858,7 @@ enum | |||
859 | }; | 858 | }; |
860 | 859 | ||
861 | #ifdef __KERNEL__ | 860 | #ifdef __KERNEL__ |
861 | #include <linux/list.h> | ||
862 | 862 | ||
863 | extern void sysctl_init(void); | 863 | extern void sysctl_init(void); |
864 | 864 | ||