MALI: fix MIN/MAX macro redefinition

Upstream commit [1] adds the MIN/MAX macros to the minmax.h header which
causes a redefinition error in mali_malisw.h, so only define the macros
locally if they aren't provided already.

Also fix the header inclusion order, so the kernel header's definitions
take precedence over the locally defined macros.

Link: https://git.kernel.org/torvalds/c/1a251f52cfdc [1]
Change-Id: I8ad51866a11d43421dd99a86bca8d7a9f7cb1287
Signed-off-by: Carlos Llamas <[email protected]>
1 file changed