config.h should be included only if HAVE_CONFIG_H defined when autoconf used.
Parameter for memory address should be 'unsigned'. This change can also suppress a warning of comparison between signed 'phys' and unsigned 'map->address' by compiler.
A compiler may guess that the variable 'owners' can be referred uninitialized because it is used only in conditional statements. This patch adds NULL initialization for the variable to supress such warning.
This patch adds type casting (void **) for 5th argument at uiomux_get_mmio() invocation.
The pointers into the memory allocation table for each block were being incorrectly initialized in the shared state. Also the length of the allocation table that was being zeroed on state initialization was incorrectly given in units of pid_t, rather than bytes).