mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
kernel6.6: support clang build for a4 and a5 [1/1]
PD#SWPL-156726 Problem: support clang build for a4 and a5 Solution: fix build error Verify: a4 a5 Change-Id: I9aa3e06010344c9a313365d3dcdf1b10b4f75904 Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
455e982edd
commit
6256ce3548
@@ -81,6 +81,11 @@ struct aml_watch_points *awp;
|
||||
READ_WB_REG_CASE(OFF, 15, REG, VAL); \
|
||||
} while (0)
|
||||
|
||||
#ifdef CONFIG_CC_IS_CLANG
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wimplicit-fallthrough"
|
||||
#endif
|
||||
|
||||
static u64 read_wb_reg(int reg, int n)
|
||||
{
|
||||
u64 val = 0;
|
||||
@@ -97,6 +102,10 @@ static u64 read_wb_reg(int reg, int n)
|
||||
return val;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CC_IS_CLANG
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
/* Determine number of WRP registers available. */
|
||||
static int aml_get_num_wrps(void)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
|
||||
ccflags-y += -I$(srctree)/mm -I$(srctree)/drivers/iommu/arm/arm-smmu-v3
|
||||
KBUILD_CFLAGS += -Wframe-larger-than=2068
|
||||
|
||||
obj-$(CONFIG_AMLOGIC_PAGE_TRACE) += page_trace.o
|
||||
obj-$(CONFIG_AMLOGIC_SLAB_TRACE) += slab_trace.o
|
||||
|
||||
@@ -166,8 +166,8 @@ export -f only_build_dtb_for_smarthome
|
||||
function make_menuconfig_cmd_for_smarthome () {
|
||||
if [[ -n ${MENUCONFIG} ]]; then
|
||||
set -x
|
||||
make ARCH=${ARCH} -C ${ROOT_DIR}/${KERNEL_DIR} O=${OUT_DIR} ${DEFCONFIG}
|
||||
make ARCH=${ARCH} -C ${ROOT_DIR}/${KERNEL_DIR} O=${OUT_DIR} menuconfig
|
||||
make ARCH=${ARCH} -C ${ROOT_DIR}/${KERNEL_DIR} O=${OUT_DIR} ${TOOL_ARGS} ${DEFCONFIG}
|
||||
make ARCH=${ARCH} -C ${ROOT_DIR}/${KERNEL_DIR} O=${OUT_DIR} ${TOOL_ARGS} menuconfig
|
||||
set +x
|
||||
exit
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user