Modules with > 1 function didn't return the function correctly. Also fix coding convention issues [ROCm/hip commit: 439e37ab76]
439e37ab76