amlogic: Compile kernel modules with clang
authorChristian Hoffmann <chrmhoffmann@gmail.com>
Sat, 11 Feb 2023 10:55:00 +0000 (11:55 +0100)
committerChristian Hoffmann <chrmhoffmann@gmail.com>
Sat, 11 Feb 2023 17:20:32 +0000 (18:20 +0100)
Change-Id: Iedd2f240f01e25d240aeb41e7a8694c2ee29142b

Android.mk
bcmdhd.101.10.361.x/wl_cfg80211.c

index db58065693e9864b2ba75afb608bc48804464721..5c228efe706f3568ac2f39f2ba16e1140103ed78 100644 (file)
@@ -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
index d8c2150affb2d3c6ca58774e43416df46d8cb93f..8a317d8142babf25003032ab72f0d6577023a443 100755 (executable)
@@ -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;