From: Ian Abbott Date: Wed, 8 Mar 2017 18:02:05 +0000 (+0000) Subject: staging: comedi: ni_atmio: make device_ids const X-Git-Tag: v4.14-rc1~980^2~712 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08680307eb876e389e068ae75f6f6a84248e2263;p=platform%2Fkernel%2Flinux-rpi.git staging: comedi: ni_atmio: make device_ids const The `device_ids[]` passed to `MODULE_DEVICE_TABLE()` should be `const`. When the "ni_atmio" driver is built-in, gcc warns about `device_ids` being defined but ununsed. Make it `const`. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_atmio.c b/drivers/staging/comedi/drivers/ni_atmio.c index ffcf7af..2d62a8c 100644 --- a/drivers/staging/comedi/drivers/ni_atmio.c +++ b/drivers/staging/comedi/drivers/ni_atmio.c @@ -216,7 +216,7 @@ static const int ni_irqpin[] = { #include "ni_mio_common.c" -static struct pnp_device_id device_ids[] = { +static const struct pnp_device_id device_ids[] = { {.id = "NIC1900", .driver_data = 0}, {.id = "NIC2400", .driver_data = 0}, {.id = "NIC2500", .driver_data = 0},