From nobody Sat Feb 7 17:02:20 2026 Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 C429812E4A for ; Sat, 26 Oct 2024 15:40:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729957250; cv=none; b=DrxI7MB1CNWMwwZP2ElxH865FkGpT+Bi/VeyQAm0EP0Xy8/blDgY4FRrEijJyCHcutGzgTVOmT4Yglu/HPONqXLrZqu4YWdCbeT+WB6n9EfxbmXi4puZBID+5WXheJvzj6XJC4/uyZbjcs80hYAcO24oGDZZGHiRW1cybx+nck8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729957250; c=relaxed/simple; bh=GNe4ye1OQX4/Qxf85U1tzqSg08WRHucFzaUMbYTBExo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jHJsvctdHKn04qCWpIZBLM89iqfzolwNzhmkQfmv3xHjJ1gmuwiFzWfMKuqT5ka2uZEWJLcH4C24q/m4TLKWQSr+ks8mGYp9qXZZFfcx+MEmp8TW6a85/w0EXsKUXYh0e6zenq3rBwbPsij7a8XpUxnmv37VBIW5pX3a3IM9CoQ= 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=cHWbps+i; arc=none smtp.client-ip=91.218.175.177 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="cHWbps+i" 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=1729957245; 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=FUIkWdRccPpqO/GUqcg5hwSzpVQR8KrcEnsH22oLSTc=; b=cHWbps+ieajT1HObjNWhT2exO6iDprPy3L6G4qC5qUehnyqrPE6smFGUuY180HGnyHS0YW BS2CIPTiseFC6squaAIYHTqJRCQUB2KKWbHs/XCsutbVvV9oWBB/lHp5SYvA+FLb/1SKkC OBUv0vgHC5lYKIA/o8xuKk2l6LI2FwA= From: Thorsten Blum To: Thomas Gleixner Cc: Thorsten Blum , linux-kernel@vger.kernel.org Subject: [PATCH] genirq/irqdesc: Use str_enabled_disabled() helper in wakeup_show() Date: Sat, 26 Oct 2024 17:40:29 +0200 Message-ID: <20241026154029.158977-2-thorsten.blum@linux.dev> 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-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Remove hard-coded strings by using the str_enabled_disabled() helper function. Signed-off-by: Thorsten Blum --- kernel/irq/irqdesc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 1dee88ba0ae4..a135b2ce886f 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -15,6 +15,7 @@ #include #include #include +#include =20 #include "internals.h" =20 @@ -299,7 +300,7 @@ static ssize_t wakeup_show(struct kobject *kobj, =20 raw_spin_lock_irq(&desc->lock); ret =3D sprintf(buf, "%s\n", - irqd_is_wakeup_set(&desc->irq_data) ? "enabled" : "disabled"); + str_enabled_disabled(irqd_is_wakeup_set(&desc->irq_data))); raw_spin_unlock_irq(&desc->lock); =20 return ret; --=20 2.47.0