* [PATCH 1/3] msm: sirc: warning fix
@ 2010-11-12 21:49 David Brown
2010-11-12 21:49 ` [PATCH 2/3] msm: smd: Warning cleanup David Brown
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: David Brown @ 2010-11-12 21:49 UTC (permalink / raw)
To: linux-arm-msm, Daniel Walker; +Cc: linux-arm-kernel, linux-kernel, David Brown
Eliminate some unreferenced variables.
arch/arm/mach-msm/sirc.c:43: warning: 'save_type' defined but not used
arch/arm/mach-msm/sirc.c:44: warning: 'save_polarity' defined but not used
Signed-off-by: David Brown <davidb@codeaurora.org>
---
arch/arm/mach-msm/sirc.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-msm/sirc.c b/arch/arm/mach-msm/sirc.c
index b079452..152eefd 100644
--- a/arch/arm/mach-msm/sirc.c
+++ b/arch/arm/mach-msm/sirc.c
@@ -40,9 +40,6 @@ static struct sirc_cascade_regs sirc_reg_table[] = {
}
};
-static unsigned int save_type;
-static unsigned int save_polarity;
-
/* Mask off the given interrupt. Keep the int_enable mask in sync with
the enable reg, so it can be restored after power collapse. */
static void sirc_irq_mask(unsigned int irq)
--
1.7.3.2
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] msm: smd: Warning cleanup
2010-11-12 21:49 [PATCH 1/3] msm: sirc: warning fix David Brown
@ 2010-11-12 21:49 ` David Brown
2010-11-12 21:49 ` [PATCH 3/3] msm: " David Brown
2010-11-16 20:30 ` [PATCH 1/3] msm: sirc: warning fix Daniel Walker
2 siblings, 0 replies; 4+ messages in thread
From: David Brown @ 2010-11-12 21:49 UTC (permalink / raw)
To: linux-arm-msm, Daniel Walker; +Cc: linux-arm-kernel, linux-kernel, David Brown
Put some variables inside of the same ifdef as the code that uses
them.
arch/arm/mach-msm/smd_debug.c: In function 'smsm_print_sleep_info':
arch/arm/mach-msm/smd_debug.c:274: warning: unused variable 'int_info'
arch/arm/mach-msm/smd_debug.c:273: warning: unused variable 'gpio'
Signed-off-by: David Brown <davidb@codeaurora.org>
---
arch/arm/mach-msm/smd_debug.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-msm/smd_debug.c b/arch/arm/mach-msm/smd_debug.c
index f91c3b7..8736aff 100644
--- a/arch/arm/mach-msm/smd_debug.c
+++ b/arch/arm/mach-msm/smd_debug.c
@@ -270,8 +270,10 @@ void smsm_print_sleep_info(void)
{
unsigned long flags;
uint32_t *ptr;
+#ifndef CONFIG_ARCH_MSM_SCORPION
struct tramp_gpio_smem *gpio;
struct smsm_interrupt_info *int_info;
+#endif
spin_lock_irqsave(&smem_lock, flags);
--
1.7.3.2
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] msm: Warning cleanup
2010-11-12 21:49 [PATCH 1/3] msm: sirc: warning fix David Brown
2010-11-12 21:49 ` [PATCH 2/3] msm: smd: Warning cleanup David Brown
@ 2010-11-12 21:49 ` David Brown
2010-11-16 20:30 ` [PATCH 1/3] msm: sirc: warning fix Daniel Walker
2 siblings, 0 replies; 4+ messages in thread
From: David Brown @ 2010-11-12 21:49 UTC (permalink / raw)
To: linux-arm-msm, Daniel Walker; +Cc: linux-arm-kernel, linux-kernel, David Brown
Define VMALLOC_END as an unsigned long to match expected type.
Eliminates a warning:
arch/arm/mm/init.c: In function 'mem_init':
arch/arm/mm/init.c:606: warning: format '%08lx' expects type
'long unsigned int', but argument 12 has type 'unsigned int'
Signed-off-by: David Brown <davidb@codeaurora.org>
---
arch/arm/mach-msm/include/mach/vmalloc.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-msm/include/mach/vmalloc.h b/arch/arm/mach-msm/include/mach/vmalloc.h
index 31a32ad..d138448 100644
--- a/arch/arm/mach-msm/include/mach/vmalloc.h
+++ b/arch/arm/mach-msm/include/mach/vmalloc.h
@@ -16,7 +16,7 @@
#ifndef __ASM_ARCH_MSM_VMALLOC_H
#define __ASM_ARCH_MSM_VMALLOC_H
-#define VMALLOC_END 0xd0000000
+#define VMALLOC_END 0xd0000000UL
#endif
--
1.7.3.2
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] msm: sirc: warning fix
2010-11-12 21:49 [PATCH 1/3] msm: sirc: warning fix David Brown
2010-11-12 21:49 ` [PATCH 2/3] msm: smd: Warning cleanup David Brown
2010-11-12 21:49 ` [PATCH 3/3] msm: " David Brown
@ 2010-11-16 20:30 ` Daniel Walker
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Walker @ 2010-11-16 20:30 UTC (permalink / raw)
To: David Brown; +Cc: linux-arm-msm, linux-arm-kernel, linux-kernel
On Fri, 2010-11-12 at 13:49 -0800, David Brown wrote:
> Eliminate some unreferenced variables.
>
> arch/arm/mach-msm/sirc.c:43: warning: 'save_type' defined but not used
> arch/arm/mach-msm/sirc.c:44: warning: 'save_polarity' defined but not used
I accepted these three , but I altered the commit test to change the
shortlog so it's a little more descriptive. Changes below,
msm: sirc: remove some unused variables
msm: smd: ifdef adjustment to remove unused variables
msm: make constant unsigned long to correct format warning
Daniel
--
Sent by a consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-16 20:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-12 21:49 [PATCH 1/3] msm: sirc: warning fix David Brown
2010-11-12 21:49 ` [PATCH 2/3] msm: smd: Warning cleanup David Brown
2010-11-12 21:49 ` [PATCH 3/3] msm: " David Brown
2010-11-16 20:30 ` [PATCH 1/3] msm: sirc: warning fix Daniel Walker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).