[PATCH] Make alignment cflags configurable.

2015-08-12 Thread dl9pf
From: Jan-Simon Möller This patch adds switches for -falign-jumps=1 and -falign-loops=1 Default is off by intention to allow seamless operation. Signed-off-by: Jan-Simon Möller CC: t...@linutronix.de CC: mi...@redhat.com CC: h...@zytor.com CC: x...@kernel.org CC: linux-kernel@vger.kernel.org C

[PATCH] [for-4.2] Make alignment cflags configurable.

2015-08-12 Thread dl9pf
Please review and consider for inclusion in 4.2 ! Best, Jan-Simon CC: t...@linutronix.de CC: mi...@redhat.com CC: h...@zytor.com CC: x...@kernel.org CC: linux-kernel@vger.kernel.org CC: llvmli...@lists.linuxfoundation.org CC: dw...@infradead.org CC: beh...@converseincode.com -- To unsubscribe fr

[PATCH] x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI

2014-02-12 Thread dl9pf
From: Behan Webster The only real change is passing in event_mask to the formerly nested functions. Otherwise it's just moving around function and macro code. This is the only place in the Linux kernel where nested functions are still in use. Nested functions aren't part of the C standards, and

[PATCH 1/2] Extend definitions of _ASM_* with a raw format.

2013-08-29 Thread dl9pf
From: Jan-Simon Möller The __ASM_* macros (e.g. __ASM_DX) are used to return the proper register name (e.g. edx for 32bit / rdx for 64bit). We want to use this also in arch/x86/include/asm/uaccess.h / get_user() . For this to work, we need a raw form as both gcc and clang choke on the whitespace

Re: [llvmlinux] [PATCH] [RFC] [X86] Fix a compilation issue with clang.

2013-08-29 Thread dl9pf
These to patches fix a compilation issues with clang. [PATCH 1/2] Extend definitions of __ASM_* with a raw format. Extends the helper macros __ASM_* (e.g. __ASM_DX) with a format that does not add whitespace. Both gcc and clang choke in that case. [PATCH 2/2] [X86] Fix a compilation issue wit

[PATCH 2/2] [X86] Fix a compilation issue with clang.

2013-08-29 Thread dl9pf
From: Jan-Simon Möller Clang does not support the "shortcut" we're taking here for gcc (see below). The patch uses the macro _ASM_DX to do the job. >From arch/x86/include/asm/uaccess.h: /* * Careful: we have to cast the result to the type of the pointer * for sign reasons. * * The use of %ed

[PATCH] Fix bitoperation for compilation with clang

2013-08-29 Thread dl9pf
From: Jan-Simon Möller v2: Fix bug in statement as pointed out by Herbert Xu. Kudos to pipacs. Author: PaX Team ML-Post: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/142707.html URL: http://llvm.linuxfoundation.org Merge: Jan-Simon Möller Description: Fix for

[PATCH] [RFC] [X86] Fix a compilation issue with clang.

2013-08-29 Thread dl9pf
From: Jan-Simon Möller Clang does not support the "shortcut" we're taking here for gcc (see below). The patch extends and uses the macro _ASM_DX to do the job. >From arch/x86/include/asm/uaccess.h: /* * Careful: we have to cast the result to the type of the pointer * for sign reasons. * * Th

[PATCH] [TRIVIAL] Remove braces in arch/x86/kernel/cpu/vmware.c to fix build for clang. No functional change otherwise.

2013-08-29 Thread dl9pf
From: Jan-Simon Möller Author: PaX Team ML-Post: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/142707.html URL: http://llvm.linuxfoundation.org Merge: Jan-Simon Möller Description: Clang chokes on the notation "inl (%dx)" but works for "inl %dx"; GNU as acce

[PATCH] [TRIVIAL] Remove braces to fix build for clang. No functional change otherwise.

2013-08-29 Thread dl9pf
From: Jan-Simon Möller Author: PaX Team ML-Post: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/142707.html URL: http://llvm.linuxfoundation.org Merge: Jan-Simon Möller Description: Clang chokes on the notation "inl (%dx)" but works for "inl %dx"; GNU as accep

[PATCH] [TRIVIAL] Remove braces in drivers/scsi/in2000.h to fix build for clang. No functional change otherwise.

2013-08-20 Thread dl9pf
From: Jan-Simon Möller Author: PaX Team ML-Post: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/142707.html URL: http://llvm.linuxfoundation.org Merge: Jan-Simon Möller Description: Clang chokes on the notation "insw (%%dx)" but works for "insw %%dx" (outsw li

[PATCH] [TRIVIAL] Remove braces in arch/x86/kernel/cpu/vmware.c to fix build for clang. No functional change otherwise.

2013-08-20 Thread dl9pf
From: Jan-Simon Möller Author: PaX Team ML-Post: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/142707.html URL: http://llvm.linuxfoundation.org Merge: Jan-Simon Möller Description: Clang chokes on the notation "inl (%dx)" but works for "inl %dx"; GNU as acce

[PATCH] [TRIVIAL] Remove braces to fix build for clang. No functional change otherwise.

2013-08-20 Thread dl9pf
From: Jan-Simon Möller Author: PaX Team ML-Post: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/142707.html URL: http://llvm.linuxfoundation.org Merge: Jan-Simon Möller Description: Clang chokes on the notation "inl (%dx)" but works for "inl %dx"; GNU as accep

[PATCH] [TRIVIAL] v2: Fix declaration of intel_gmbus_{is_forced_bit/is_port_falid} in i915 driver.

2013-05-06 Thread dl9pf
From: Jan-Simon Möller 20130509: v2: (re-)add inline upon request. Description: intel_gmbus_is_forced_bit is no extern as its body is right below. Likewise for intel_gmbus_is_port_valid. This fixes a compilation issue with clang. An initial version of this patch was developed by PaX Team . This

[PATCH] [TRIVIAL] Fix declaration of intel_gmbus_{is_forced_bit/is_port_falid} in i915 driver.

2013-05-03 Thread dl9pf
From: Jan-Simon Möller Description: intel_gmbus_is_forced_bit is no extern as its body is right below. Likewise for intel_gmbus_is_port_valid. This fixes a compilation issue with clang. An initial version of this patch was developed by PaX Team . This is respin of this patch. Signed-off-by: Jan

[PATCH] [TRIVIAL] FIX: unintended variable name reuse

2013-04-30 Thread dl9pf
From: Jan-Simon Möller The variable name events_group is already in used and led to a compilation error when using clang to build the Linux Kernel . The fix is just to rename the var. No functional change. Please apply. Fix suggested in discussion by PaX Team Signed-off-by: Jan-Simon Möller C

[PATCH] Fix section to __init. Align with usage in acpixf.h . Fixes warning during compilation with clang.

2013-04-30 Thread dl9pf
From: Jan-Simon Möller Signed-off-by: Jan-Simon Möller --- include/acpi/acpiosxf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h index 5b3d2bd..64b8c76 100644 --- a/include/acpi/acpiosxf.h +++ b/include/acpi/acpiosxf.h @@ -

[PATCH] Trivial: Fix typo in include/linux/clk.h .

2012-07-09 Thread dl9pf
From: Jan-Simon Möller Signed-off-by: Jan-Simon Möller Cc: Russell King Cc: linux-kernel@vger.kernel.org --- include/linux/clk.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index f7bd858..116172f 100644 --- a/include/lin

[PATCH] Trivial: Fix typo on Documentation/dynamic-debug-howto.txt

2012-07-09 Thread dl9pf
From: Jan-Simon Möller Signed-off-by: Jan-Simon Möller Cc: Rob Landley Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Documentation/dynamic-debug-howto.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/dynamic-debug-howto.txt b/Doc