From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (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 33A003A1A35 for ; Sat, 6 Jun 2026 13:18:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780751888; cv=none; b=KZI64oShwGjQg42kKXL9e16PBN6wgBMuoW0pnE9PopXhCleMmGC4NSxRP60v5EcJQaPwacX0nyQfHx3WnlD3CyLG1bCTZmbGY/qH0UR5d6BFsye8ckwjTlEmb4G2IZjove0PrUnpX6VhzvPSFBosBLjxbHsHp6XotJNwbqvaNaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780751888; c=relaxed/simple; bh=bxiJ7ydWNjviwTvv7BK6XfpSQEPe+3QOJTVHTSTih8M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kBxDgVvPwNg9a75v2TAH0rnkCrgXxLiPRLlVJYroACj920Lky1IN07hnlgI3FG2VgSSr7oBUIb32W3P8v/eKQclk3OQrfPI/lWs+rxB4YhKuVCbYJH/+Q9FsZXE99XxyveZsk54jRGQ5o0zojPSbtDvdEOmwqEjO3jlTvT5Htr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=J38yp16s; arc=none smtp.client-ip=91.218.175.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="J38yp16s" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1780751884; 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=dAN9QoDN/aS6i/YFO52v0YwG/FbuUx8/Jx3OqvY1QBA=; b=J38yp16sI2AI7S3UGd8vwk74VuueaHEAuaoUv+X/nAUImps12By70yQPnNLvvEaafzNQuq zr2bRjXpBvT9DNt2QQe5W92Qu/zfAnGv5Qq/QRElkuzq3qH8pNkiYZx5CopEru2WxEAslT eAUyp7jDap1NCsb3GMzPM+hNVyWjeQw= From: Thorsten Blum To: Olivia Mackall , Herbert Xu , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Sakari Ailus , AngeloGioacchino Del Regno Cc: Thorsten Blum , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] hwrng: atmel - drop __maybe_unused from atmel_trng_pm_ops Date: Sat, 6 Jun 2026 15:17:54 +0200 Message-ID: <20260606131755.10132-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1028; i=thorsten.blum@linux.dev; h=from:subject; bh=bxiJ7ydWNjviwTvv7BK6XfpSQEPe+3QOJTVHTSTih8M=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFkqcsxXFHoZ5Pf+ac1mOCXMMW124cvbObcW/35emXArn NWFtfdyRykLgxgXg6yYIsuDWT9m+JbWVG4yidgJM4eVCWQIAxenAEzE0JKRYeabSfM+7VC91v/+ hoCx5mXVuXdm/ln2yknqtRSPpUoinwojw5bgNTF+SmyXE6T//i9v1jKZvbj5Ru2Cycem/YrJKTb 05wQA X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Since atmel_trng_driver keeps atmel_trng_pm_ops referenced and pm_ptr() uses IS_ENABLED(), which allows the compiler to optimize away unused variables, drop the redundant __maybe_unused annotation. Signed-off-by: Thorsten Blum --- drivers/char/hw_random/atmel-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/atmel-rng.c index 6ed24be3481d..10082add0886 100644 --- a/drivers/char/hw_random/atmel-rng.c +++ b/drivers/char/hw_random/atmel-rng.c @@ -186,7 +186,7 @@ static int __maybe_unused atmel_trng_runtime_resume(struct device *dev) return atmel_trng_init(trng); } -static const struct dev_pm_ops __maybe_unused atmel_trng_pm_ops = { +static const struct dev_pm_ops atmel_trng_pm_ops = { SET_RUNTIME_PM_OPS(atmel_trng_runtime_suspend, atmel_trng_runtime_resume, NULL) SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, base-commit: 79bbe453e5bfa6e1c6aa2e8329bfc8f152b81c9b