This function returns string literals which are "const char *".

Signed-off-by: Alexey Dobriyan <adobri...@gmail.com>
---

 net/core/sock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -3493,7 +3493,7 @@ static long sock_prot_memory_allocated(struct proto 
*proto)
        return proto->memory_allocated != NULL ? proto_memory_allocated(proto) 
: -1L;
 }
 
-static char *sock_prot_memory_pressure(struct proto *proto)
+static const char *sock_prot_memory_pressure(struct proto *proto)
 {
        return proto->memory_pressure != NULL ?
        proto_memory_pressure(proto) ? "yes" : "no" : "NI";

Reply via email to