’ 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
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
/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 --
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
_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
+++
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
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
: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
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
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
)
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/
*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
: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
^
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
---
imiation");
> + pr_err("Rx coalesced usec exceeed hardware limiation");
> return -EINVAL;
> }
>
s/limiation/limitation
--
Augusto Mecking Caringi
15 matches
Mail list logo