pseries: Remove unneeded include statement (fixes MinGW builds)
PATCH 1/1 pseries: Remove unneeded include statement (fixes MinGW builds)
sys/mman.h is not needed (tested on Linux) and unavailable for MinGW, so remove it.
Signed-off-by Stefan Weil <[email protected]>
--- hw/spapr_nvram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/spapr_nvram.c +1 -1
@@ -21,7 +21,7 @@* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#include <sys/mman.h> +#include <libfdt.h> #include "sysemu/device_tree.h"
Signature · 1 line
1.7.10.4
Stefan Hajnoczi
AppliedQuoted 7 lines · Stefan Weil
sys/mman.his not needed (tested on Linux) and unavailable for MinGW, so remove it.Signed-off-by Stefan Weil <[email protected]>--- hw/spapr_nvram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
I audited the code and cannot see anything that would require <sys/mman.h>.
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan
Quoted 11 lines · Stefan Hajnoczi
Quoted 7 lines · Stefan Weil
sys/mman.his not needed (tested on Linux) and unavailable for MinGW, so remove it.Signed-off-by Stefan Weil <[email protected]>--- hw/spapr_nvram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)I audited the code and cannot see anything that would require <
sys/mman.h>.
Oh, yes, that would have been from an early draft that directly mmap()ed a backing file rather than using the block layer. It shouldn't be needed any more.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson