]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/taskstats.c
Merge branch 'parisc-3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/deller...
[karo-tx-linux.git] / kernel / taskstats.c
index 609e77f6868783b447c4aac7b10a5420fc0a67e5..13d2f7cd65dbfd851eaa61cf08645994c9fd0037 100644 (file)
@@ -673,7 +673,7 @@ err:
        nlmsg_free(rep_skb);
 }
 
-static struct genl_ops taskstats_ops[] = {
+static const struct genl_ops taskstats_ops[] = {
        {
                .cmd            = TASKSTATS_CMD_GET,
                .doit           = taskstats_user_cmd,
@@ -703,8 +703,7 @@ static int __init taskstats_init(void)
 {
        int rc;
 
-       rc = genl_register_family_with_ops(&family, taskstats_ops,
-                                          ARRAY_SIZE(taskstats_ops));
+       rc = genl_register_family_with_ops(&family, taskstats_ops);
        if (rc)
                return rc;