From nobody Sat Nov 30 12:39:01 2024 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 24FCB1B6541 for ; Mon, 9 Sep 2024 12:11:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725883912; cv=none; b=jw5USj4KKskSe3m5wQcHBuhiyFo2CfjyekmTaTIUm8pZOnpI7UZqpMHgrZsvZAgYlzJ0DcKN9eI7udPTqSx6gDV6cmirHKFnVq67pUrcXapiBXpvRZricbOnGhfC/0MNPj/TPR4Rkl/mWt2qNWCEtKaxIDQT7D9OVDepL5hOsdQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725883912; c=relaxed/simple; bh=PaZ41nueg92VJgHd8zhu4eNdScyhn/qDQyKFNSPnfAg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oD3sRsHD90YXGDyyDw+ELPRjRwZfub7xa/W5RhOFvqkhy6YfkY74bcrnjsrfkrk+ddUdpVsNIKZa6vbrzFzW/G8Q9P/GiddRPV51yXKrvO94ApYoMoDgwRMpve6YvH4Zmc7YXjQeNiYcjAygGjZSvP0lX3oBQBgzpnvFmkIdQuQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=F8eAawXj; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="F8eAawXj" Received: by mail.gandi.net (Postfix) with ESMTPA id 72AA81BF204; Mon, 9 Sep 2024 12:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1725883902; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=afjW2HbfOkKhSUvBb1KpugqYFb+VlNLEMmHfBzTMbUc=; b=F8eAawXjVdvdQglkIS1te66pz6gB4LnLU6IVQ7BflkBY8Sywmw90NfiQrJQsf5x6Apeyfv iP9OPhLI6eB+kS4EwyLIih814oi+98l5SL1XegBNbmzDxCJqxGUzh42Ioi9oPg695+aroL tlr5COqF68sniaFyQDGmzHKHpEbO4sK0U/foqB7ZpP1V9auuBY3Bos/Oif2PTSqBjdFxY8 iJr/g7X1xsOOAM3uQqY9iv4Nn0urhotGwsZvcrka8xg9Tz+Q1EZ8myVeytOJbUoD/SrGlM 8J9KDv18ChOOZdxBNMBbMbJE8pRUwIN1X7xSVW246FIOwnyldvU+aDLKf0GCwg== From: Herve Codina To: Herve Codina , Qiang Zhao , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , kernel test robot Subject: [PATCH] soc: fsl: cpm1: qmc: Fix unused data compilation warning Date: Mon, 9 Sep 2024 14:11:29 +0200 Message-ID: <20240909121129.57067-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: herve.codina@bootlin.com Content-Type: text/plain; charset="utf-8" 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 Closes: https://lore.kernel.org/oe-kbuild-all/202409071707.ou2KFNKO-lkp@int= el.com/ Fixes: eb680d563089 ("soc: fsl: cpm1: qmc: Add support for QUICC Engine (QE= ) implementation") Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c index 3dffebb48b0d..5e38be6530f9 100644 --- a/drivers/soc/fsl/qe/qmc.c +++ b/drivers/soc/fsl/qe/qmc.c @@ -2056,7 +2056,7 @@ static void qmc_remove(struct platform_device *pdev) qmc_exit_xcc(qmc); } =20 -static const struct qmc_data qmc_data_cpm1 =3D { +static const struct qmc_data qmc_data_cpm1 __maybe_unused =3D { .version =3D QMC_CPM1, .tstate =3D 0x30000000, .rstate =3D 0x31000000, @@ -2066,7 +2066,7 @@ static const struct qmc_data qmc_data_cpm1 =3D { .rpack =3D 0x00000000, }; =20 -static const struct qmc_data qmc_data_qe =3D { +static const struct qmc_data qmc_data_qe __maybe_unused =3D { .version =3D QMC_QE, .tstate =3D 0x30000000, .rstate =3D 0x30000000, --=20 2.46.0