tools/tests: fix resource test build on FreeBSD
PATCH 1/1 tools/tests: fix resource test build on FreeBSD
error.h is not a standard header, and none of the functions declared there are actually used by the code. This fixes the build on FreeBSD that doesn't have error.h
---
Build tested on both Linux and FreeBSD. The risk would be breaking the build, but it's already broken on FreeBSD so there's not much to lose. Build breakages on Linux will be spotted fast by either osstest of the gitlab build.
--- tools/tests/resource/test-resource.c | 1 - 1 file changed, 1 deletion(-)
tools/tests/resource/test-resource.c +0 -1
@@ -1,6 +1,5 @@#include <err.h> #include <errno.h> -#include <error.h> #include <stdio.h> #include <string.h> #include <sys/mman.h>
Signature · 1 line
2.29.2
Quoted 5 lines · Roger Pau Monne
error.his not a standard header, and none of the functions declared there are actually used by the code. This fixes the build on FreeBSD that doesn't haveerror.hSigned-off-by Roger Pau Monné <[email protected]>
Urgh sorry. Acked-by: Andrew Cooper <[email protected]>
Roger Pau Monne writes ("[PATCH for-4.15] tools/tests: fix resource test build on FreeBSD"):
Quoted 10 lines
error.his not a standard header, and none of the functions declared there are actually used by the code. This fixes the build on FreeBSD that doesn't haveerror.hSigned-off-by Roger Pau Monné <[email protected]>---
Build tested on both Linux and FreeBSD. The risk would be breaking the build, but it's already broken on FreeBSD so there's not much to lose. Build breakages on Linux will be spotted fast by either osstest of the gitlab build.
Thanks. I think this was probably a typo.
Ian.