These pointers are derived from other const pointers. Signed-off-by: Alejandro Colomar --- Hi, This was found when changing some APIs to preserve the const qualifier in the return type. Have a lovely night! Alex net/smc/smc_pnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/smc/smc_pnet.c b/net/smc/smc_pnet.c index 61ef1d697eee..a4a4292a48da 100644 --- a/net/smc/smc_pnet.c +++ b/net/smc/smc_pnet.c @@ -285,9 +285,9 @@ static bool smc_pnet_apply_smcd(struct smcd_dev *smcd_dev, char *pnet_name) */ static bool smc_pnetid_valid(const char *pnet_name, char *pnetid) { - char *bf = skip_spaces(pnet_name); + const char *bf = skip_spaces(pnet_name); size_t len = strlen(bf); - char *end = bf + len; + const char *end = bf + len; if (!len) return false; -- 2.55.0