Message ID | 87egpkop98.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Morimoto-san, On Fri, Feb 20, 2015 at 11:22 AM, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> wrote: > --- a/include/linux/of_dma.h > +++ b/include/linux/of_dma.h > @@ -37,8 +37,8 @@ extern int of_dma_controller_register(struct device_node *np, > (struct of_phandle_args *, struct of_dma *), > void *data); > extern void of_dma_controller_free(struct device_node *np); > -extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np, > - const char *name); > +struct dma_chan *of_dma_request_slave_channel(struct device_node *np, > + const char *name); Why have you dropped the "extern" keyword? Checkpach? All prototypes in the neighborhood have "extern" keywords, so I think it's better to keep it for consistency. > extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, > struct of_dma *ofdma); > extern struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec,
Hi Geert, Vinod > > --- a/include/linux/of_dma.h > > +++ b/include/linux/of_dma.h > > @@ -37,8 +37,8 @@ extern int of_dma_controller_register(struct device_node *np, > > (struct of_phandle_args *, struct of_dma *), > > void *data); > > extern void of_dma_controller_free(struct device_node *np); > > -extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np, > > - const char *name); > > +struct dma_chan *of_dma_request_slave_channel(struct device_node *np, > > + const char *name); > > Why have you dropped the "extern" keyword? Checkpach? > All prototypes in the neighborhood have "extern" keywords, so I think it's > better to keep it for consistency. OK, I can fix it. But, this is very large patchset (24 patches !). I don't want to send all patches if possible. I will send only [01/24 v3] now. Please let me know if it is not OK. Best regards --- Kuninori Morimoto
diff --git a/drivers/dma/of-dma.c b/drivers/dma/of-dma.c index ca31f1b..cbd4a8a 100644 --- a/drivers/dma/of-dma.c +++ b/drivers/dma/of-dma.c @@ -194,6 +194,7 @@ struct dma_chan *of_dma_request_slave_channel(struct device_node *np, return ERR_PTR(ret_no_channel); } +EXPORT_SYMBOL_GPL(of_dma_request_slave_channel); /** * of_dma_simple_xlate - Simple DMA engine translation function diff --git a/include/linux/of_dma.h b/include/linux/of_dma.h index 56bc026..687a0ac 100644 --- a/include/linux/of_dma.h +++ b/include/linux/of_dma.h @@ -37,8 +37,8 @@ extern int of_dma_controller_register(struct device_node *np, (struct of_phandle_args *, struct of_dma *), void *data); extern void of_dma_controller_free(struct device_node *np); -extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np, - const char *name); +struct dma_chan *of_dma_request_slave_channel(struct device_node *np, + const char *name); extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, struct of_dma *ofdma); extern struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec,