diff options
author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2019-06-26 10:46:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-26 14:24:53 +0200 |
commit | fb59b7824da884e042f44dad9c713f221ded93c9 (patch) | |
tree | bedc959626163c42cd0f1191957368450c5d03a1 /drivers/s390/cio | |
parent | drivers: Add generic helper to match by of_node (diff) | |
download | linux-fb59b7824da884e042f44dad9c713f221ded93c9.tar.xz linux-fb59b7824da884e042f44dad9c713f221ded93c9.zip |
drivers: s390/cio: Fix compilation warning about const qualifiers
Update __ccwdev_check_busid() and __ccwgroupdev_check_busid() to use
"const" qualifiers to fix the compiler warning.
Reported-by: kbuild test robot <lkp@intel.com>
Cc: gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/s390/cio')
-rw-r--r-- | drivers/s390/cio/ccwgroup.c | 2 | ||||
-rw-r--r-- | drivers/s390/cio/device.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/s390/cio/ccwgroup.c b/drivers/s390/cio/ccwgroup.c index ea17615789c9..c522e9313c50 100644 --- a/drivers/s390/cio/ccwgroup.c +++ b/drivers/s390/cio/ccwgroup.c @@ -610,7 +610,7 @@ EXPORT_SYMBOL(ccwgroup_driver_unregister); static int __ccwgroupdev_check_busid(struct device *dev, const void *id) { - char *bus_id = id; + const char *bus_id = id; return (strcmp(bus_id, dev_name(dev)) == 0); } diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index f27536ba58eb..113248227137 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c @@ -1655,9 +1655,7 @@ EXPORT_SYMBOL_GPL(ccw_device_force_console); static int __ccwdev_check_busid(struct device *dev, const void *id) { - char *bus_id; - - bus_id = id; + const char *bus_id = id; return (strcmp(bus_id, dev_name(dev)) == 0); } |