From ba4ad8cd65fd85f214752f3467b7f770ab4f2246 Mon Sep 17 00:00:00 2001 From: Christian Hoffmann Date: Sat, 11 Feb 2023 11:55:00 +0100 Subject: [PATCH] amlogic: Compile kernel modules with clang Change-Id: Iedd2f240f01e25d240aeb41e7a8694c2ee29142b --- Android.mk | 2 +- bcmdhd.101.10.361.x/wl_cfg80211.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1