Skip to content

Commit 1117b91

Browse files
hcodinachleroy
authored andcommitted
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. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202409071707.ou2KFNKO-lkp@intel.com/ Fixes: eb680d5 ("soc: fsl: cpm1: qmc: Add support for QUICC Engine (QE) implementation") Signed-off-by: Herve Codina <herve.codina@bootlin.com> Link: https://lore.kernel.org/r/20240909121129.57067-1-herve.codina@bootlin.com Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
1 parent 122019f commit 1117b91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/soc/fsl/qe/qmc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,7 +2055,7 @@ static void qmc_remove(struct platform_device *pdev)
20552055
qmc_exit_xcc(qmc);
20562056
}
20572057

2058-
static const struct qmc_data qmc_data_cpm1 = {
2058+
static const struct qmc_data qmc_data_cpm1 __maybe_unused = {
20592059
.version = QMC_CPM1,
20602060
.tstate = 0x30000000,
20612061
.rstate = 0x31000000,
@@ -2065,7 +2065,7 @@ static const struct qmc_data qmc_data_cpm1 = {
20652065
.rpack = 0x00000000,
20662066
};
20672067

2068-
static const struct qmc_data qmc_data_qe = {
2068+
static const struct qmc_data qmc_data_qe __maybe_unused = {
20692069
.version = QMC_QE,
20702070
.tstate = 0x30000000,
20712071
.rstate = 0x30000000,

0 commit comments

Comments
 (0)