From nobody Sun Jun 14 17:36:47 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 EC0FB3168EF for ; Fri, 3 Apr 2026 21:12:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775250760; cv=none; b=EUiD5Qpc6Qfz65+WF6bDBQuYKJgbvFxrud+CNXpf1mtAs4yZY2P7jo4F+qmflQo89UM5FnhUbNPwXnjLZsQxqdKrSJBBMRFPDwSUtRfkUverlKAsSTQA815xyzQ1o3cAWYTshTOEI4fSCBND2jal+0pEvxA25Yo5K4g6R5PYdnE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775250760; c=relaxed/simple; bh=dVC8vJ+q/39+MRoVo8LOtl94lQE1frYnqkvey7rR9oA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=q9hww0BQsnN0d5bz+09S/lCrhNXJO1xuVzLVz/+lq7Ywq9gR7V5hdqQJRWsyW7uPCNkhJC5S2nqyuEkxDZ5gnuXwcLwUdr10HmkUiAPYANbZprKaZNa4fv3j1CZau9lV9WEu+PIc4XDjfDPJG1HTMi/27V/b1V3j0x4DurElswY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=gsBB2JH8; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=BLZuht8K; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gsBB2JH8"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="BLZuht8K" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775250758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=S6nLeyXBeOjWxzKkI/2B7+CvDIUh+KieRoy4bhOoBew=; b=gsBB2JH8OSV+FAOC6FlFVuUU1vtCJjygsFRwqmgtgEyTtQwa3vCy+YgVMWJ6gCVhxkePAY g/As/j7BXwJwvVsK7JUjHA/UANTI57AibaEv3dT77xqNYfNcXh1isELBoSJ22nHoXCs3y/ 4CDeglHHeaBTBZ9GdCuyg1Bz+PspAmw= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-82-yVi9v2zEOVSPgpxH_tEEjA-1; Fri, 03 Apr 2026 17:12:36 -0400 X-MC-Unique: yVi9v2zEOVSPgpxH_tEEjA-1 X-Mimecast-MFC-AGG-ID: yVi9v2zEOVSPgpxH_tEEjA_1775250756 Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-8a1f96bf221so87179046d6.3 for ; Fri, 03 Apr 2026 14:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1775250756; x=1775855556; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=S6nLeyXBeOjWxzKkI/2B7+CvDIUh+KieRoy4bhOoBew=; b=BLZuht8KCw4S3vyW4+u3Ewqj9ibW3hylcAsuirnvfYoEBmnROjExXiB9QmANzR60wW c7Cp7jBBHcDvFj6/X6c0p0BWiWgQxNsUuMiMBLtEEpEzd6SeBA58j8bI9TlwRBoUmJMp 7Nm6zFTjfc6tbOa09xZSm8/2TSw6QXGGo/X228EbP7+uRhO3zJMMVjR20XQkBfXIVfJi TuA7sPlEBMRyWy30hXxOF0OQLAmv0cyjQ3+yRnd2zqjJotH9zduqFeMbh2qSNQOzm1k1 9hnWIuayLOCKKVjA7lyyxtG/eyUxDlYQ3pYzH1b8ZxNVBxnPBdsPPDdJoIZ9Nkc/erPV VZ/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775250756; x=1775855556; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=S6nLeyXBeOjWxzKkI/2B7+CvDIUh+KieRoy4bhOoBew=; b=EuKbGpmHE/CCIGBZxXsuyaK0BYgSsqxkOZ1cmnYLo072jVvnvTn9W5XaKechKYMhTt DEI9i8ZLItZL+v+BdqiIOS2OZv4QGEZp3533pfl1tl+5Myhn/WPxlnaAzUA4JgIpzsfc 7iK30zys5GNUPQxwix5DURwnx6ptQtyw7F7ieDzMv2MfRxeR9xuOxM+z7YuBEfL0x7Sl X342mdpYeiosbJmmkyJS3/ZMXVk/Gnvqwq8xd1T2x0eqWMvatpoGeXGRam4ZzcMFr6mh 4Jb2PRrK1vkwPkLBH0AfaRvWbnWIFLibY6Ae3di3mmrhVej8i4mG/Mnwzx4nhn263pcB vNzg== X-Gm-Message-State: AOJu0YxOil/I0otdDMPxI8wsySwXApCb8Mj22CMVbqXXiawbWWHo9/HQ EzIDlPdmYofQhvkGJ4uvaoUSV9EzoreTF/UIajDrNGko3KWBny9I/0yrD9kKRgq74plappYn6CJ dFjWf9ulRugjb5Lr9BTQBnwPlBf6vOdn2p+XSEpABsrhnXMrnlQBNqImT1snGSa2gog== X-Gm-Gg: AeBDiesmd1AT9LjO+f8RCoZzxQso1/T4xiqY6MOHd0SDEXx08Nfgvyz2ntPsI+JUM8Y 9A1TSmcDVNLiF8wxTJjCqKZMVLmV5oL6nIFaSlbn3/+7979h1VlNUjbrlkjZsNHtRt/+qSC/SSP Mulx67/s68qjUZZ9KlXP6aTNlKuI7aak7qbPlIgmlaxHHaGsOEQ48PWAmqoGmv8lfhqVIquu6fF 6owZvq1FgV3ZJajL/G8Wnm/BogdlpHefBbn5TK+9fJpP4qFn7oXgKSiJCyGbuputXM4sCT6k3zr rZPArDH6VFy/94ecqbbbYBltaSP9KNXqSRbxwbJ316UUe0PgYDKOfUp7Y3fCBclBi2wOCgLbbxG xoH8p4dvh8NbELTCU02JwIXdfqokvkKwoOf9varktXzEF/4QfId3zjOVTTNK8 X-Received: by 2002:a05:6214:2b0b:b0:89c:e7d5:4b20 with SMTP id 6a1803df08f44-8a7025b5618mr74779166d6.15.1775250755663; Fri, 03 Apr 2026 14:12:35 -0700 (PDT) X-Received: by 2002:a05:6214:2b0b:b0:89c:e7d5:4b20 with SMTP id 6a1803df08f44-8a7025b5618mr74778876d6.15.1775250755261; Fri, 03 Apr 2026 14:12:35 -0700 (PDT) Received: from [192.168.1.3] (c-73-183-52-120.hsd1.pa.comcast.net. [73.183.52.120]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8a5974dda27sm55816176d6.42.2026.04.03.14.12.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 14:12:34 -0700 (PDT) From: Brian Masney Date: Fri, 03 Apr 2026 17:12:17 -0400 Subject: [PATCH] irqchip/irq-pic32-evic: add __maybe_unused for board_bind_eic_interrupt in COMPILE_TEST Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260403-irq-pic32-evic-unused-v1-1-447cdc0675ec@redhat.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/x2MQQqAIBAAvyJ7bsEspPpKdJBtrb1YKUYg/T3pO DAzBRJH4QSTKhD5liRHqNA2Cmh3YWOUtTIYbazudYcSLzyFOoPVJswhJ17REbvRtm4gb6G2Z2Q vz/+dl/f9AHAIjsFnAAAA X-Change-ID: 20260403-irq-pic32-evic-unused-acea961a8cf6 To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, kernel test robot , Brian Masney X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1939; i=bmasney@redhat.com; s=20250903; h=from:subject:message-id; bh=dVC8vJ+q/39+MRoVo8LOtl94lQE1frYnqkvey7rR9oA=; b=owGbwMvMwCW2/dJd9di6A+2Mp9WSGDIv6Nobtiz8+vTOwwsf34e5svu8OjnT8hnzu0kp+UEbd yp13nXy7ihlYRDjYpAVU2RZkmtUEJG6yvbeHU0WmDmsTCBDGLg4BWAikdcZGd78yH7lvchVxrPn 8+2oXXrn7n6Sz9G+kZ18Iql5Tdt2lieMDB383z/6PZNmfRke/fJM9VGNXeeyvnaLiFSt/ZvGlXH hJQsA X-Developer-Key: i=bmasney@redhat.com; a=openpgp; fpr=A46D32705865AA3DDEDC2904B7D2DD275D7EC087 There are a few ifdefs in this driver so that it can be compiled on all architectures when COMPILE_TEST is set. board_bind_eic_interrupt is defined in arch/mips/ for normal usage, however when this driver is compiled with COMPILE_TEST on other architectures, it is defined as a static variable inside this driver. This causes the following warning: drivers/irqchip/irq-pic32-evic.c:54:15: warning: variable 'board_bind_eic_interrupt' set but not used [-Wunused-but-set-global] 54 | static void (*board_bind_eic_interrupt)(int irq, int regset); | ^ Let's just annotate the static variable with __maybe_unused to avoid having to put even more ifdefs in this driver. Fixes: 282f8b547d51d ("irqchip/irq-pic32-evic: Define board_bind_eic_interr= upt for !MIPS builds") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202603300715.4HuMMAFb-lkp@int= el.com/ Signed-off-by: Brian Masney --- drivers/irqchip/irq-pic32-evic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-pic32-evic.c b/drivers/irqchip/irq-pic32-e= vic.c index ecea7cb3ba849a3cbc96213d96f5090feafde5eb..3c48288c9e6c4e8001d28cb68c2= edecfe36aa799 100644 --- a/drivers/irqchip/irq-pic32-evic.c +++ b/drivers/irqchip/irq-pic32-evic.c @@ -51,7 +51,7 @@ asmlinkage void __weak plat_irq_dispatch(void) do_domain_IRQ(evic_irq_domain, hwirq); } #else -static void (*board_bind_eic_interrupt)(int irq, int regset); +static __maybe_unused void (*board_bind_eic_interrupt)(int irq, int regset= ); #endif =20 static struct evic_chip_data *irqd_to_priv(struct irq_data *data) --- base-commit: cc13002a9f984d37906e9476f3e532a8cdd126f5 change-id: 20260403-irq-pic32-evic-unused-acea961a8cf6 Best regards, --=20 Brian Masney