summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/audit_dir_write.h
diff options
context:
space:
mode:
authorPalmer Dabbelt2017-12-01 20:32:00 +0100
committerPalmer Dabbelt2018-01-31 04:07:54 +0100
commit155d33af7eeef19909d77aa0996c1d2dd8f1fa76 (patch)
tree3411d7d08d51a3210f02358c7a48e0fe1953a057 /include/asm-generic/audit_dir_write.h
parentLinux 4.15 (diff)
downloadkernel-qcow2-linux-155d33af7eeef19909d77aa0996c1d2dd8f1fa76.tar.gz
kernel-qcow2-linux-155d33af7eeef19909d77aa0996c1d2dd8f1fa76.tar.xz
kernel-qcow2-linux-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/audit_dir_write.h')
-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