summaryrefslogtreecommitdiff
path: root/pfinet/linux-src/include/linux/parport.h
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2016-01-02 18:38:31 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-01-02 18:48:57 +0100
commit05e6878c8767cf7006675d5e5a646b2f74aa88c7 (patch)
tree3cba4a57d98573761d4538f6a24f1be1c2b2c197 /pfinet/linux-src/include/linux/parport.h
parent5714421bb1d066abebc7e993bdf06e655b879b3a (diff)
allow pfinet to link using -O0
This fixes a long list of undefined references when compiling with -O0 by using static instead of extern in header files.
Diffstat (limited to 'pfinet/linux-src/include/linux/parport.h')
-rw-r--r--pfinet/linux-src/include/linux/parport.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pfinet/linux-src/include/linux/parport.h b/pfinet/linux-src/include/linux/parport.h
index 856fc016..3712ce16 100644
--- a/pfinet/linux-src/include/linux/parport.h
+++ b/pfinet/linux-src/include/linux/parport.h
@@ -277,7 +277,7 @@ extern void parport_release(struct pardevice *dev);
/* parport_yield relinquishes the port if it would be helpful to other
* drivers. The return value is the same as for parport_claim.
*/
-extern __inline__ int parport_yield(struct pardevice *dev)
+static __inline__ int parport_yield(struct pardevice *dev)
{
unsigned long int timeslip = (jiffies - dev->time);
if ((dev->port->waithead == NULL) || (timeslip < dev->timeslice))
@@ -289,7 +289,7 @@ extern __inline__ int parport_yield(struct pardevice *dev)
/* parport_yield_blocking is the same but uses parport_claim_or_block
* instead of parport_claim.
*/
-extern __inline__ int parport_yield_blocking(struct pardevice *dev)
+static __inline__ int parport_yield_blocking(struct pardevice *dev)
{
unsigned long int timeslip = (jiffies - dev->time);
if ((dev->port->waithead == NULL) || (timeslip < dev->timeslice))
@@ -301,7 +301,7 @@ extern __inline__ int parport_yield_blocking(struct pardevice *dev)
/*
* Lowlevel drivers _can_ call this support function to handle irqs.
*/
-extern __inline__ void parport_generic_irq(int irq, struct parport *port,
+static __inline__ void parport_generic_irq(int irq, struct parport *port,
struct pt_regs *regs)
{
read_lock(&port->cad_lock);