[PATCH] thermal/intel_powerclamp: Remove set-but-not-used variables

2017-01-30 Thread Augusto Mecking Caringi
’ set but not used [-Wunused-but-set-variable] static unsigned long jiffies_last; ^ Signed-off-by: Augusto Mecking Caringi --- drivers/thermal/intel_powerclamp.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/thermal/intel_powerclamp.c b/drivers/thermal

Re: [PATCH] scsi: srp_transport: Fix 'always false comparison' in srp_tmo_valid()

2017-01-27 Thread Augusto Mecking Caringi
t; dev_loss_tmo >= LONG_MAX / HZ) also suppresses the compiler warning? Hi Bart, Right, now a I see... Doing your proposed change the warning go away... Do you want me to send a new patch for that? -- Augusto Mecking Caringi

[PATCH] scsi: srp_transport: Fix 'always false comparison' in srp_tmo_valid()

2017-01-26 Thread Augusto Mecking Caringi
/scsi_transport_srp.c:92:19: warning: comparison is always false due to limited range of data type [-Wtype-limits] if (dev_loss_tmo >= LONG_MAX / HZ) ^ Signed-off-by: Augusto Mecking Caringi --- drivers/scsi/scsi_transport_srp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH] usb: storage: sddr09: Remove a set-but-not-used variable

2017-01-24 Thread Augusto Mecking Caringi
ed [-Wunused-but-set-variable] int i, result, isnew; ^ Signed-off-by: Augusto Mecking Caringi --- drivers/usb/storage/sddr09.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/storage/sddr09.c b/drivers/usb/storage/sddr09.c index 3aeaa53..44f8ffc 1006

[PATCH] net: atm: Fix build error when !CONFIG_PROC_FS

2017-01-19 Thread Augusto Mecking Caringi
_proc_root); ^ Fix it by putting the proc cleanup code inside a #ifdef CONFIG_PROC_FS block. Signed-off-by: Augusto Mecking Caringi --- net/atm/clip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/atm/clip.c b/net/atm/clip.c index 53b4ac0..75221e4 100644 --- a/net/atm/clip.c +++

[PATCH] gpio: intel-mid: Fix build warning when !CONFIG_PM

2017-01-16 Thread Augusto Mecking Caringi
following compiler warning: drivers/gpio/gpio-intel-mid.c:324:12: warning: ‘intel_gpio_runtime_idle’ defined but not used [-Wunused-function] static int intel_gpio_runtime_idle(struct device *dev) Fix it by annotating the function with __maybe_unused. Signed-off-by: Augusto Mecking Caringi

[PATCH] vme: Fix wrong pointer utilization in ca91cx42_slave_get

2017-01-10 Thread Augusto Mecking Caringi
the following gcc warning: drivers/vme/bridges/vme_ca91cx42.c: In function ‘ca91cx42_slave_get’: drivers/vme/bridges/vme_ca91cx42.c:467:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] *pci_base = (dma_addr_t)vme_base + pci_offset; Signed-off-by: Augusto Mecking Cari

[PATCH] perf/x86: Fix 'may be used uninitialized' build warnings in core.c

2017-01-05 Thread Augusto Mecking Caringi
:11: note: ‘val_fail’ was declared here u64 val, val_fail, val_new= ~0; Signed-off-by: Augusto Mecking Caringi --- arch/x86/events/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c index 019c588..f6e41b4 100644 --- a/arch

[PATCH] ubifs: Fix 'unmet direct dependencies' config warning when !BLOCK

2017-01-03 Thread Augusto Mecking Caringi
When UBIFS_FS_ENCRYPTION is selected and BLOCK is not set, the following warning is given: warning: (UBIFS_FS_ENCRYPTION) selects FS_ENCRYPTION which has unmet direct dependencies (BLOCK) Fix it by making BLOCK a dependency of UBIFS_FS_ENCRYPTION. Signed-off-by: Augusto Mecking Caringi --- fs

[PATCH] cgroup: Fix CGROUP_BPF config dependency when !NET

2017-01-02 Thread Augusto Mecking Caringi
CGROUP_BPF selects SOCK_CGROUP_DATA which depends on NET So, if NET is not set the following warning is given: warning: (CGROUP_BPF) selects SOCK_CGROUP_DATA which has unmet direct dependencies (NET) Fix it by making CGROUP_BPF dependent of NET Signed-off-by: Augusto Mecking Caringi --- init

[PATCH] PM / domains: Fix 'may be used uninitialized' build warning

2016-12-30 Thread Augusto Mecking Caringi
) The same problem (in another function in this same file) was fixed in commit d33d5a6c88fc (avoid spurious "may be used uninitialized" warning) Signed-off-by: Augusto Mecking Caringi --- drivers/base/power/domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/base/power/

[PATCH] x86: mce: Fix build warning when !CONFIG_X86_LOCAL_APIC

2016-12-29 Thread Augusto Mecking Caringi
*info) ^ Fix it marking this function as __maybe_unused. Signed-off-by: Augusto Mecking Caringi --- arch/x86/kernel/cpu/mcheck/mce-inject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce-inject.c b/arch/x86/kernel/cpu/mcheck/mce

[PATCH] [media] smiapp: Fix build warnings when !CONFIG_PM_SLEEP

2016-12-29 Thread Augusto Mecking Caringi
:2771:12: warning: ‘smiapp_resume’ defined but not used [-Wunused-function] static int smiapp_resume(struct device *dev) ^ Signed-off-by: Augusto Mecking Caringi --- drivers/media/i2c/smiapp/smiapp-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media

[PATCH] net: atm: Fix warnings in net/atm/lec.c when !CONFIG_PROC_FS

2016-12-28 Thread Augusto Mecking Caringi
^ linux/net/atm/lec.c:1062:27: note: each undeclared identifier is reported only once for each function it appears in Signed-off-by: Augusto Mecking Caringi --- net/atm/lec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/atm/lec.c b/net/atm/lec.c index 019557d..09cfe87 100644 ---

Re: [PATCH] net: fec: fix spelling mistake "coalesed" -> "coalesced"

2016-06-04 Thread Augusto Mecking Caringi
imiation"); > + pr_err("Rx coalesced usec exceeed hardware limiation"); > return -EINVAL; > } > s/limiation/limitation -- Augusto Mecking Caringi