* [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent() Ezequiel Garcia
@ 2012-06-09 8:13 ` Ezequiel Garcia
2012-06-09 8:13 ` [PATCH 2/6] arm: " Ezequiel Garcia
` (5 subsequent siblings)
6 siblings, 0 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 8:13 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-arch, Ezequiel Garcia, Paul Mundt, linux-sh
This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
There is neither change in functionality, nor extra code generated.
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: <linux-sh@vger.kernel.org>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
arch/sh/include/asm/flat.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/sh/include/asm/flat.h b/arch/sh/include/asm/flat.h
index 5d84df5..51dd7af 100644
--- a/arch/sh/include/asm/flat.h
+++ b/arch/sh/include/asm/flat.h
@@ -18,7 +18,12 @@
#define flat_get_addr_from_rp(rp, relval, flags, p) get_unaligned(rp)
#define flat_put_addr_at_rp(rp, val, relval) put_unaligned(val,rp)
#define flat_get_relocate_addr(rel) (rel)
-#define flat_set_persistent(relval, p) ({ (void)p; 0; })
+
+static inline int flat_set_persistent(unsigned long relval,
+ unsigned long *persistent)
+{
+ return 0;
+}
#define FLAT_PLAT_INIT(_r) \
do { _r->regs[0]=0; _r->regs[1]=0; _r->regs[2]=0; _r->regs[3]=0; \
--
1.7.3.4
^ permalink raw reply related [flat|nested] 21+ messages in thread* [PATCH 2/6] arm: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent() Ezequiel Garcia
2012-06-09 8:13 ` Ezequiel Garcia
@ 2012-06-09 8:13 ` Ezequiel Garcia
2012-06-09 8:13 ` Ezequiel Garcia
2012-07-03 18:53 ` Ezequiel Garcia
2012-06-09 8:13 ` [PATCH 3/6] xtensa: " Ezequiel Garcia
` (4 subsequent siblings)
6 siblings, 2 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 8:13 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-arch, Ezequiel Garcia, Russell King, linux-arm-kernel
This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
There is neither change in functionality, nor extra code generated.
Cc: Russell King <linux@arm.linux.org.uk>
Cc: <linux-arm-kernel@lists.infradead.org>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
arch/arm/include/asm/flat.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/arm/include/asm/flat.h b/arch/arm/include/asm/flat.h
index 59426a4..6ef6cc5 100644
--- a/arch/arm/include/asm/flat.h
+++ b/arch/arm/include/asm/flat.h
@@ -11,6 +11,11 @@
#define flat_get_addr_from_rp(rp, relval, flags, persistent) get_unaligned(rp)
#define flat_put_addr_at_rp(rp, val, relval) put_unaligned(val,rp)
#define flat_get_relocate_addr(rel) (rel)
-#define flat_set_persistent(relval, p) 0
+
+static inline int flat_set_persistent(unsigned long relval,
+ unsigned long *persistent)
+{
+ return 0;
+}
#endif /* __ARM_FLAT_H__ */
--
1.7.3.4
^ permalink raw reply related [flat|nested] 21+ messages in thread* [PATCH 2/6] arm: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 ` [PATCH 2/6] arm: " Ezequiel Garcia
@ 2012-06-09 8:13 ` Ezequiel Garcia
2012-07-03 18:53 ` Ezequiel Garcia
1 sibling, 0 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 8:13 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-arch, Ezequiel Garcia, Russell King, linux-arm-kernel
This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
There is neither change in functionality, nor extra code generated.
Cc: Russell King <linux@arm.linux.org.uk>
Cc: <linux-arm-kernel@lists.infradead.org>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
arch/arm/include/asm/flat.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/arm/include/asm/flat.h b/arch/arm/include/asm/flat.h
index 59426a4..6ef6cc5 100644
--- a/arch/arm/include/asm/flat.h
+++ b/arch/arm/include/asm/flat.h
@@ -11,6 +11,11 @@
#define flat_get_addr_from_rp(rp, relval, flags, persistent) get_unaligned(rp)
#define flat_put_addr_at_rp(rp, val, relval) put_unaligned(val,rp)
#define flat_get_relocate_addr(rel) (rel)
-#define flat_set_persistent(relval, p) 0
+
+static inline int flat_set_persistent(unsigned long relval,
+ unsigned long *persistent)
+{
+ return 0;
+}
#endif /* __ARM_FLAT_H__ */
--
1.7.3.4
^ permalink raw reply related [flat|nested] 21+ messages in thread* Re: [PATCH 2/6] arm: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 ` [PATCH 2/6] arm: " Ezequiel Garcia
2012-06-09 8:13 ` Ezequiel Garcia
@ 2012-07-03 18:53 ` Ezequiel Garcia
1 sibling, 0 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-07-03 18:53 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-arch, Ezequiel Garcia, Russell King, linux-arm-kernel
Hi,
On Sat, Jun 9, 2012 at 5:13 AM, Ezequiel Garcia <elezegarcia@gmail.com> wrote:
> This patch removes the following warning:
> fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
> There is neither change in functionality, nor extra code generated.
>
> Cc: Russell King <linux@arm.linux.org.uk>
> Cc: <linux-arm-kernel@lists.infradead.org>
> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
> ---
> arch/arm/include/asm/flat.h | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/include/asm/flat.h b/arch/arm/include/asm/flat.h
> index 59426a4..6ef6cc5 100644
> --- a/arch/arm/include/asm/flat.h
> +++ b/arch/arm/include/asm/flat.h
> @@ -11,6 +11,11 @@
> #define flat_get_addr_from_rp(rp, relval, flags, persistent) get_unaligned(rp)
> #define flat_put_addr_at_rp(rp, val, relval) put_unaligned(val,rp)
> #define flat_get_relocate_addr(rel) (rel)
> -#define flat_set_persistent(relval, p) 0
> +
> +static inline int flat_set_persistent(unsigned long relval,
> + unsigned long *persistent)
> +{
> + return 0;
> +}
>
> #endif /* __ARM_FLAT_H__ */
> --
> 1.7.3.4
>
Is there something wrong with this patch preventing it from being applied?
Or did I send it to wrong list?
Thanks,
Ezequiel.
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 3/6] xtensa: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent() Ezequiel Garcia
2012-06-09 8:13 ` Ezequiel Garcia
2012-06-09 8:13 ` [PATCH 2/6] arm: " Ezequiel Garcia
@ 2012-06-09 8:13 ` Ezequiel Garcia
2012-06-09 8:13 ` Ezequiel Garcia
2012-06-09 8:13 ` [PATCH 4/6] microblaze: " Ezequiel Garcia
` (3 subsequent siblings)
6 siblings, 1 reply; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 8:13 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-arch, Ezequiel Garcia, Chris Zankel
This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
There is neither change in functionality, nor extra code generated.
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
arch/xtensa/include/asm/flat.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/xtensa/include/asm/flat.h b/arch/xtensa/include/asm/flat.h
index 94c44ab..2f5c384 100644
--- a/arch/xtensa/include/asm/flat.h
+++ b/arch/xtensa/include/asm/flat.h
@@ -7,6 +7,11 @@
#define flat_get_addr_from_rp(rp, relval, flags, p) get_unaligned(rp)
#define flat_put_addr_at_rp(rp, val, relval ) put_unaligned(val, rp)
#define flat_get_relocate_addr(rel) (rel)
-#define flat_set_persistent(relval, p) 0
+
+static inline int flat_set_persistent(unsigned long relval,
+ unsigned long *persistent)
+{
+ return 0;
+}
#endif /* __ASM_XTENSA_FLAT_H */
--
1.7.3.4
^ permalink raw reply related [flat|nested] 21+ messages in thread* [PATCH 3/6] xtensa: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 ` [PATCH 3/6] xtensa: " Ezequiel Garcia
@ 2012-06-09 8:13 ` Ezequiel Garcia
0 siblings, 0 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 8:13 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-arch, Ezequiel Garcia, Chris Zankel
This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
There is neither change in functionality, nor extra code generated.
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
arch/xtensa/include/asm/flat.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/xtensa/include/asm/flat.h b/arch/xtensa/include/asm/flat.h
index 94c44ab..2f5c384 100644
--- a/arch/xtensa/include/asm/flat.h
+++ b/arch/xtensa/include/asm/flat.h
@@ -7,6 +7,11 @@
#define flat_get_addr_from_rp(rp, relval, flags, p) get_unaligned(rp)
#define flat_put_addr_at_rp(rp, val, relval ) put_unaligned(val, rp)
#define flat_get_relocate_addr(rel) (rel)
-#define flat_set_persistent(relval, p) 0
+
+static inline int flat_set_persistent(unsigned long relval,
+ unsigned long *persistent)
+{
+ return 0;
+}
#endif /* __ASM_XTENSA_FLAT_H */
--
1.7.3.4
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 4/6] microblaze: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent() Ezequiel Garcia
` (2 preceding siblings ...)
2012-06-09 8:13 ` [PATCH 3/6] xtensa: " Ezequiel Garcia
@ 2012-06-09 8:13 ` Ezequiel Garcia
2012-06-09 8:13 ` Ezequiel Garcia
2012-06-09 8:13 ` [PATCH 5/6] m32r: " Ezequiel Garcia
` (2 subsequent siblings)
6 siblings, 1 reply; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 8:13 UTC (permalink / raw)
To: linux-kernel
Cc: linux-arch, Ezequiel Garcia, Michal Simek, microblaze-uclinux
This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
There is neither change in functionality, nor extra code generated.
Cc: Michal Simek <monstr@monstr.eu>
Cc: <microblaze-uclinux@itee.uq.edu.au>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
arch/microblaze/include/asm/flat.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/microblaze/include/asm/flat.h b/arch/microblaze/include/asm/flat.h
index 6847c15..40602c8 100644
--- a/arch/microblaze/include/asm/flat.h
+++ b/arch/microblaze/include/asm/flat.h
@@ -16,7 +16,12 @@
#define flat_argvp_envp_on_stack() 0
#define flat_old_ram_flag(flags) (flags)
#define flat_reloc_valid(reloc, size) ((reloc) <= (size))
-#define flat_set_persistent(relval, p) 0
+
+static inline int flat_set_persistent(unsigned long relval,
+ unsigned long *persistent)
+{
+ return 0;
+}
/*
* Microblaze works a little differently from other arches, because
--
1.7.3.4
^ permalink raw reply related [flat|nested] 21+ messages in thread* [PATCH 4/6] microblaze: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 ` [PATCH 4/6] microblaze: " Ezequiel Garcia
@ 2012-06-09 8:13 ` Ezequiel Garcia
0 siblings, 0 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 8:13 UTC (permalink / raw)
To: linux-kernel
Cc: linux-arch, Ezequiel Garcia, Michal Simek, microblaze-uclinux
This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
There is neither change in functionality, nor extra code generated.
Cc: Michal Simek <monstr@monstr.eu>
Cc: <microblaze-uclinux@itee.uq.edu.au>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
arch/microblaze/include/asm/flat.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/microblaze/include/asm/flat.h b/arch/microblaze/include/asm/flat.h
index 6847c15..40602c8 100644
--- a/arch/microblaze/include/asm/flat.h
+++ b/arch/microblaze/include/asm/flat.h
@@ -16,7 +16,12 @@
#define flat_argvp_envp_on_stack() 0
#define flat_old_ram_flag(flags) (flags)
#define flat_reloc_valid(reloc, size) ((reloc) <= (size))
-#define flat_set_persistent(relval, p) 0
+
+static inline int flat_set_persistent(unsigned long relval,
+ unsigned long *persistent)
+{
+ return 0;
+}
/*
* Microblaze works a little differently from other arches, because
--
1.7.3.4
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 5/6] m32r: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent() Ezequiel Garcia
` (3 preceding siblings ...)
2012-06-09 8:13 ` [PATCH 4/6] microblaze: " Ezequiel Garcia
@ 2012-06-09 8:13 ` Ezequiel Garcia
2012-06-09 8:13 ` Ezequiel Garcia
2012-06-09 8:13 ` [PATCH 6/6] h8300: " Ezequiel Garcia
2012-06-09 9:14 ` [PATCH 1/6] sh: " Paul Mundt
6 siblings, 1 reply; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 8:13 UTC (permalink / raw)
To: linux-kernel
Cc: linux-arch, Ezequiel Garcia, Hirokazu Takata, linux-m32r,
linux-m32r-ja
This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
There is neither change in functionality, nor extra code generated.
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: <linux-m32r@ml.linux-m32r.org>
Cc: <linux-m32r-ja@ml.linux-m32r.org>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
arch/m32r/include/asm/flat.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/m32r/include/asm/flat.h b/arch/m32r/include/asm/flat.h
index 5d711c4..2caf5b8 100644
--- a/arch/m32r/include/asm/flat.h
+++ b/arch/m32r/include/asm/flat.h
@@ -14,7 +14,6 @@
#define flat_argvp_envp_on_stack() 0
#define flat_old_ram_flag(flags) (flags)
-#define flat_set_persistent(relval, p) 0
#define flat_reloc_valid(reloc, size) \
(((reloc) - textlen_for_m32r_lo16_data) <= (size))
#define flat_get_addr_from_rp(rp, relval, flags, persistent) \
@@ -23,6 +22,12 @@
#define flat_put_addr_at_rp(rp, addr, relval) \
m32r_flat_put_addr_at_rp(rp, addr, relval)
+static inline int flat_set_persistent(unsigned long relval,
+ unsigned long *persistent)
+{
+ return 0;
+}
+
/* Convert a relocation entry into an address. */
static inline unsigned long
flat_get_relocate_addr (unsigned long relval)
--
1.7.3.4
^ permalink raw reply related [flat|nested] 21+ messages in thread* [PATCH 5/6] m32r: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 ` [PATCH 5/6] m32r: " Ezequiel Garcia
@ 2012-06-09 8:13 ` Ezequiel Garcia
0 siblings, 0 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 8:13 UTC (permalink / raw)
To: linux-kernel
Cc: linux-arch, Ezequiel Garcia, Hirokazu Takata, linux-m32r,
linux-m32r-ja
This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
There is neither change in functionality, nor extra code generated.
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: <linux-m32r@ml.linux-m32r.org>
Cc: <linux-m32r-ja@ml.linux-m32r.org>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
arch/m32r/include/asm/flat.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/m32r/include/asm/flat.h b/arch/m32r/include/asm/flat.h
index 5d711c4..2caf5b8 100644
--- a/arch/m32r/include/asm/flat.h
+++ b/arch/m32r/include/asm/flat.h
@@ -14,7 +14,6 @@
#define flat_argvp_envp_on_stack() 0
#define flat_old_ram_flag(flags) (flags)
-#define flat_set_persistent(relval, p) 0
#define flat_reloc_valid(reloc, size) \
(((reloc) - textlen_for_m32r_lo16_data) <= (size))
#define flat_get_addr_from_rp(rp, relval, flags, persistent) \
@@ -23,6 +22,12 @@
#define flat_put_addr_at_rp(rp, addr, relval) \
m32r_flat_put_addr_at_rp(rp, addr, relval)
+static inline int flat_set_persistent(unsigned long relval,
+ unsigned long *persistent)
+{
+ return 0;
+}
+
/* Convert a relocation entry into an address. */
static inline unsigned long
flat_get_relocate_addr (unsigned long relval)
--
1.7.3.4
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 6/6] h8300: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent() Ezequiel Garcia
` (4 preceding siblings ...)
2012-06-09 8:13 ` [PATCH 5/6] m32r: " Ezequiel Garcia
@ 2012-06-09 8:13 ` Ezequiel Garcia
2012-06-09 8:13 ` Ezequiel Garcia
2012-06-09 9:14 ` [PATCH 1/6] sh: " Paul Mundt
6 siblings, 1 reply; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 8:13 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-arch, Ezequiel Garcia, Yoshinori Sato
This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
There is neither change in functionality, nor extra code generated.
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
arch/h8300/include/asm/flat.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/h8300/include/asm/flat.h b/arch/h8300/include/asm/flat.h
index bd12b31..24e9c93 100644
--- a/arch/h8300/include/asm/flat.h
+++ b/arch/h8300/include/asm/flat.h
@@ -8,7 +8,12 @@
#define flat_argvp_envp_on_stack() 1
#define flat_old_ram_flag(flags) 1
#define flat_reloc_valid(reloc, size) ((reloc) <= (size))
-#define flat_set_persistent(relval, p) 0
+
+static inline int flat_set_persistent(unsigned long relval,
+ unsigned long *persistent)
+{
+ return 0;
+}
/*
* on the H8 a couple of the relocations have an instruction in the
--
1.7.3.4
^ permalink raw reply related [flat|nested] 21+ messages in thread* [PATCH 6/6] h8300: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 ` [PATCH 6/6] h8300: " Ezequiel Garcia
@ 2012-06-09 8:13 ` Ezequiel Garcia
0 siblings, 0 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 8:13 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-arch, Ezequiel Garcia, Yoshinori Sato
This patch removes the following warning:
fs/binfmt_flat.c:752: warning: unused variable ‘persistent’
There is neither change in functionality, nor extra code generated.
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
---
arch/h8300/include/asm/flat.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/h8300/include/asm/flat.h b/arch/h8300/include/asm/flat.h
index bd12b31..24e9c93 100644
--- a/arch/h8300/include/asm/flat.h
+++ b/arch/h8300/include/asm/flat.h
@@ -8,7 +8,12 @@
#define flat_argvp_envp_on_stack() 1
#define flat_old_ram_flag(flags) 1
#define flat_reloc_valid(reloc, size) ((reloc) <= (size))
-#define flat_set_persistent(relval, p) 0
+
+static inline int flat_set_persistent(unsigned long relval,
+ unsigned long *persistent)
+{
+ return 0;
+}
/*
* on the H8 a couple of the relocations have an instruction in the
--
1.7.3.4
^ permalink raw reply related [flat|nested] 21+ messages in thread
* Re: [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 8:13 [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent() Ezequiel Garcia
` (5 preceding siblings ...)
2012-06-09 8:13 ` [PATCH 6/6] h8300: " Ezequiel Garcia
@ 2012-06-09 9:14 ` Paul Mundt
2012-06-09 12:01 ` Ezequiel Garcia
2012-06-10 21:33 ` Ezequiel Garcia
6 siblings, 2 replies; 21+ messages in thread
From: Paul Mundt @ 2012-06-09 9:14 UTC (permalink / raw)
To: Ezequiel Garcia; +Cc: linux-kernel, linux-arch, linux-sh
On Sat, Jun 09, 2012 at 05:13:26AM -0300, Ezequiel Garcia wrote:
> This patch removes the following warning:
> fs/binfmt_flat.c:752: warning: unused variable ???persistent???
> There is neither change in functionality, nor extra code generated.
>
> Cc: Paul Mundt <lethal@linux-sh.org>
> Cc: <linux-sh@vger.kernel.org>
> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
That's what the cast was for, with what gcc version did that stop
working?
^ permalink raw reply [flat|nested] 21+ messages in thread* Re: [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 9:14 ` [PATCH 1/6] sh: " Paul Mundt
@ 2012-06-09 12:01 ` Ezequiel Garcia
2012-06-09 12:01 ` Ezequiel Garcia
2012-06-10 21:33 ` Ezequiel Garcia
1 sibling, 1 reply; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 12:01 UTC (permalink / raw)
To: Paul Mundt; +Cc: linux-kernel, linux-arch, linux-sh
On Sat, Jun 9, 2012 at 6:14 AM, Paul Mundt <lethal@linux-sh.org> wrote:
> On Sat, Jun 09, 2012 at 05:13:26AM -0300, Ezequiel Garcia wrote:
>> This patch removes the following warning:
>> fs/binfmt_flat.c:752: warning: unused variable ???persistent???
>> There is neither change in functionality, nor extra code generated.
>>
>> Cc: Paul Mundt <lethal@linux-sh.org>
>> Cc: <linux-sh@vger.kernel.org>
>> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
>
> That's what the cast was for, with what gcc version did that stop
> working?
Mmm. You're right. I did this change first for m68k [1] and when that
went ok, I decided it
was best to propagate this fix to every other arch.
Originally, my first try was to propagate your cast:
#define flat_set_persistent(relval, p) ({ (void)p; 0; })
to the other arches, that just do:
#define flat_set_persistent(relval, p) 0
But, then someone pointed out that inlining would produce some (nil) code
and it seemed better.
To conclude: sh was the only one doing it right, and there is no good
reason to change
it, except to make code more homogeneous.
Hope it is clear now,
Ezequiel.
[1] https://lkml.org/lkml/2012/5/21/491
^ permalink raw reply [flat|nested] 21+ messages in thread* Re: [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 12:01 ` Ezequiel Garcia
@ 2012-06-09 12:01 ` Ezequiel Garcia
0 siblings, 0 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-09 12:01 UTC (permalink / raw)
To: Paul Mundt; +Cc: linux-kernel, linux-arch, linux-sh
On Sat, Jun 9, 2012 at 6:14 AM, Paul Mundt <lethal@linux-sh.org> wrote:
> On Sat, Jun 09, 2012 at 05:13:26AM -0300, Ezequiel Garcia wrote:
>> This patch removes the following warning:
>> fs/binfmt_flat.c:752: warning: unused variable ???persistent???
>> There is neither change in functionality, nor extra code generated.
>>
>> Cc: Paul Mundt <lethal@linux-sh.org>
>> Cc: <linux-sh@vger.kernel.org>
>> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
>
> That's what the cast was for, with what gcc version did that stop
> working?
Mmm. You're right. I did this change first for m68k [1] and when that
went ok, I decided it
was best to propagate this fix to every other arch.
Originally, my first try was to propagate your cast:
#define flat_set_persistent(relval, p) ({ (void)p; 0; })
to the other arches, that just do:
#define flat_set_persistent(relval, p) 0
But, then someone pointed out that inlining would produce some (nil) code
and it seemed better.
To conclude: sh was the only one doing it right, and there is no good
reason to change
it, except to make code more homogeneous.
Hope it is clear now,
Ezequiel.
[1] https://lkml.org/lkml/2012/5/21/491
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent()
2012-06-09 9:14 ` [PATCH 1/6] sh: " Paul Mundt
2012-06-09 12:01 ` Ezequiel Garcia
@ 2012-06-10 21:33 ` Ezequiel Garcia
2012-06-10 21:33 ` Ezequiel Garcia
2012-06-11 3:50 ` Paul Mundt
1 sibling, 2 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-10 21:33 UTC (permalink / raw)
To: Paul Mundt; +Cc: linux-kernel, linux-arch, linux-sh
On Sat, Jun 9, 2012 at 6:14 AM, Paul Mundt <lethal@linux-sh.org> wrote:
> On Sat, Jun 09, 2012 at 05:13:26AM -0300, Ezequiel Garcia wrote:
>> This patch removes the following warning:
>> fs/binfmt_flat.c:752: warning: unused variable ???persistent???
>> There is neither change in functionality, nor extra code generated.
>>
>> Cc: Paul Mundt <lethal@linux-sh.org>
>> Cc: <linux-sh@vger.kernel.org>
>> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
>
> That's what the cast was for, with what gcc version did that stop
> working?
I just realized that I should send a v2 (not the whole series just this one)
correcting the commit message, since there wasn't a warning to fix
in first place.
I'll do this soon.
Regards,
Ezequiel.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent()
2012-06-10 21:33 ` Ezequiel Garcia
@ 2012-06-10 21:33 ` Ezequiel Garcia
2012-06-11 3:50 ` Paul Mundt
1 sibling, 0 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-10 21:33 UTC (permalink / raw)
To: Paul Mundt; +Cc: linux-kernel, linux-arch, linux-sh
On Sat, Jun 9, 2012 at 6:14 AM, Paul Mundt <lethal@linux-sh.org> wrote:
> On Sat, Jun 09, 2012 at 05:13:26AM -0300, Ezequiel Garcia wrote:
>> This patch removes the following warning:
>> fs/binfmt_flat.c:752: warning: unused variable ???persistent???
>> There is neither change in functionality, nor extra code generated.
>>
>> Cc: Paul Mundt <lethal@linux-sh.org>
>> Cc: <linux-sh@vger.kernel.org>
>> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
>
> That's what the cast was for, with what gcc version did that stop
> working?
I just realized that I should send a v2 (not the whole series just this one)
correcting the commit message, since there wasn't a warning to fix
in first place.
I'll do this soon.
Regards,
Ezequiel.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent()
2012-06-10 21:33 ` Ezequiel Garcia
2012-06-10 21:33 ` Ezequiel Garcia
@ 2012-06-11 3:50 ` Paul Mundt
2012-06-11 3:50 ` Paul Mundt
2012-06-11 16:29 ` Ezequiel Garcia
1 sibling, 2 replies; 21+ messages in thread
From: Paul Mundt @ 2012-06-11 3:50 UTC (permalink / raw)
To: Ezequiel Garcia; +Cc: linux-kernel, linux-arch, linux-sh
On Sun, Jun 10, 2012 at 06:33:10PM -0300, Ezequiel Garcia wrote:
> On Sat, Jun 9, 2012 at 6:14 AM, Paul Mundt <lethal@linux-sh.org> wrote:
> > On Sat, Jun 09, 2012 at 05:13:26AM -0300, Ezequiel Garcia wrote:
> >> This patch removes the following warning:
> >> fs/binfmt_flat.c:752: warning: unused variable ???persistent???
> >> There is neither change in functionality, nor extra code generated.
> >>
> >> Cc: Paul Mundt <lethal@linux-sh.org>
> >> Cc: <linux-sh@vger.kernel.org>
> >> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
> >
> > That's what the cast was for, with what gcc version did that stop
> > working?
>
> I just realized that I should send a v2 (not the whole series just this one)
> correcting the commit message, since there wasn't a warning to fix
> in first place.
>
> I'll do this soon.
If there's no warning then the point of the patch eludes me. There's
nothing wrong with consistency, but attempting to fix that which isn't
broken in the name of consistency borders a bit too closely on pointless
busy work for my liking.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent()
2012-06-11 3:50 ` Paul Mundt
@ 2012-06-11 3:50 ` Paul Mundt
2012-06-11 16:29 ` Ezequiel Garcia
1 sibling, 0 replies; 21+ messages in thread
From: Paul Mundt @ 2012-06-11 3:50 UTC (permalink / raw)
To: Ezequiel Garcia; +Cc: linux-kernel, linux-arch, linux-sh
On Sun, Jun 10, 2012 at 06:33:10PM -0300, Ezequiel Garcia wrote:
> On Sat, Jun 9, 2012 at 6:14 AM, Paul Mundt <lethal@linux-sh.org> wrote:
> > On Sat, Jun 09, 2012 at 05:13:26AM -0300, Ezequiel Garcia wrote:
> >> This patch removes the following warning:
> >> fs/binfmt_flat.c:752: warning: unused variable ???persistent???
> >> There is neither change in functionality, nor extra code generated.
> >>
> >> Cc: Paul Mundt <lethal@linux-sh.org>
> >> Cc: <linux-sh@vger.kernel.org>
> >> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
> >
> > That's what the cast was for, with what gcc version did that stop
> > working?
>
> I just realized that I should send a v2 (not the whole series just this one)
> correcting the commit message, since there wasn't a warning to fix
> in first place.
>
> I'll do this soon.
If there's no warning then the point of the patch eludes me. There's
nothing wrong with consistency, but attempting to fix that which isn't
broken in the name of consistency borders a bit too closely on pointless
busy work for my liking.
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/6] sh: fix compiler warning by properly inlining flat_set_persistent()
2012-06-11 3:50 ` Paul Mundt
2012-06-11 3:50 ` Paul Mundt
@ 2012-06-11 16:29 ` Ezequiel Garcia
1 sibling, 0 replies; 21+ messages in thread
From: Ezequiel Garcia @ 2012-06-11 16:29 UTC (permalink / raw)
To: Paul Mundt; +Cc: linux-kernel, linux-arch, linux-sh
On Mon, Jun 11, 2012 at 12:50 AM, Paul Mundt <lethal@linux-sh.org> wrote:
> On Sun, Jun 10, 2012 at 06:33:10PM -0300, Ezequiel Garcia wrote:
>> On Sat, Jun 9, 2012 at 6:14 AM, Paul Mundt <lethal@linux-sh.org> wrote:
>> > On Sat, Jun 09, 2012 at 05:13:26AM -0300, Ezequiel Garcia wrote:
>> >> This patch removes the following warning:
>> >> fs/binfmt_flat.c:752: warning: unused variable ???persistent???
>> >> There is neither change in functionality, nor extra code generated.
>> >>
>> >> Cc: Paul Mundt <lethal@linux-sh.org>
>> >> Cc: <linux-sh@vger.kernel.org>
>> >> Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
>> >
>> > That's what the cast was for, with what gcc version did that stop
>> > working?
>>
>> I just realized that I should send a v2 (not the whole series just this one)
>> correcting the commit message, since there wasn't a warning to fix
>> in first place.
>>
>> I'll do this soon.
>
> If there's no warning then the point of the patch eludes me. There's
> nothing wrong with consistency, but attempting to fix that which isn't
> broken in the name of consistency borders a bit too closely on pointless
> busy work for my liking.
If you feel like that, then it's perfectly fine with me.
As I already told you, I was going to propagate your magical define to
the rest of arches,
but the inline looked a bit more readable.
Sorry for the noise and thanks for your time.
Regards,
Ezequiel.
^ permalink raw reply [flat|nested] 21+ messages in thread