'Kernel Module not compiling on Arch Linux

I created a kernel module that compiles and loads properly on Ubuntu, but not on Arch Linux. Here is what it returns`

././include/linux/compiler_types.h:281:20: warning: ‘asm’ operand 2 probably does not match constraints

I tried to compile it with -O1, the above mentioned warnings and errors disappear, but i am getting another error, which says`

***.ko: No such file or directory



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source