Skip to contentSkip to conversation

soc: fsl: cpm1: qmc: Fix unused data compilation warning

PATCH New Herve Codina 1 participant 1 message Sep 9, 2024

Subsystems (3)
lore
Share & tools
lore

Herve Codina

author maintainer
#0 lore raw

PATCH 1/1 soc: fsl: cpm1: qmc: Fix unused data compilation warning

In some configuration, compilation raises warnings related to unused data. Indeed, depending on configuration, those data can be unused.

mark those data as __maybe_unused to avoid compilation warnings.

Fixes eb680d563089 ("soc: fsl: cpm1: qmc: Add support for QUICC Engine (QE) implementation")
---
 drivers/soc/fsl/qe/qmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/soc/fsl/qe/qmc.c +2 -2
index 3dffebb48b0d..5e38be6530f9 100644
@@ -2056,7 +2056,7 @@ static void qmc_remove(struct platform_device *pdev)
 	qmc_exit_xcc(qmc);
 }
 
-static const struct qmc_data qmc_data_cpm1 = {
+static const struct qmc_data qmc_data_cpm1 __maybe_unused = {
 	.version = QMC_CPM1,
 	.tstate = 0x30000000,
 	.rstate = 0x31000000,
@@ -2066,7 +2066,7 @@ static const struct qmc_data qmc_data_cpm1 = {
 	.rpack = 0x00000000,
 };
 
-static const struct qmc_data qmc_data_qe = {
+static const struct qmc_data qmc_data_qe __maybe_unused = {
 	.version = QMC_QE,
 	.tstate = 0x30000000,
 	.rstate = 0x30000000,
Signature · 1 line
2.46.0