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 331ffe43751de6dd5112368d639ef6749c3eca23..953ca36a172df2cdcae3bf959b42426a7c67ad7c 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 703b948cc30e3a1efc3b0c7595ebcd4e039cd780..90ee85ac25a503b7d31ab7151735942022ee89b5 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);