audit: Avoid build failures on systems without renameat
"Linux Kernel Mailing List" <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.head |
|---|---|
| Message-ID | <[email protected]> |
Web: https://git.kernel.org/torvalds/c/155d33af7eeef19909d77aa0996c1d2dd8f1fa76 Commit: 155d33af7eeef19909d77aa0996c1d2dd8f1fa76 Parent: d8a5b80568a9cb66810e75b182018e9edb68e8ff Refname: refs/heads/master Author: Palmer Dabbelt <[email protected]> AuthorDate: Fri Dec 1 11:32:00 2017 -0800 Committer: Palmer Dabbelt <[email protected]> CommitDate: Tue Jan 30 19:07:54 2018 -0800 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 <[email protected]> Acked-by: Olof Johansson <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]> --- include/asm-generic/audit_dir_write.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html