Commit dc969cf9 authored by Federico Vaga's avatar Federico Vaga

drv: do not compile on warning

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent b3f907e8
...@@ -15,6 +15,7 @@ ccflags-y = -DGIT_VERSION=\"$(GIT_VERSION)\" \ ...@@ -15,6 +15,7 @@ ccflags-y = -DGIT_VERSION=\"$(GIT_VERSION)\" \
ccflags-$(CONFIG_FMC_TDC_DEBUG) += -DDEBUG ccflags-$(CONFIG_FMC_TDC_DEBUG) += -DDEBUG
ccflags-$(CONFIG_FMC_TDC_VERBOSE_DEBUG) += -DVERBOSE_DEBUG ccflags-$(CONFIG_FMC_TDC_VERBOSE_DEBUG) += -DVERBOSE_DEBUG
ccflags-y += -Werror
# Extract minimum com major, minor and patch number # Extract minimum com major, minor and patch number
ccflags-y += -D__ZIO_MIN_MAJOR_VERSION=$(shell echo $(ZIO_VERSION) | cut -d '-' -f 2 | cut -d '.' -f 1; ) ccflags-y += -D__ZIO_MIN_MAJOR_VERSION=$(shell echo $(ZIO_VERSION) | cut -d '-' -f 2 | cut -d '.' -f 1; )
......
...@@ -459,7 +459,7 @@ int test_dma(struct fmctdc_dev *ft, unsigned int buf_size, unsigned int use_sg) ...@@ -459,7 +459,7 @@ int test_dma(struct fmctdc_dev *ft, unsigned int buf_size, unsigned int use_sg)
int i, ret = 0; int i, ret = 0;
uint32_t eic; uint32_t eic;
dev_dbg(&ft->fmc->dev, "Test DMA\n"); dev_dbg(&ft->fmc->dev, "Test DMA - scatterlist: %d\n", use_sg);
/* Disable DMA interrupts, we do active waits here */ /* Disable DMA interrupts, we do active waits here */
eic = ft_ioread(ft, ft->ft_dma_eic_base + DMA_EIC_REG_EIC_IMR); eic = ft_ioread(ft, ft->ft_dma_eic_base + DMA_EIC_REG_EIC_IMR);
......
...@@ -67,7 +67,7 @@ static inline int zio_chan_has_active_block(struct zio_channel *chan) ...@@ -67,7 +67,7 @@ static inline int zio_chan_has_active_block(struct zio_channel *chan)
{ {
return !!(chan->active_block); return !!(chan->active_block);
} }
#if 0
/** /**
* It tells if the acquisition can be done. * It tells if the acquisition can be done.
* @cset channel set instance * @cset channel set instance
...@@ -93,7 +93,7 @@ static int zio_cset_can_acquire(struct zio_cset *cset) ...@@ -93,7 +93,7 @@ static int zio_cset_can_acquire(struct zio_cset *cset)
return 1; return 1;
} }
#endif
/** /**
* It converts a channel bitmask into an IRQ bitmask according to * It converts a channel bitmask into an IRQ bitmask according to
......
...@@ -243,6 +243,8 @@ static int ft_zio_conf_set(struct device *dev, struct zio_attribute *zattr, ...@@ -243,6 +243,8 @@ static int ft_zio_conf_set(struct device *dev, struct zio_attribute *zattr,
default: default:
return -EINVAL; return -EINVAL;
} }
default:
return -EPERM;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment