]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - samples/bpf/spintest_user.c
Merge tag 'for_v5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
[mirror_ubuntu-hirsute-kernel.git] / samples / bpf / spintest_user.c
index f090d0dc60d62d7bf3f0c46a171c62975531a974..0d7e1e5a8658180c149a3f66b0f184592c7d7fda 100644 (file)
@@ -10,7 +10,6 @@
 
 int main(int ac, char **argv)
 {
-       struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
        char filename[256], symbol[256];
        struct bpf_object *obj = NULL;
        struct bpf_link *links[20];
@@ -20,11 +19,6 @@ int main(int ac, char **argv)
        const char *section;
        struct ksym *sym;
 
-       if (setrlimit(RLIMIT_MEMLOCK, &r)) {
-               perror("setrlimit(RLIMIT_MEMLOCK)");
-               return 1;
-       }
-
        if (load_kallsyms()) {
                printf("failed to process /proc/kallsyms\n");
                return 2;