On Tue, 3 Mar 2015 14:50:51 +0800
<yanjiang.jin@xxxxxxxxxxxxx> wrote:
This commit is to avoid the below warnings:I'm not seeing these warnings - both caamalg.c and caamhash.c use
drivers/crypto/caam/sg_sw_sec4.h:88:12: warning:
'dma_map_sg_chained' defined but not used [-Wunused-function]
static int dma_map_sg_chained(struct device *dev, struct scatterlist *sg,
^
drivers/crypto/caam/sg_sw_sec4.h:104:12: warning:
'dma_unmap_sg_chained' defined but not used [-Wunused-function]
static int dma_unmap_sg_chained(struct device *dev,
^
those functions fine.
-static int dma_map_sg_chained(struct device *dev, struct scatterlist *sg,not to mention this isn't how to fix a defined but not used warning:
+static inline int dma_map_sg_chained(struct device *dev, struct scatterlist *sg,
unsigned int nents, enum dma_data_direction dir,
bool chained)
marking the functions inline results in different compiler output.
NACK from me.
Kim