[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1561538813-19807-1-git-send-email-suzuki.poulose@arm.com>
Date: Wed, 26 Jun 2019 09:46:53 +0100
From: Suzuki K Poulose <suzuki.poulose@....com>
To: gregkh@...uxfoundation.org
Cc: suzuki.poulose@....com, linux-kernel@...r.kernel.org,
devel@...verdev.osuosl.org
Subject: [PATCH] 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@...el.com>
Cc: gregkh@...uxfoundation.org
Cc: devel@...verdev.osuosl.org
Signed-off-by: Suzuki K Poulose <suzuki.poulose@....com>
---
drivers/s390/cio/ccwgroup.c | 2 +-
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 ea176157..c522e93 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 f27536b..1132482 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);
}
--
2.7.4
Powered by blists - more mailing lists