With latest glibc (Fedora Rawhide):
../drivers/bus/uacce/uacce.c: In function 'uacce_match':
../drivers/bus/uacce/uacce.c:346:21: warning: assignment discards
        'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  346 |                 map = strstr(dev->algs, id_table->dev_alg);
      |                     ^

Fixes: 62b906cf06ba ("bus/uacce: introduce UACCE bus")
Cc: [email protected]

Signed-off-by: David Marchand <[email protected]>
---
 drivers/bus/uacce/uacce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/uacce/uacce.c b/drivers/bus/uacce/uacce.c
index 87e68b3dbf..79f990c54c 100644
--- a/drivers/bus/uacce/uacce.c
+++ b/drivers/bus/uacce/uacce.c
@@ -328,8 +328,8 @@ static bool
 uacce_match(const struct rte_uacce_driver *dr, const struct rte_uacce_device 
*dev)
 {
        const struct rte_uacce_id *id_table;
+       const char *map;
        uint32_t len;
-       char *map;
 
        for (id_table = dr->id_table; id_table->dev_api != NULL; id_table++) {
                if (strcmp(id_table->dev_api, dev->api) != 0)
-- 
2.51.1

Reply via email to