]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
fs: dlm: constify addr_compare
authorAlexander Aring <aahringo@redhat.com>
Tue, 3 Nov 2020 01:04:27 +0000 (20:04 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 10 Nov 2020 18:14:20 +0000 (12:14 -0600)
This patch just constify some function parameter which should be have a
read access only.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c

index f7e86791a0825b085806463cebb129cddca37fcd..7f85594b663a899fad2dcad14bcc2ca10b2c979b 100644 (file)
@@ -274,7 +274,8 @@ static struct dlm_node_addr *find_node_addr(int nodeid)
        return NULL;
 }
 
-static int addr_compare(struct sockaddr_storage *x, struct sockaddr_storage *y)
+static int addr_compare(const struct sockaddr_storage *x,
+                       const struct sockaddr_storage *y)
 {
        switch (x->ss_family) {
        case AF_INET: {