[PATCH] ARM: Ensure that NEON code always compiles with Clang

2018-12-15 Thread Nathan Chancellor
e beginning of the NEON_FLAGS definitions so that __ARM_NEON__ always gets definined by Clang. This doesn't functionally change anything because that code will only run where NEON is supported, which is implicitly armv7. Link: https://github.com/ClangBuiltLinux/linux/issues/287 Suggested-by:

Re: [PATCH v2] drbd: Avoid Clang warning about pointless switch statment

2018-12-17 Thread Nathan Chancellor
On Thu, Oct 04, 2018 at 01:09:13PM -0700, Nathan Chancellor wrote: > There are several warnings from Clang about no case statement matching > the constant 0: > > In file included from drivers/block/drbd/drbd_receiver.c:48: > In file included from drivers/block/drbd/drbd_int.

Re: [PATCH v2] scsi/ata: Use unsigned int for cmd's type in ioctls in scsi_host_template

2018-12-17 Thread Nathan Chancellor
On Fri, Oct 19, 2018 at 10:01:44PM -0700, Nathan Chancellor wrote: > Clang warns several times in the scsi subsystem (trimmed for brevity): > > drivers/scsi/hpsa.c:6209:7: warning: overflow converting case value to > switch condition type (2147762695 to 1844674407156234701

Re: [PATCH] drm/i915: Disable -Wuninitialized for intel_breadcrumbs.o

2018-12-17 Thread Nathan Chancellor
On Thu, Oct 25, 2018 at 12:36:01PM -0700, Nathan Chancellor wrote: > This warning is disabled by default in scripts/Makefile.extrawarn when > W= is not provided but this Makefile adds -Wall after this warning is > disabled so it shows up in the build when it shouldn't: > > I

Re: [PATCH] vfio-mdev/samples: Use u8 instead of char for handle functions

2018-12-17 Thread Nathan Chancellor
On Fri, Oct 19, 2018 at 11:04:27AM -0700, Nathan Chancellor wrote: > Clang warns: > > samples/vfio-mdev/mtty.c:592:39: warning: implicit conversion from 'int' > to 'char' changes value from 162 to -94 [-Wconstant-conversion] > *buf = UART_MSR

[PATCH] media: ddbridge: Move asm includes after linux ones

2018-12-10 Thread Nathan Chancellor
red here unsigned long sig[_NSIG_WORDS]; ^ Fixes: b6973637c4cc ("media: ddbridge: remove another duplicate of io.h and sort includes") Signed-off-by: Nathan Chancellor --- drivers/media/pci/ddbridge/ddbridge.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-

[PATCH] drm/amd/display: Pass app_tf by value rather than by reference

2018-12-10 Thread Nathan Chancellor
when NULL was used for app_tf. Signed-off-by: Nathan Chancellor --- drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 7 +++ drivers/gpu/drm/amd/display/modules/inc/mod_freesync.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/display/modu

[PATCH] x86/pgtable: Always inline p4d_index

2018-12-10 Thread Nathan Chancellor
//github.com/llvm-mirror/clang/blob/master/lib/Frontend/CompilerInvocation.cpp#L637-L656 Link: https://github.com/ClangBuiltLinux/linux/issues/256 Signed-off-by: Nathan Chancellor --- arch/x86/include/asm/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/inclu

[PATCH] crypto: ux500 - Use proper enum in cryp_set_dma_transfer

2018-12-10 Thread Nathan Chancellor
t, we can just use the proper value from dma_transfer_direction so there is no more conversion. DMA_TO_DEVICE = DMA_MEM_TO_DEV = 1 DMA_FROM_DEVICE = DMA_DEV_TO_MEM = 2 Signed-off-by: Nathan Chancellor --- drivers/crypto/ux500/cryp/cryp_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

[PATCH] crypto: ux500 - Use proper enum in hash_set_dma_transfer

2018-12-10 Thread Nathan Chancellor
top of this function so we can just use the equivalent value from dma_transfer_direction. DMA_TO_DEVICE = DMA_MEM_TO_DEV = 1 Signed-off-by: Nathan Chancellor --- drivers/crypto/ux500/hash/hash_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/ux500/hash/ha

[PATCH] scsi: nsp32: Remove unnecessary self assignment in nsp32_set_sync_entry

2018-12-10 Thread Nathan Chancellor
Clang warns: drivers/scsi/nsp32.c:2444:14: warning: explicitly assigning value of variable of type 'unsigned char' to itself [-Wself-assign] offset = offset; ~~ ^ Signed-off-by: Nathan Chancellor --- drivers/scsi/nsp32.c | 1 - 1 file changed, 1 deletio

[PATCH] pcmcia: Remove unnecessary parentheses

2018-12-10 Thread Nathan Chancellor
rn this equality comparison into an assignment if ((tmpSC->SCp.Message == MSG_COMMAND_COMPLETE)) { ^~ = 1 warning generated. Signed-off-by: Nathan Chancellor --- drivers/scsi/pcmcia/nsp_cs.c | 3 ++-

[PATCH] pinctrl: aspeed: Wrap -Woverride-init with cc-option

2018-12-10 Thread Nathan Chancellor
Clang does not support this option: warning: unknown warning option '-Woverride-init'; did you mean '-Woverride-module'? [-Wunknown-warning-option] 1 warning generated. Signed-off-by: Nathan Chancellor --- drivers/pinctrl/aspeed/Makefile | 2 +- 1 file changed, 1 inse

Re: [PATCH] pinctrl: aspeed: Wrap -Woverride-init with cc-option

2018-12-10 Thread Nathan Chancellor
On Tue, Dec 11, 2018 at 10:46:26AM +1030, Joel Stanley wrote: > On Tue, 11 Dec 2018 at 10:40, Andrew Jeffery wrote: > > > > > > > > On Tue, 11 Dec 2018, at 10:35, Nathan Chancellor wrote: > > > Clang does not support this option: > > > > > >

[PATCH] soc: ti: knav_dma: Use proper enum in pktdma_init_chan

2018-12-10 Thread Nathan Chancellor
chan->direction = DMA_NONE; ~ ^~~~ 1 warning generated. While DMA_NONE and DMA_TRANS_NONE have different values, there is no functional change because direction is never checked against DMA_NONE, only against DMA_MEM_TO_DEV and DMA_DEV_TO_MEM. Signed-off-by: Nathan Chanc

[PATCH] drivers: net: xgene: Remove unnecessary forward declarations

2018-12-10 Thread Nathan Chancellor
xgene_enet_of_match are defined before their uses at the bottom of the file so this is unnecessary. When CONFIG_ACPI is disabled, ACPI_PTR becomes NULL so xgene_enet_acpi_match doesn't need to be defined. Signed-off-by: Nathan Chancellor --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 3 --- 1

Re: linux-next: Tree for Dec 11

2018-12-11 Thread Nathan Chancellor
On Tue, Dec 11, 2018 at 09:38:51AM -0800, Guenter Roeck wrote: > On Tue, Dec 11, 2018 at 06:26:27PM +1100, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20181210: > > > > The arm64 tree gained a conflict against Linus' tree. > > > > The f2fs tree gained a conflict against the fscrypt

Re: [PATCH] drm/amd/display: Pass app_tf by value rather than by reference

2018-12-11 Thread Nathan Chancellor
On Tue, Dec 11, 2018 at 01:25:00PM -0800, Nick Desaulniers wrote: > On Mon, Dec 10, 2018 at 3:42 PM Nathan Chancellor > wrote: > > > > Clang warns when an expression that equals zero is used as a null > > pointer constant (in lieu of NULL): > > > > drivers/gpu

Re: [PATCH] drm/amd/display: Pass app_tf by value rather than by reference

2018-12-11 Thread Nathan Chancellor
On Tue, Dec 11, 2018 at 02:07:31PM -0800, Nick Desaulniers wrote: > On Tue, Dec 11, 2018 at 1:42 PM Nathan Chancellor > wrote: > > > > On Tue, Dec 11, 2018 at 01:25:00PM -0800, Nick Desaulniers wrote: > > > On Mon, Dec 10, 2018 at 3:42 PM Nathan Chancellor > >

[PATCH] ACPI / tables: Add an ifdef around amlcode and dsdt_amlcode

2018-12-20 Thread Nathan Chancellor
ble] static void *dsdt_amlcode __attribute__ ((weakref("dsdt_aml_code"))); ^ 2 warnings generated. The only uses of these variables are hiddem behind CONFIG_ACPI_CUSTOM_DSDT so do the same thing here. Fixes: 82e4eb4e9653 ("ACPI / tables: add DSDT AmlCode new declaration nam

Re: [PATCH] ACPI / tables: Add an ifdef around amlcode and dsdt_amlcode

2018-12-20 Thread Nathan Chancellor
On Thu, Dec 20, 2018 at 12:38:56PM -0700, Nathan Chancellor wrote: > Clang warns: > > drivers/acpi/tables.c:715:14: warning: unused variable 'amlcode' > [-Wunused-variable] > static void *amlcode __attribute__ ((weakref("AmlCode"))); > ^ &

Clang build error in drivers/scsi/smartpqi/smartpqi_init.c

2018-12-20 Thread Nathan Chancellor
Hi all, After commit 4fd22c13ad44 ("scsi: smartpqi: add ofa support"), an arm allyesconfig build with Clang fails with the following warning/error: drivers/scsi/smartpqi/smartpqi_init.c:7473:2: warning: comparison of distinct pointer types ('typeof ((sg_count)) *' (aka 'unsigned int *') and 'uin

Re: Clang build error in drivers/scsi/smartpqi/smartpqi_init.c

2018-12-20 Thread Nathan Chancellor
On Fri, Dec 21, 2018 at 12:11:00AM -0700, Nathan Chancellor wrote: > Hi all, > > After commit 4fd22c13ad44 ("scsi: smartpqi: add ofa support"), an arm > allyesconfig build with Clang fails with the following warning/error: > > drivers/scsi/smartpqi/smartpqi_init.c:74

Re: [PATCH] kasan: fix kasan_check_read/write definitions

2019-01-07 Thread Nathan Chancellor
On Tue, Dec 11, 2018 at 02:34:35PM +0100, Arnd Bergmann wrote: > Building little-endian allmodconfig kernels on arm64 started failing > with the generated atomic.h implementation, since we now try to call > kasan helpers from the EFI stub: > > aarch64-linux-gnu-ld: drivers/firmware/efi/libstub/arm

Clang warnings in net/phonet

2019-01-07 Thread Nathan Chancellor
Hi all, When building the kernel with Clang, this warning comes up in net/phonet. net/phonet/pep.c:224:16: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds] ph->data[0] = oph->data[1]; /* CTRL id */ ^ ~ include/n

[PATCH] nfit: Hide unused functions behind CONFIG_X86

2019-01-07 Thread Nathan Chancellor
y define these functions under that same condition. Fixes: 4c6926a23b76 ("acpi/nfit, libnvdimm: Add unlock of nvdimm support for Intel DIMMs") Signed-off-by: Nathan Chancellor --- drivers/acpi/nfit/intel.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dri

[PATCH] isdn: avm: Fix string plus integer warning from Clang

2019-01-07 Thread Nathan Chancellor
arning generated. This is equivalent to just "\0" so fix it to clean up the warning. Link: https://github.com/ClangBuiltLinux/linux/issues/309 Signed-off-by: Nathan Chancellor --- drivers/isdn/hardware/avm/b1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

Re: [PATCH] nfit: Hide unused functions behind CONFIG_X86

2019-01-07 Thread Nathan Chancellor
On Mon, Jan 07, 2019 at 09:14:05PM -0800, Dan Williams wrote: > On Mon, Jan 7, 2019 at 8:59 PM Nathan Chancellor > wrote: > > > > On arm64 little endian allyesconfig: > > > > drivers/acpi/nfit/intel.c:149:12: warning: unused function > > 'intel_security_u

[PATCH v2] ARM: Remove '-p' from LDFLAGS

2018-12-31 Thread Nathan Chancellor
around so just remove it. Commit 1a381d4a0a9a ("arm64: remove no-op -p linker flag") did the same for arm64. Signed-off-by: Nathan Chancellor Acked-by: Ard Biesheuvel Acked-by: Nicolas Pitre Reviewed-by: Nick Desaulniers Reviewed-by: Stefan Agner --- v1 -> v2: * Collect tags

[PATCH] platform/chrome: chromeos_tbmc - Remove unneeded const

2018-10-08 Thread Nathan Chancellor
PM_OPS' #define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \ ^ 1 warning generated. SIMPLE_DEV_PM_OPS is already declared as const, this one is unnecessary so remove it. Signed-off-by: Nathan Chancellor --- drivers/platform/chrome

Re: [PATCH 4.4 000/113] 4.4.160-stable review

2018-10-08 Thread Nathan Chancellor
On Mon, Oct 08, 2018 at 08:30:01PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.160 release. > There are 113 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: [PATCH 4.9 00/59] 4.9.132-stable review

2018-10-08 Thread Nathan Chancellor
On Mon, Oct 08, 2018 at 08:31:07PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.132 release. > There are 59 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 4.4 093/113] pinctrl: msm: Really mask level interrupts to prevent latching

2018-10-08 Thread Nathan Chancellor
On Mon, Oct 08, 2018 at 08:31:34PM +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Stephen Boyd > > [ Upstream commit b55326dc969ea2d704a008d9a97583b128f54f4f ] > > The interrupt controller hardware

Re: [PATCH 4.4 093/113] pinctrl: msm: Really mask level interrupts to prevent latching

2018-10-10 Thread Nathan Chancellor
On Wed, Oct 10, 2018 at 09:12:58AM +0200, Linus Walleij wrote: > On Tue, Oct 9, 2018 at 8:33 AM Nathan Chancellor > wrote: > > > Sigh, sorry, I caught this after I sent my initial all good email but > > this commit breaks NFC on my Pixel 2 XL (toggle becomes greyed out and

Re: [PATCH] pinctrl: generic: Avoid several implicit enum conversions

2018-10-31 Thread Nathan Chancellor
On Wed, Oct 31, 2018 at 02:33:24PM +0100, Linus Walleij wrote: > On Thu, Oct 25, 2018 at 11:04 PM Nathan Chancellor > wrote: > > > In my opinion, there are enough of these warnings to warrant changing > > the type of param globally (arm64 allyesconfig): > > Yeah as it

[PATCH] pinctrl: sprd: Use define directive for sprd_pinconf_params values

2018-10-31 Thread Nathan Chancellor
7;t an issue. Most drivers that take advantage of this define the PIN_CONFIG variables as constants, rather than enumerated values. Do the same thing here so that Clang no longer warns. Link: https://github.com/ClangBuiltLinux/linux/issues/138 Signed-off-by: Nathan Chancellor --- drivers/pinctrl/s

[PATCH] pinctrl: bcm2835: Use define directive for BCM2835_PINCONF_PARAM_PULL

2018-10-31 Thread Nathan Chancellor
X so this conversion isn't an issue. Most drivers that take advantage of this define the PIN_CONFIG variables as constants, rather than enumerated values. Do the same thing here so that Clang no longer warns. Signed-off-by: Nathan Chancellor --- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 6

[PATCH] pinctrl: max77620: Use define directive for max77620_pinconf_param values

2018-10-31 Thread Nathan Chancellor
antage of this define the PIN_CONFIG variables as constants, rather than enumerated values. Do the same thing here so that Clang no longer warns. Link: https://github.com/ClangBuiltLinux/linux/issues/139 Signed-off-by: Nathan Chancellor --- drivers/pinctrl/pinctrl-max77620.c | 14 ++ 1 file ch

[PATCH] pinctrl: lpc18xx: Use define directive for PIN_CONFIG_GPIO_PIN_INT

2018-10-31 Thread Nathan Chancellor
advantage of this define the PIN_CONFIG variables as constants, rather than enumerated values. Do the same thing here so that Clang no longer warns. Link: https://github.com/ClangBuiltLinux/linux/issues/140 Signed-off-by: Nathan Chancellor --- drivers/pinctrl/pinctrl-lpc18xx.c | 5 + 1 file ch

[PATCH] rtc: omap: Use define directive for PIN_CONFIG_ACTIVE_HIGH

2018-10-31 Thread Nathan Chancellor
riables as constants, rather than enumerated values. Do the same thing here so that Clang no longer warns. Link: https://github.com/ClangBuiltLinux/linux/issues/144 Signed-off-by: Nathan Chancellor --- drivers/rtc/rtc-omap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH] pinctrl: zynq: Use define directive for PIN_CONFIG_IO_STANDARD

2018-10-31 Thread Nathan Chancellor
ne the PIN_CONFIG variables as constants, rather than enumerated values. Do the same thing here so that Clang no longer warns. Signed-off-by: Nathan Chancellor --- drivers/pinctrl/pinctrl-zynq.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/pinctrl/pinctrl-zynq

Re: [PATCH] x86/mm: annotate no_context with UNWIND_HINTS

2018-10-15 Thread Nathan Chancellor
On Mon, Oct 15, 2018 at 09:03:40AM -0700, Andy Lutomirski wrote: > On Mon, Oct 15, 2018 at 8:31 AM Josh Poimboeuf wrote: > > > > On Mon, Oct 15, 2018 at 08:22:21AM -0700, Nathan Chancellor wrote: > > > > >>> @@ -760,9 +760,11 @@ no_context

[PATCH] Kbuild: Hide Clang's -Wempty-body behind W=1

2018-10-15 Thread Nathan Chancellor
com/ClangBuiltLinux/linux/issues/42 Link: https://github.com/ClangBuiltLinux/linux/issues/66 Signed-off-by: Nathan Chancellor --- scripts/Makefile.extrawarn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index cf6cd0ef6975..8709d9d6faf1 1

Re: [PATCH] Kbuild: Hide Clang's -Wempty-body behind W=1

2018-10-16 Thread Nathan Chancellor
Hi Masahiro, On Wed, Oct 17, 2018 at 01:48:46PM +0900, Masahiro Yamada wrote: > Hi Nathan, > > > On Tue, Oct 16, 2018 at 11:15 AM Nathan Chancellor > wrote: > > > > There are only a few instances of this warning in an arm64 allyesconfig > > build but none of

[PATCH] misc: atmel-ssc: Fix section annotation on atmel_ssc_get_driver_data

2018-10-17 Thread Nathan Chancellor
atmel_ssc_get_driver_data(). This is often because ssc_probe lacks a __init annotation or the annotation of atmel_ssc_get_driver_data is wrong. Remove __init from atmel_ssc_get_driver_data to get rid of the mismatch. Signed-off-by: Nathan Chancellor --- Alternatively, ssc_probe could be marked as

[PATCH] mfd: twl-core: Fix section annotations on {,un}protect_pm_master

2018-10-17 Thread Nathan Chancellor
unprotect_pm_master(). This is often because twl_probe lacks a __init annotation or the annotation of unprotect_pm_master is wrong. Remove the __init annotation on the *protect_pm_master functions so there is no more mismatch. Signed-off-by: Nathan Chancellor --- Alternatively, I suppose that twl_probe

Re: [PATCH] misc: atmel-ssc: Fix section annotation on atmel_ssc_get_driver_data

2018-10-17 Thread Nathan Chancellor
On Wed, Oct 17, 2018 at 08:16:25PM +0200, Alexandre Belloni wrote: > On 17/10/2018 10:09:02-0700, Nathan Chancellor wrote: > > After building the kernel with Clang, the following section mismatch > > warning appears: > > > > WARNING: vmlinux.o(.text+0x3bf19a6): Section

[PATCH] ARM: dts: omap3-gta04: Fix comment block

2018-10-17 Thread Nathan Chancellor
mcbsp_clks */ ^ 1 warning generated. Fixes: 3c10507a39e8 ("ARM: dts: omap3-gta04: add mcbsp (audio subsystem) pinmux") Signed-off-by: Nathan Chancellor --- arch/arm/boot/dts/omap3-gta04.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH] ARM: OMAP2+: hwmod: Fix some section annotations

2018-10-17 Thread Nathan Chancellor
t be moved out of the init section, which this patch does. Signed-off-by: Nathan Chancellor --- arch/arm/mach-omap2/omap_hwmod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 083dcd9942ce..92

[PATCH] ARM: OMAP2+: prm44xx: Fix section annotation on omap44xx_prm_enable_io_wakeup

2018-10-17 Thread Nathan Chancellor
: Nathan Chancellor --- arch/arm/mach-omap2/prm44xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c index 7b95729e8359..38a1be6c3694 100644 --- a/arch/arm/mach-omap2/prm44xx.c +++ b/arch/arm/mach-omap2/prm44xx.c

[PATCH] mfd: db8500-prcmu: Fix some section annotations

2018-10-17 Thread Nathan Chancellor
and init_prcm_registers. Signed-off-by: Nathan Chancellor --- drivers/mfd/db8500-prcmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index 5970b8def548..aec20e1c7d3d 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b

Re: [PATCH] pinctrl: zynq: Use define directive for PIN_CONFIG_IO_STANDARD

2018-11-07 Thread Nathan Chancellor
On Wed, Nov 07, 2018 at 09:46:12AM +0100, Michal Simek wrote: > On 01. 11. 18 1:57, Nathan Chancellor wrote: > > Clang warns when one enumerated type is implicitly converted to another: > > > > drivers/pinctrl/pinctrl-zynq.c:985:18: warning: implicit conversion from >

[PATCH v2] pinctrl: zynq: Use define directive for PIN_CONFIG_IO_STANDARD

2018-11-07 Thread Nathan Chancellor
ne the PIN_CONFIG variables as constants, rather than enumerated values. Do the same thing here so that Clang no longer warns. Signed-off-by: Nathan Chancellor --- v1 -> v2: * Avoid kernel-doc warning drivers/pinctrl/pinctrl-zynq.c | 9 +++-- 1 file changed, 3 insertions(+), 6 delet

Re: [PATCH] pinctrl: zynq: Use define directive for PIN_CONFIG_IO_STANDARD

2018-11-08 Thread Nathan Chancellor
On Thu, Nov 08, 2018 at 07:45:42AM +0100, Michal Simek wrote: > On 07. 11. 18 18:48, Nick Desaulniers wrote: > > On Wed, Nov 7, 2018 at 1:01 AM Michal Simek wrote: > >> > >> On 07. 11. 18 9:55, Nathan Chancellor wrote: > >>> On Wed, Nov 07, 2018 at 09:46:12

Re: [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-11 Thread Nathan Chancellor
On Thu, Oct 11, 2018 at 01:31:26PM -0700, ndesaulni...@google.com wrote: > by swapping h2 and h3. > > security/keys/trusted.c:146:17: warning: passing an object that > undergoes default > argument promotion to 'va_start' has undefined behavior [-Wvarargs] > va_start(argp, h3); >

Re: [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-12 Thread Nathan Chancellor
On Fri, Oct 12, 2018 at 09:55:55AM -0700, Nick Desaulniers wrote: > On Thu, Oct 11, 2018 at 6:50 PM Nathan Chancellor > wrote: > > > > On Thu, Oct 11, 2018 at 01:31:26PM -0700, ndesaulni...@google.com wrote: > > > by swapping h2 and h3. > > > > > > sec

Re: [PATCH 3.18 000/120] 3.18.124-stable review

2018-10-12 Thread Nathan Chancellor
On Thu, Oct 11, 2018 at 05:33:01PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.124 release. > There are 120 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kn

Re: [PATCH 4.4 00/27] 4.4.161-stable review

2018-10-12 Thread Nathan Chancellor
On Thu, Oct 11, 2018 at 05:34:47PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.161 release. > There are 27 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 4.9 00/35] 4.9.133-stable review

2018-10-12 Thread Nathan Chancellor
On Thu, Oct 11, 2018 at 05:35:02PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.133 release. > There are 35 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

[PATCH] x86/time: Correct the attribute on jiffies' definition

2018-10-12 Thread Nathan Chancellor
ch so Clang no longer warns. Link: https://github.com/ClangBuiltLinux/linux/issues/98 Signed-off-by: Nathan Chancellor --- arch/x86/kernel/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c index b23f5420b26a..0e14f6c0d35e 100

[PATCH] x86/boot: Add -Wno-pointer-sign to KBUILD_CFLAGS

2018-10-12 Thread Nathan Chancellor
; # define likely(x) __builtin_expect(!!(x), 1) ^ ./include/asm-generic/atomic-instrumented.h:69:66: note: passing argument to parameter 'old' here static __always_inline bool atomic_try_cmpxchg(atomic_t *v, int *old, int new)

Re: [PATCH] x86/mm: annotate no_context with UNWIND_HINTS

2018-10-14 Thread Nathan Chancellor
On Sun, Oct 14, 2018 at 08:43:18PM -0700, Andy Lutomirski wrote: > On Sun, Oct 14, 2018 at 5:37 PM Nick Desaulniers > wrote: > > > > Fixes the objtool warning: > > arch/x86/mm/fault.o: warning: objtool: no_context()+0x220: unreachable > > instruction > > > > Link: https://github.com/ClangBuiltLinu

Re: [PATCH] x86/mm: annotate no_context with UNWIND_HINTS

2018-10-15 Thread Nathan Chancellor
On Mon, Oct 15, 2018 at 07:34:14AM -0700, Andy Lutomirski wrote: > > > > On Oct 14, 2018, at 10:17 PM, Nathan Chancellor > > wrote: > > > >> On Sun, Oct 14, 2018 at 08:43:18PM -0700, Andy Lutomirski wrote: > >> On Sun, Oct 14, 2018 at 5:37 PM Nick D

[PATCH] staging: rtlwifi: Remove unnecessary parentheses

2018-10-03 Thread Nathan Chancellor
ink: https://github.com/ClangBuiltLinux/linux/issues/172 Signed-off-by: Nathan Chancellor --- drivers/staging/rtlwifi/phydm/phydm_adc_sampling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtlwifi/phydm/phydm_adc_sampling.c b/drivers/staging/rtl

[PATCH] staging: rtl8723bs: Remove unnecessary parentheses and dead commented code

2018-10-03 Thread Nathan Chancellor
right below this block. Link: https://github.com/ClangBuiltLinux/linux/issues/168 Signed-off-by: Nathan Chancellor --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers

[PATCH] ata: ep93xx: Use proper enums for directions

2018-10-03 Thread Nathan Chancellor
ma_transfer_direction' [-Wenum-conversion] conf.direction = DMA_TO_DEVICE; ~ ^ Use the equivalent valued enums from the expected type so that Clang no longer warns about a conversion. DMA_TO_DEVICE = DMA_MEM_TO_DEV = 1 DMA_FROM_DEVICE = DMA_DEV_TO_MEM = 2

[PATCH] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-03 Thread Nathan Chancellor
s just simpler to change the parameter here. dma_transfer_direction and dma_data_direction are different sizes but this driver only uses the 1 and 2 values which mean the same thing so this change is safe. Signed-off-by: Nathan Chancellor --- drivers/spi/spi-ep93xx.c | 6 ++ 1 file

[PATCH v2] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-03 Thread Nathan Chancellor
s just simpler to change the parameter here. dma_transfer_direction and dma_data_direction are different sizes but this driver only uses the 1 and 2 values which mean the same thing so this change is safe. Signed-off-by: Nathan Chancellor --- v1 -> v2: * Fix escaped hash symbols for '#defin

[PATCH] staging: emxx_udc: Remove unused device_desc declaration

2018-10-03 Thread Nathan Chancellor
s variable being unused is the sizeof function. Reported-by: Nick Desaulniers Signed-off-by: Nathan Chancellor --- This seems kind of wrong given this is a USB driver but there isn't an instance of a platform_driver in the kernel tree having a usb device descriptor declaration so I'm unsure

Re: [PATCH] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-04 Thread Nathan Chancellor
On Thu, Oct 04, 2018 at 11:32:47AM +0100, Mark Brown wrote: > On Wed, Oct 03, 2018 at 07:39:26PM -0700, Nathan Chancellor wrote: > > Clang warns when one enumerated type is implicitly converted to another. > > > > drivers/spi/spi-ep93xx.c:342:62: warning: implicit conversion

Re: [PATCH v2] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-04 Thread Nathan Chancellor
On Thu, Oct 04, 2018 at 02:32:48PM -0700, Nick Desaulniers wrote: > On Wed, Oct 3, 2018 at 7:41 PM Nathan Chancellor > wrote: > > > > Clang warns when one enumerated type is implicitly converted to another. > > > > drivers/spi/spi-ep93xx.c:342:62: warning: implicit c

Re: [PATCH] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-05 Thread Nathan Chancellor
On Fri, Oct 05, 2018 at 11:28:44AM +0300, Mika Westerberg wrote: > Hi, > > On Thu, Oct 04, 2018 at 11:32:47AM +0100, Mark Brown wrote: > > On Wed, Oct 03, 2018 at 07:39:26PM -0700, Nathan Chancellor wrote: > > > Clang warns when one enumerated type is implici

[PATCH v3] spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare}

2018-10-05 Thread Nathan Chancellor
transfer_direction: the direction member in struct dma_slave_config and the direction parameter in dmaengine_prep_slave_sg. To avoid using an explicit cast, add a simple function, ep93xx_dma_data_to_trans_dir, to safely map between the two types because they are not 1 to 1 in meaning. Signed-off-by:

Re: [PATCH v3] spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare}

2018-10-05 Thread Nathan Chancellor
On Fri, Oct 05, 2018 at 01:41:19PM -0700, Nick Desaulniers wrote: > Nathan, > Thanks for your patience and continued support working towards an > optimal solution to fix this warning. Some thoughts below. > > On Fri, Oct 5, 2018 at 12:29 PM Nathan Chancellor > wrote: > >

[PATCH v4] spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare}

2018-10-08 Thread Nathan Chancellor
transfer_direction: the direction member in struct dma_slave_config and the direction parameter in dmaengine_prep_slave_sg. To avoid using an explicit cast, add a simple function, ep93xx_dma_data_to_trans_dir, to safely map between the two types because they are not 1 to 1 in meaning. Signed-off-by:

Re: [PATCH] pinctrl: lpc18xx: Use define directive for PIN_CONFIG_GPIO_PIN_INT

2018-11-01 Thread Nathan Chancellor
On Thu, Nov 01, 2018 at 10:52:14AM +0200, Vladimir Zapolskiy wrote: > Hi Nathan, > > thank you for your patch. > > On 11/01/2018 02:52 AM, Nathan Chancellor wrote: > > Clang warns when one enumerated type is implicitly converted to another: > > > > drivers

[PATCH v2] pinctrl: lpc18xx: Use define directive for PIN_CONFIG_GPIO_PIN_INT

2018-11-01 Thread Nathan Chancellor
advantage of this define the PIN_CONFIG variables as constants, rather than enumerated values. Do the same thing here so that Clang no longer warns. Link: https://github.com/ClangBuiltLinux/linux/issues/140 Signed-off-by: Nathan Chancellor --- v1 -> v2: * Improve comment so kernel-doc doesn&

Re: [PATCH RFC] x86: Don't include '-Wa,-' when building with Clang

2018-10-23 Thread Nathan Chancellor
On Tue, Oct 23, 2018 at 01:01:22PM -0700, H. Peter Anvin wrote: > On 10/23/18 11:40, Nick Desaulniers wrote: > > On Mon, Oct 22, 2018 at 10:11 PM Nadav Amit wrote: > >> > >> at 5:37 PM, Nathan Chancellor wrote: > >> > >> Commit 77b0bf55bc67 (

Re: [PATCH RFC] x86: Don't include '-Wa,-' when building with Clang

2018-10-23 Thread Nathan Chancellor
On Tue, Oct 23, 2018 at 03:08:53PM -0700, Nick Desaulniers wrote: > On Tue, Oct 23, 2018 at 2:58 PM Nathan Chancellor > wrote: > > > > On Tue, Oct 23, 2018 at 01:01:22PM -0700, H. Peter Anvin wrote: > > > On 10/23/18 11:40, Nick Desaulniers wrote: > > > >

[PATCH] x86: Remove -pipe from KBUILD_CFLAGS

2018-10-23 Thread Nathan Chancellor
//bugs.llvm.org/show_bug.cgi?id=39410) but this is not as much of a workaround anymore since it helps both GCC and Clang. Link: https://github.com/ClangBuiltLinux/linux/issues/213 Suggested-by: H. Peter Anvin Signed-off-by: Nathan Chancellor --- arch/x86/Makefile | 4 +--- 1 file changed, 1 insertion(

[PATCH] dmaengine: xilinx_dma: Remove __aligned attribute on zynqmp_dma_desc_ll

2018-10-25 Thread Nathan Chancellor
he default. Remove the hanging __aligned attribute. Fixes: b0cc417c1637 ("dmaengine: Add Xilinx zynqmp dma engine driver support") Reported-by: Nick Desaulniers Suggested-by: Nick Desaulniers Signed-off-by: Nathan Chancellor --- drivers/dma/xilinx/zynqmp_dma.c | 2 +- 1 file chan

Re: [PATCH] dmaengine: xilinx_dma: Remove __aligned attribute on zynqmp_dma_desc_ll

2018-10-25 Thread Nathan Chancellor
On Thu, Oct 25, 2018 at 11:11:22AM -0700, Nick Desaulniers wrote: > On Thu, Oct 25, 2018 at 11:06 AM Nathan Chancellor > wrote: > > > > Clang warns: > > > > drivers/dma/xilinx/zynqmp_dma.c:166:4: warning: attribute 'aligned' is > > ignored, plac

Re: [PATCH] pinctrl: generic: Avoid several implicit enum conversions

2018-10-25 Thread Nathan Chancellor
On Tue, Sep 25, 2018 at 09:23:09AM -0700, Nick Desaulniers wrote: > On Tue, Sep 25, 2018 at 9:15 AM Nathan Chancellor > wrote: > > > > On Tue, Sep 25, 2018 at 12:58:16PM +0200, Linus Walleij wrote: > > > On Tue, Sep 25, 2018 at 8:19 AM Nathan Chancellor > > &g

Re: [PATCH] fs/exofs: Remove ignored __weak attribute

2018-10-25 Thread Nathan Chancellor
On Sun, Sep 30, 2018 at 01:51:26PM -0700, Nathan Chancellor wrote: > Clang warns that the __weak attribute is going to be ignored on > g_attr_inode_data because it's not in the correct location (needs to be > after the type). > > In file included from fs/exofs/dir.c:35: > I

[PATCH] clk: s2mps11: Add used attribute to s2mps11_dt_match

2018-10-18 Thread Nathan Chancellor
dded to .of_match_table, we need to mark s2mps11_dt_match as __used to silence this warning. This makes it clear to Clang that the variable is used for something, even if a reference to it isn't being emitted. Signed-off-by: Nathan Chancellor --- drivers/clk/clk-s2mps11.c | 2 +- 1 file chan

Re: [PATCH] clk: s2mps11: Add used attribute to s2mps11_dt_match

2018-10-18 Thread Nathan Chancellor
On Thu, Oct 18, 2018 at 01:29:57PM -0700, Stephen Boyd wrote: > Quoting Nathan Chancellor (2018-10-18 12:13:40) > > Clang warns after commit 8985167ecf57 ("clk: s2mps11: Fix matching when > > built as module and DT node contains compatible"): > > > > driv

[PATCH] rtc: s35390a: Make buf an unsigned char in s35390a_init

2018-10-18 Thread Nathan Chancellor
Update buf to be an unsigned char, which matches the size and signedness of the buf member in struct i2c_msg (__u8). https://github.com/ClangBuiltLinux/linux/issues/145 Signed-off-by: Nathan Chancellor --- drivers/rtc/rtc-s35390a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

Re: [PATCH 4.4 00/48] 4.4.162-stable review

2018-10-18 Thread Nathan Chancellor
On Thu, Oct 18, 2018 at 07:54:35PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.162 release. > There are 48 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 4.14 00/41] 4.14.78-stable review

2018-10-18 Thread Nathan Chancellor
On Thu, Oct 18, 2018 at 07:54:15PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.78 release. > There are 41 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 4.9 00/35] 4.9.135-stable review

2018-10-18 Thread Nathan Chancellor
On Thu, Oct 18, 2018 at 07:54:29PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.135 release. > There are 35 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

[PATCH] vfio-mdev/samples: Use u8 instead of char for handle functions

2018-10-19 Thread Nathan Chancellor
~~ 1 warning generated. Turns out that all uses of buf in this function ultimately end up stored or cast to an unsigned type. Just use u8, which has the same number of bits but can store this larger number so Clang no longer warns. Signed-off-by: Nathan Chancellor --- samples/v

[PATCH] bpf/test_run: Add braces to initialization in bpf_prog_test_run_skb

2018-10-19 Thread Nathan Chancellor
: add tests for direct packet access from CGROUP_SKB") Signed-off-by: Nathan Chancellor --- net/bpf/test_run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bpf/test_run.c b/net/bpf/test_run.c index 8dccac305268..65e049c61a7a 100644 --- a/net/bpf/test_run.c +++

[PATCH] pstore: Fix annotation on declaration of pstore_exit_fs

2018-10-19 Thread Nathan Chancellor
("pstore: Centralize init/exit routines") Signed-off-by: Nathan Chancellor --- fs/pstore/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/pstore/internal.h b/fs/pstore/internal.h index 98bb4fa6e6a7..7062ea4bc57c 100644 --- a/fs/pstore/internal.h +++ b

[PATCH v2] rtc: s35390a: Change buf's type to u8 in s35390a_init

2018-10-19 Thread Nathan Chancellor
Update buf to be an unsigned 8-bit integer, which matches the buf member in struct i2c_msg. https://github.com/ClangBuiltLinux/linux/issues/145 Signed-off-by: Nathan Chancellor --- v1 -> v2: * Use u8 instead of unsigned char, as it's clearer that this is an integer value and it&

Re: [PATCH v2] [PATCH] KEYS: trusted: fix -Wvarags warning

2018-10-22 Thread Nathan Chancellor
tml > Suggested-by: David Laight > Suggested-by: Denis Kenzior > Suggested-by: James Bottomley > Suggested-by: Nathan Chancellor > Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor Tested-by: Nathan Chancellor > --- > v1 -> v2: > * Don't reo

[PATCH RFC] x86: Don't include '-Wa,-' when building with Clang

2018-10-22 Thread Nathan Chancellor
the build hangs indefinitely at init/main.o, right before the linking stage. Don't include this flag when building with Clang. The kernel builds and boots to a shell in QEMU with both GCC and Clang with this patch applied. Link: https://github.com/ClangBuiltLinux/linux/issues/213 Signed

Re: [PATCH] iio: adc: max9611: Avoid implicit enum conversion warning

2018-09-16 Thread Nathan Chancellor
On Sun, Sep 16, 2018 at 10:53:51AM +0100, Jonathan Cameron wrote: > On Fri, 14 Sep 2018 22:25:11 -0700 > Nathan Chancellor wrote: > > > Clang warns when an enumerated type is implicitly converted to another. > > > > drivers/iio/adc/max9611.c:292:16: warnin

Re: [PATCH 4.4 00/56] 4.4.157-stable review

2018-09-17 Thread Nathan Chancellor
On Tue, Sep 18, 2018 at 12:41:33AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.157 release. > There are 56 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 4.9 00/70] 4.9.128-stable review

2018-09-17 Thread Nathan Chancellor
On Tue, Sep 18, 2018 at 12:41:33AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.128 release. > There are 70 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 4.14 000/126] 4.14.71-stable review

2018-09-17 Thread Nathan Chancellor
On Tue, Sep 18, 2018 at 12:40:48AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.71 release. > There are 126 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

<    1   2   3   4   5   6   7   8   9   10   >