On Mon, Oct 5, 2020 at 3:11 PM Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: > It appears that UML (arch/um) has no compat.h header defined and hence > can't compile a recently provided piece of code in GPIO library. > > Disable compat ->read() code in UML case to avoid compilation errors. > > While at it, use pattern which is already being used in the kernel elsewhere. > > Fixes: 5ad284ab3a01 ("gpiolib: Fix line event handling in syscall compatible mode") > Reported-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Patch applied for fixes. Yours, Linus Walleij