summaryrefslogtreecommitdiff
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2019-10-04 00:44:40 +0300
committerDavid S. Miller <davem@davemloft.net>2019-10-04 14:30:23 -0700
commit7a512eb865aa5fcfb396c71047bc9c3b046836b3 (patch)
tree8c41c729af05973eb0de482bede35a82060ceea3 /net/core/sock.c
parentdb9b2e0af605e7c994784527abfd9276cabd718a (diff)
downloadlwn-7a512eb865aa5fcfb396c71047bc9c3b046836b3.tar.gz
lwn-7a512eb865aa5fcfb396c71047bc9c3b046836b3.zip
net: make sock_prot_memory_pressure() return "const char *"
This function returns string literals which are "const char *". Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
-rw-r--r--net/core/sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index e23ec80a67bf..fac2b4d80de5 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -3497,7 +3497,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";