From: Christian Hoffmann Date: Sat, 11 Feb 2023 10:55:00 +0000 (+0100) Subject: amlogic: Compile kernel modules with clang X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba4ad8cd65fd85f214752f3467b7f770ab4f2246;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_dhd-driver.git amlogic: Compile kernel modules with clang Change-Id: Iedd2f240f01e25d240aeb41e7a8694c2ee29142b --- diff --git a/Android.mk b/Android.mk index db58065..5c228ef 100644 --- a/Android.mk +++ b/Android.mk @@ -34,7 +34,7 @@ KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ $(_dhd_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NAME) @mkdir -p $(dir $@) @cp -R $(DHD_PATH)/* $(dir $@)/ - $(hide) +$(KERNEL_MAKE_CMD) $(PATH_OVERRIDE) $(KERNEL_MAKE_FLAGS) -C $(_dhd_intermediates) M=$(abspath $(_dhd_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) KERNEL_SRC=$(abspath $(KERNEL_OUT)) bcmdhd_sdio + $(PATH_OVERRIDE) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(_dhd_intermediates) M=$(abspath $(_dhd_intermediates)) ARCH=$(TARGET_KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) $(KERNEL_CLANG_TRIPLE) $(KERNEL_CC) KERNEL_SRC=$(abspath $(KERNEL_OUT)) bcmdhd_sdio $(KERNEL_TOOLCHAIN_PATH)strip --strip-unneeded $@; include $(BUILD_SYSTEM)/base_rules.mk diff --git a/bcmdhd.101.10.361.x/wl_cfg80211.c b/bcmdhd.101.10.361.x/wl_cfg80211.c index d8c2150..8a317d8 100755 --- a/bcmdhd.101.10.361.x/wl_cfg80211.c +++ b/bcmdhd.101.10.361.x/wl_cfg80211.c @@ -6297,7 +6297,7 @@ s32 wl_handle_reassoc(struct bcm_cfg80211 *cfg, struct net_device *dev, wlcfg_assoc_info_t *info) { - wl_reassoc_params_t *reassoc_params; + wl_reassoc_params_t *reassoc_params = NULL; s32 err = BCME_OK; size_t reassoc_params_size; u32 chan_cnt = info->chan_cnt;