agostino64 / android_kernel_alps_rosemary

Xiaomi Redmi Note 10S port for Android 13 firmware
Other
3 stars 4 forks source link

build issues #1

Open jiriks74 opened 2 hours ago

jiriks74 commented 2 hours ago

While building this kernel for the EvolutionX ceustom ROM I got into several issues:

../../../../../../kernel/xiaomi/mt6785/drivers/devfreq/helio-dvfsrc-v3/helio-dvfsrc-sysfs.c:254:23: error: variable 'dvfsrc' set but not used [-Werror,-Wunused-but-set-variable]                                
        struct helio_dvfsrc *dvfsrc;  
                             ^            
1 error generated.                                                                                                                                                                                               
make[4]: *** [/home/jirka/evo/kernel/xiaomi/mt6785/scripts/Makefile.build:333: drivers/devfreq/helio-dvfsrc-v3/helio-dvfsrc-sysfs.o] Error 1                                                                     
make[3]: *** [/home/jirka/evo/kernel/xiaomi/mt6785/scripts/Makefile.build:637: drivers/devfreq/helio-dvfsrc-v3] Error 2                                                                                          
make[2]: *** [/home/jirka/evo/kernel/xiaomi/mt6785/scripts/Makefile.build:637: drivers/devfreq] Error 2 
../../../../../../kernel/xiaomi/mt6785/drivers/input/touchscreen/mediatek/ft3418_i2c/focaltech_core.c:495:9: error: variable 'uppoint' set but not used [-Werror,-Wunused-but-set-variable]
    int uppoint = 0;
        ^
1 error generated.
make[6]: *** [/home/jirka/evo/kernel/xiaomi/mt6785/scripts/Makefile.build:333: drivers/input/touchscreen/mediatek/ft3418_i2c/focaltech_core.o] Error 1

These two I bodged by using an if statement but the one below is harder one to fix:

../../../../../../kernel/xiaomi/mt6785/drivers/misc/mediatek/base/power/mcdi/mtk_mcdi_governor.c:180:5: error: a function definition without a prototype is deprecated in all versions of C and is not supported 
in C2x [-Werror,-Wdeprecated-non-prototype]
int get_cluster_off_token(cpu) 

Would you please help me in building this? I've already built both EvolutionX's and LineageOS's kernel and they both have issues with trusty dereferencing a null pointer and therefore crashing the kernel before the boot even properly starts.

jiriks74 commented 2 hours ago

I'm building the rosemary-t-oss branch

jiriks74 commented 2 hours ago

The rosemary-t-oss2 branch fails too:

../../../../../../kernel/xiaomi/mt6785/drivers/gpu/mediatek/gpu_mali/mali_valhall/mali-r32p1/drivers/gpu/arm/midgard/platform/mtk_platform_common/mtk_mfg_counter.c:543:7: warning: variable 'shader_block' set b
ut not used [-Wunused-but-set-variable]
                int shader_block, block_type, i, j, name_offset, data_offset, cnt, nr_hwc_blocks;
                    ^               
../../../../../../kernel/xiaomi/mt6785/drivers/gpu/mediatek/gpu_mali/mali_valhall/mali-r32p1/drivers/gpu/arm/midgard/platform/mtk_platform_common/mtk_mfg_counter.c:629:35: warning: variable 'data_offset' set b
ut not used [-Wunused-but-set-variable]
                int nr_hwc_blocks, name_offset, data_offset;
                                                ^
../../../../../../kernel/xiaomi/mt6785/drivers/gpu/mediatek/gpu_mali/mali_valhall/mali-r32p1/drivers/gpu/arm/midgard/platform/mtk_platform_common/mtk_mfg_counter.c:772:23: error: a function declaration without
 a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
int gator_gpu_pmu_init()      
                      ^         
                       void     
../../../../../../kernel/xiaomi/mt6785/drivers/gpu/mediatek/gpu_mali/mali_valhall/mali-r32p1/drivers/gpu/arm/midgard/platform/mtk_platform_common/mtk_mfg_counter.c:776:6: warning: variable 'nr_hwc_blocks' set 
but not used [-Wunused-but-set-variable]
        int nr_hwc_blocks, name_offset, data_offset; 
            ^                      
3 warnings and 1 error generated.