forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/can/c_can/c_can.h
....@@ -81,7 +81,7 @@
8181 C_CAN_FUNCTION_REG,
8282 };
8383
84
-static const u16 reg_map_c_can[] = {
84
+static const u16 __maybe_unused reg_map_c_can[] = {
8585 [C_CAN_CTRL_REG] = 0x00,
8686 [C_CAN_STS_REG] = 0x02,
8787 [C_CAN_ERR_CNT_REG] = 0x04,
....@@ -121,7 +121,7 @@
121121 [C_CAN_MSGVAL2_REG] = 0xB2,
122122 };
123123
124
-static const u16 reg_map_d_can[] = {
124
+static const u16 __maybe_unused reg_map_d_can[] = {
125125 [C_CAN_CTRL_REG] = 0x00,
126126 [C_CAN_CTRL_EX_REG] = 0x02,
127127 [C_CAN_STS_REG] = 0x04,