From: Jianxin Pan Date: Sat, 1 Apr 2017 08:24:24 +0000 (+0800) Subject: build: fix compile warnings from section mismatch X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c353ab2a6fc1f42e0b6806d9421e24be3f919eb1;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git build: fix compile warnings from section mismatch PD#138714: warning messages like this WARNING: modpopst: Found 3 section mismath(es). Change-Id: I26bbdfc9ef04bf177dbab69a7383aaea142b7e37 Signed-off-by: Jianxin Pan --- diff --git a/drivers/amlogic/cec/hdmi_ao_cec.c b/drivers/amlogic/cec/hdmi_ao_cec.c index 331ffe43751d..953ca36a172d 100644 --- a/drivers/amlogic/cec/hdmi_ao_cec.c +++ b/drivers/amlogic/cec/hdmi_ao_cec.c @@ -2071,7 +2071,7 @@ static void aocec_late_resume(struct early_suspend *h) } #endif -static __init int aml_cec_probe(struct platform_device *pdev) +static int aml_cec_probe(struct platform_device *pdev) { struct device *cdev; #ifdef CONFIG_OF @@ -2359,7 +2359,7 @@ static const struct dev_pm_ops aml_cec_pm = { #endif #ifdef CONFIG_OF -static const struct of_device_id aml_cec_dt_match[] __initconst = { +static const struct of_device_id aml_cec_dt_match[] = { { .compatible = "amlogic, amlogic-aocec", }, diff --git a/drivers/amlogic/media/deinterlace/deinterlace.c b/drivers/amlogic/media/deinterlace/deinterlace.c index 703b948cc30e..90ee85ac25a5 100644 --- a/drivers/amlogic/media/deinterlace/deinterlace.c +++ b/drivers/amlogic/media/deinterlace/deinterlace.c @@ -7170,7 +7170,8 @@ show_frame_format(struct device *dev, } static DEVICE_ATTR(frame_format, 0444, show_frame_format, NULL); -static int rmem_di_device_init(struct reserved_mem *rmem, struct device *dev) +static int __init rmem_di_device_init(struct reserved_mem *rmem, + struct device *dev) { di_dev_t *di_devp = dev_get_drvdata(dev);