build: fix compile warnings from section mismatch
authorJianxin Pan <jianxin.pan@amlogic.com>
Sat, 1 Apr 2017 08:24:24 +0000 (16:24 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 5 Apr 2017 11:43:36 +0000 (04:43 -0700)
PD#138714: warning messages like this

WARNING: modpopst: Found 3 section mismath(es).

Change-Id: I26bbdfc9ef04bf177dbab69a7383aaea142b7e37
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
drivers/amlogic/cec/hdmi_ao_cec.c
drivers/amlogic/media/deinterlace/deinterlace.c

index 331ffe4..953ca36 100644 (file)
@@ -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",
        },
index 703b948..90ee85a 100644 (file)
@@ -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);