From nobody Mon Feb 9 15:59:12 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.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 1AB6421ABC3 for ; Tue, 25 Feb 2025 14:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740495196; cv=none; b=aGzaJrY2/9XdFWJahadxaGI4NhPjZjs9aJ+EJpTZXFNRXyTxT5myf64VvvE9shrv9MiwCygsZeC/81Diw6ag0QUOcd5cGdxhEH9kyyrHu3Ca+Gz8d2Ffx88Dc/uzscjzdbITM8jyrWpCtb3earFtUCWnnI5PYa7j4i2beHWXMRM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740495196; c=relaxed/simple; bh=AApGCBsvr9tpfVBZkpdLK46yPV5KUVWdAmG1lSIJSNs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=A+BGtdkPDdMW/i6sWMSVPMDZ+hTyedpsUR+QCMP2Vb8VZQQGGVE1Vz7BhrdThHBzZw+cXbeII4suGPM3T5rZWjoyIStlIF5cEhnlejK/op/L+HwMhIWKD1ZYgDYR9dJhTctWfpe2/QO5CvA4pw3UcW2qA5C74j+ed/5BKJeu2ys= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rFUNQiAp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rFUNQiAp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7358AC4CEDD; Tue, 25 Feb 2025 14:53:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1740495194; bh=AApGCBsvr9tpfVBZkpdLK46yPV5KUVWdAmG1lSIJSNs=; h=From:To:Cc:Subject:Date:From; b=rFUNQiApVyb0E+zH4PnNkt+cpVDTa6I4tex4CsO7T68xs2rO/C7BGWR0O5iuWBqOI 7g5Ke68LpR9G3rsTNWlEwq09JRTbt8Dh4o8+dqBruPz9sQpJyVSZTf0MXItaMaoHYb QkoGR/wkSw2HKm3GD+73iy3DN2rkpFUlzkKOIK+N7nAov9Ybad/ozPJ6Z89kyh6kab LPpfAl6BGP0b5zR6oOdIoAUEIU5LjSIE3dABqZ1AIS4e+ZU2L5e2tb1oPvEbnlIBIS BZPtSlkGUsyG9/LxVIuC80jISiTQTL5HJ8wWGPcFwwuKUcRgUZrmOlq7bB8RQ98zVA 4VJSzy+8iJWUQ== From: Arnd Bergmann To: Ian Abbott , H Hartley Sweeten Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH] [RESEND] comedi: ni_atmio: avoid warning for unused device_ids[] table Date: Tue, 25 Feb 2025 15:53:07 +0100 Message-Id: <20250225145310.1110575-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 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 Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann When the driver is built-in, it produces a W=3D1 warning: drivers/comedi/drivers/ni_atmio.c:209:35: error: 'device_ids' defined but n= ot used [-Werror=3Dunused-const-variable=3D] 209 | static const struct pnp_device_id device_ids[] =3D { The actual probe() function has a different way of identifying the hardware, so just mark this one as __maybe_unused so it can be dropped when built-in. Signed-off-by: Arnd Bergmann Reviewed-by: Ian Abbott --- I sent this a year ago but there were no comments, resending now without changes. --- drivers/comedi/drivers/ni_atmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/comedi/drivers/ni_atmio.c b/drivers/comedi/drivers/ni_= atmio.c index 330ae1c58800..b4e759e5703f 100644 --- a/drivers/comedi/drivers/ni_atmio.c +++ b/drivers/comedi/drivers/ni_atmio.c @@ -215,7 +215,7 @@ static const int ni_irqpin[] =3D { =20 #include "ni_mio_common.c" =20 -static const struct pnp_device_id device_ids[] =3D { +static const struct pnp_device_id __maybe_unused device_ids[] =3D { {.id =3D "NIC1900", .driver_data =3D 0}, {.id =3D "NIC2400", .driver_data =3D 0}, {.id =3D "NIC2500", .driver_data =3D 0}, --=20 2.39.5