]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - tools/lib/lockdep/lockdep.c
tools/lib/lockdep: Fix 'defined but not used' warning for init_utsname()
[mirror_ubuntu-bionic-kernel.git] / tools / lib / lockdep / lockdep.c
index 443acb11f907352887c90cd07389da4be836c418..209f967dedaa31e873da32424739e8833ba5939a 100644 (file)
@@ -12,4 +12,14 @@ u32 prandom_u32(void)
        abort();
 }
 
+static struct new_utsname *init_utsname(void)
+{
+       static struct new_utsname n = (struct new_utsname) {
+               .release = "liblockdep",
+               .version = LIBLOCKDEP_VERSION,
+       };
+
+       return &n;
+}
+
 #include "../../../kernel/locking/lockdep.c"