aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@sifive.com>2017-12-01 11:32:00 -0800
committerPalmer Dabbelt <palmer@dabbelt.com>2018-01-30 19:07:54 -0800
commit155d33af7eeef19909d77aa0996c1d2dd8f1fa76 (patch)
tree3411d7d08d51a3210f02358c7a48e0fe1953a057 /include/asm-generic
parentLinux 4.15 (diff)
downloadlinux-dev-155d33af7eeef19909d77aa0996c1d2dd8f1fa76.tar.xz
linux-dev-155d33af7eeef19909d77aa0996c1d2dd8f1fa76.zip
audit: Avoid build failures on systems without renameat
renameat has been deprecated in favor of renameat2 for new ports. This allows the audit tests to build on RISC-V. Reviewed-by: Christoph Hellwig <hch@lst.de> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/audit_dir_write.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-generic/audit_dir_write.h b/include/asm-generic/audit_dir_write.h
index da09fb986459..dd5a9dd7a102 100644
--- a/include/asm-generic/audit_dir_write.h
+++ b/include/asm-generic/audit_dir_write.h
@@ -27,7 +27,9 @@ __NR_mknod,
__NR_mkdirat,
__NR_mknodat,
__NR_unlinkat,
+#ifdef __NR_renameat
__NR_renameat,
+#endif
__NR_linkat,
__NR_symlinkat,
#endif