From 01cc176f4da3c4d0db45b64a3e66619fdce6bf61 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Tue, 5 Aug 2008 15:01:21 +0000 Subject: [PATCH] #ifdef out unused functions 'lock_port()' and 'unlock_port()' to avoid compiler warnings. --- comedi/drivers/pcmmio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/pcmmio.c b/comedi/drivers/pcmmio.c index 04b37a6d..581a3178 100644 --- a/comedi/drivers/pcmmio.c +++ b/comedi/drivers/pcmmio.c @@ -310,8 +310,10 @@ static int pcmmio_cmdtest(comedi_device * dev, comedi_subdevice * s, /* some helper functions to deal with specifics of this device's registers */ static void init_asics(comedi_device * dev); /* sets up/clears ASIC chips to defaults */ static void switch_page(comedi_device * dev, int asic, int page); +#ifdef notused static void lock_port(comedi_device * dev, int asic, int port); static void unlock_port(comedi_device * dev, int asic, int port); +#endif /* * Attach is called by the Comedi core to configure the driver @@ -735,6 +737,7 @@ static void switch_page(comedi_device * dev, int asic, int page) devpriv->asics[asic].iobase + REG_PAGELOCK); } +#ifdef notused static void lock_port(comedi_device * dev, int asic, int port) { if (asic < 0 || asic >= thisboard->dio_num_asics) @@ -747,7 +750,6 @@ static void lock_port(comedi_device * dev, int asic, int port) outb(devpriv->asics[asic].pagelock, devpriv->asics[asic].iobase + REG_PAGELOCK); return; - (void)lock_port(dev, asic, port); /* not reached, suppress compiler warnings */ } static void unlock_port(comedi_device * dev, int asic, int port) @@ -760,8 +762,8 @@ static void unlock_port(comedi_device * dev, int asic, int port) /* now write out the shadow register */ outb(devpriv->asics[asic].pagelock, devpriv->asics[asic].iobase + REG_PAGELOCK); - (void)unlock_port(dev, asic, port); /* not reached, suppress compiler warnings */ } +#endif /* notused */ static irqreturn_t interrupt_pcmmio(int irq, void *d PT_REGS_ARG) { -- 2.26.2