linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] audit: Avoid build failures on systems without renameat
@ 2017-12-01 20:49 Palmer Dabbelt
  2017-12-02  0:16 ` Olof Johansson
  0 siblings, 1 reply; 2+ messages in thread
From: Palmer Dabbelt @ 2017-12-01 20:49 UTC (permalink / raw)
  To: Arnd Bergmann, linux-arch, linux-kernel; +Cc: Palmer Dabbelt, Olof Johansson

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>
CC: Olof Johansson <olof@lixom.net>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
---
 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
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] audit: Avoid build failures on systems without renameat
  2017-12-01 20:49 [PATCH] audit: Avoid build failures on systems without renameat Palmer Dabbelt
@ 2017-12-02  0:16 ` Olof Johansson
  0 siblings, 0 replies; 2+ messages in thread
From: Olof Johansson @ 2017-12-02  0:16 UTC (permalink / raw)
  To: Palmer Dabbelt; +Cc: Arnd Bergmann, linux-arch, linux-kernel

On Fri, Dec 1, 2017 at 12:49 PM, Palmer Dabbelt <palmer@sifive.com> wrote:
> 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>
> CC: Olof Johansson <olof@lixom.net>

Acked-by: Olof Johansson <olof@lixom.net>

> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>


-Olof

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-02  0:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-01 20:49 [PATCH] audit: Avoid build failures on systems without renameat Palmer Dabbelt
2017-12-02  0:16 ` Olof Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).