]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - scripts/mod/file2alias.c
Fix a build warning in scripts/mod/file2alias.c
[mirror_ubuntu-bionic-kernel.git] / scripts / mod / file2alias.c
index 45f9a3377dcd8d60f1df08542ca804537e443225..ab554564569aab61c9da76ae6ab92b08553cd04c 100644 (file)
@@ -79,10 +79,12 @@ struct devtable **__start___devtable, **__stop___devtable;
 extern struct devtable *__start___devtable[], *__stop___devtable[];
 #endif /* __MACH__ */
 
-#if __GNUC__ == 3 && __GNUC_MINOR__ < 3
-# define __used                        __attribute__((__unused__))
-#else
-# define __used                        __attribute__((__used__))
+#if !defined(__used)
+# if __GNUC__ == 3 && __GNUC_MINOR__ < 3
+#  define __used                       __attribute__((__unused__))
+# else
+#  define __used                       __attribute__((__used__))
+# endif
 #endif
 
 /* Define a variable f that holds the value of field f of struct devid