[PATCH] include linux/stddef.h in swab.h uapi header

2018-12-13 Thread Khem Raj
sys/cdefs.h and features.h gets pulled in a lot of headers. Therefore it may work in cases where features.h is includes but not otherwise. Adding linux/stddef.h here ensures that __always_inline is always defined independent of which C library is used in userspace Signed-off-by: Khem Raj Cc: Phili

[PATCH] include linux/stddef.h in swab.h uapi header

2018-09-12 Thread Khem Raj
sys/cdefs.h and features.h gets pulled in a lot of headers. Therefore it may work in cases where features.h is includes but not otherwise. Adding linux/stddef.h here ensures that __always_inline is always defined independent of which C library is used in userspace Signed-off-by: Khem Raj Cc: Phili

[PATCH] f2fs-tools:: Use srcdir prefix to denote include path

2018-08-11 Thread Khem Raj
This helps builds when builddir != srcdir Signed-off-by: Khem Raj --- tools/sg_write_buffer/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sg_write_buffer/Makefile.am b/tools/sg_write_buffer/Makefile.am index 922c328..19c438d 100644 --- a/tools

[PATCH 4.1] give up on gcc ilog2() constant optimizations

2017-05-09 Thread Khem Raj
Abbott Cc: John Stultz , Cc: Thomas Gleixner Cc: Ard Biesheuvel Signed-off-by: Linus Torvalds Cc: Jiri Slaby Signed-off-by: Greg Kroah-Hartman Signed-off-by: Khem Raj Cc: # v4.1+ --- include/linux/log2.h | 13 ++--- tools/include/linux/log2.h | 13 ++--- 2 files changed,

Re: compile failure linux 3.10 with gcc 4.9.3 for mips

2015-07-14 Thread Khem Raj
Reinoud Koornstra gmail.com> writes: > > Hi Everyone, > > Did anybody enounter the following compiler problem with linux 3.10.81? > gcc version is 4.9.3 for mips. > > arch/mips/kernel/r4k_fpu.S: Assembler messages: > arch/mips/kernel/r4k_fpu.S:59: Error: opcode not supported on this > processo