drivers: Fix a class of compiler warnings
Subsystems (12)
PATCH 1/1 drivers: Fix a class of compiler warnings
Fix the warnings look like below:
/linux/drivers/dma/timb_dma.c:801: warning: 'td_remove' defined but not used
I get the warning above when I compile 3.8.6 kernel, then I fix it and others' same issue in kernel with the help of perl, then I review and check the changes one by one.
Signed-off-by Wang YanQing <[email protected]>
--- drivers/dma/timb_dma.c | 2 +- drivers/mfd/omap-usb-host.c | 2 +- drivers/mfd/twl4030-madc.c | 2 +- drivers/mmc/host/wmt-sdmmc.c | 2 +- drivers/spi/spi-atmel.c | 2 +- drivers/tty/serial/xilinx_uartps.c | 2 +- drivers/usb/gadget/mv_u3d_core.c | 2 +- drivers/usb/gadget/mv_udc_core.c | 2 +- drivers/usb/musb/blackfin.c | 2 +- drivers/usb/otg/mv_otg.c | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-)
drivers/dma/timb_dma.c +1 -1
@@ -798,7 +798,7 @@ err_release_region: } -static int td_remove (struct platform_device *pdev) +static int __exit td_remove(struct platform_device *pdev) {struct timb_dma *td =platform_get_drvdata (pdev);struct resource *iomem =platform_get_resource (pdev,IORESOURCE_MEM ,0 );
drivers/mfd/omap-usb-host.c +1 -1
@@ -654,7 +654,7 @@ end_probe:* * Reverses the effect of usbhs_omap_probe(). */ -static int usbhs_omap_remove (struct platform_device *pdev) +static int __exit usbhs_omap_remove(struct platform_device *pdev) {struct usbhs_hcd_omap *omap =platform_get_drvdata (pdev);
drivers/mfd/twl4030-madc.c +1 -1
@@ -785,7 +785,7 @@ err_power:return ret; } -static int twl4030_madc_remove (struct platform_device *pdev) +static int __exit twl4030_madc_remove(struct platform_device *pdev) {struct twl4030_madc_data *madc =platform_get_drvdata (pdev);
drivers/mmc/host/wmt-sdmmc.c +1 -1
@@ -892,7 +892,7 @@ fail1:return ret; } -static int wmt_mci_remove (struct platform_device *pdev) +static int __exit wmt_mci_remove(struct platform_device *pdev) {struct mmc_host *mmc;struct wmt_mci_priv *priv;
drivers/spi/spi-atmel.c +1 -1
@@ -1009,7 +1009,7 @@ out_free:return ret; } -static int atmel_spi_remove (struct platform_device *pdev) +static int __exit atmel_spi_remove(struct platform_device *pdev) {struct spi_master *master =platform_get_drvdata (pdev);struct atmel_spi *as =spi_master_get_devdata (master);
drivers/tty/serial/xilinx_uartps.c +1 -1
@@ -997,7 +997,7 @@ static int xuartps_probe(struct platform_device *pdev)* * Returns 0 on success, negative error otherwise **/ -static int xuartps_remove (struct platform_device *pdev) +static int __exit xuartps_remove(struct platform_device *pdev) {struct uart_port *port =dev_get_drvdata (&pdev->dev);int rc =0 ;
drivers/usb/gadget/mv_u3d_core.c +1 -1
@@ -1763,7 +1763,7 @@ static void mv_u3d_gadget_release(struct device *dev)dev_dbg (dev,"%s\n" , __func__); } -static int mv_u3d_remove (struct platform_device *dev) +static int __exit mv_u3d_remove(struct platform_device *dev) {struct mv_u3d *u3d =platform_get_drvdata (dev);
drivers/usb/gadget/mv_udc_core.c +1 -1
@@ -2128,7 +2128,7 @@ static void gadget_release(struct device *_dev)complete (udc->done); } -static int mv_udc_remove (struct platform_device *dev) +static int __exit mv_udc_remove(struct platform_device *dev) {struct mv_udc *udc = the_controller;int clk_i;
drivers/usb/musb/blackfin.c +1 -1
@@ -510,7 +510,7 @@ err0:return ret; } -static int bfin_remove (struct platform_device *pdev) +static int __exit bfin_remove(struct platform_device *pdev) {struct bfin_glue *glue =platform_get_drvdata (pdev);
drivers/usb/otg/mv_otg.c +1 -1
@@ -659,7 +659,7 @@ static struct attribute_group inputs_attr_group = { .attrs = inputs_attrs, }; -int mv_otg_remove (struct platform_device *pdev) +static int __exit mv_otg_remove(struct platform_device *pdev) {struct mv_otg *mvotg =platform_get_drvdata (pdev);int clk_i;
Signature · 1 line
1.7.12.4.dirty