linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 20/21] powerpc/ps3: remove inline marking of EXPORT_SYMBOL functions
       [not found] <1368086241-9357-1-git-send-email-yefremov.denis@gmail.com>
@ 2013-05-09 10:36 ` Denis Efremov
  2013-05-09 11:35   ` Geoff Levand
  2013-05-17 16:05   ` Geert Uytterhoeven
  0 siblings, 2 replies; 4+ messages in thread
From: Denis Efremov @ 2013-05-09 10:36 UTC (permalink / raw)
  To: Geoff Levand
  Cc: ldv-project, trivial, Denis Efremov, linuxppc-dev, linux-kernel

EXPORT_SYMBOL and inline directives are contradictory to each other.
The patch fixes this inconsistency.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Denis Efremov <yefremov.denis@gmail.com>
---
 arch/powerpc/platforms/ps3/spu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/platforms/ps3/spu.c b/arch/powerpc/platforms/ps3/spu.c
index e17fa14..a0bca05 100644
--- a/arch/powerpc/platforms/ps3/spu.c
+++ b/arch/powerpc/platforms/ps3/spu.c
@@ -143,7 +143,7 @@ static void _dump_areas(unsigned int spe_id, unsigned long priv2,
 	pr_debug("%s:%d: shadow:  %lxh\n", func, line, shadow);
 }
 
-inline u64 ps3_get_spe_id(void *arg)
+u64 ps3_get_spe_id(void *arg)
 {
 	return spu_pdata(arg)->spe_id;
 }
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 20/21] powerpc/ps3: remove inline marking of EXPORT_SYMBOL functions
  2013-05-09 10:36 ` [PATCH 20/21] powerpc/ps3: remove inline marking of EXPORT_SYMBOL functions Denis Efremov
@ 2013-05-09 11:35   ` Geoff Levand
  2013-05-17 16:05   ` Geert Uytterhoeven
  1 sibling, 0 replies; 4+ messages in thread
From: Geoff Levand @ 2013-05-09 11:35 UTC (permalink / raw)
  To: Denis Efremov; +Cc: ldv-project, trivial, linuxppc-dev, linux-kernel

On Thu, 2013-05-09 at 14:36 +0400, Denis Efremov wrote:
> EXPORT_SYMBOL and inline directives are contradictory to each other.
> The patch fixes this inconsistency.
> 
> Found by Linux Driver Verification project (linuxtesting.org).
> 
> Signed-off-by: Denis Efremov <yefremov.denis@gmail.com>
> ---
>  arch/powerpc/platforms/ps3/spu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Looks good, thanks.

Acked-by: Geoff Levand <geoff@infradead.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 20/21] powerpc/ps3: remove inline marking of EXPORT_SYMBOL functions
  2013-05-09 10:36 ` [PATCH 20/21] powerpc/ps3: remove inline marking of EXPORT_SYMBOL functions Denis Efremov
  2013-05-09 11:35   ` Geoff Levand
@ 2013-05-17 16:05   ` Geert Uytterhoeven
  2013-05-28 23:14     ` Geoff Levand
  1 sibling, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2013-05-17 16:05 UTC (permalink / raw)
  To: Denis Efremov
  Cc: Geoff Levand, Jiri Kosina, ldv-project,
	linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org

On Thu, May 9, 2013 at 12:36 PM, Denis Efremov <yefremov.denis@gmail.com> wrote:
> EXPORT_SYMBOL and inline directives are contradictory to each other.
> The patch fixes this inconsistency.
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Denis Efremov <yefremov.denis@gmail.com>
> ---
>  arch/powerpc/platforms/ps3/spu.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/platforms/ps3/spu.c b/arch/powerpc/platforms/ps3/spu.c
> index e17fa14..a0bca05 100644
> --- a/arch/powerpc/platforms/ps3/spu.c
> +++ b/arch/powerpc/platforms/ps3/spu.c
> @@ -143,7 +143,7 @@ static void _dump_areas(unsigned int spe_id, unsigned long priv2,
>         pr_debug("%s:%d: shadow:  %lxh\n", func, line, shadow);
>  }
>
> -inline u64 ps3_get_spe_id(void *arg)
> +u64 ps3_get_spe_id(void *arg)
>  {
>         return spu_pdata(arg)->spe_id;
>  }

FYI, this symbol is not used in mainline.

IIRC, it's used for profiling only. Any chance the profile code will
ever make it
in mainline?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 20/21] powerpc/ps3: remove inline marking of EXPORT_SYMBOL functions
  2013-05-17 16:05   ` Geert Uytterhoeven
@ 2013-05-28 23:14     ` Geoff Levand
  0 siblings, 0 replies; 4+ messages in thread
From: Geoff Levand @ 2013-05-28 23:14 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: ldv-project, Jiri Kosina, Denis Efremov,
	linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org

Hi Geert,

On Fri, 2013-05-17 at 18:05 +0200, Geert Uytterhoeven wrote:
> On Thu, May 9, 2013 at 12:36 PM, Denis Efremov <yefremov.denis@gmail.com> wrote:
> > -inline u64 ps3_get_spe_id(void *arg)
> > +u64 ps3_get_spe_id(void *arg)
> >  {
> >         return spu_pdata(arg)->spe_id;
> >  }
> 
> FYI, this symbol is not used in mainline.
> 
> IIRC, it's used for profiling only. Any chance the profile code will
> ever make it
> in mainline?

As I announced (below), I dropped the profiling patches since
ps3-queue-v3.8.

The profiling code does not use ps3_get_spe_id(), so I think we should
remove it.  I'll submit a patch.

-Geoff

-------- Forwarded Message --------
From: Geoff Levand <geoff@infradead.org>
To: cbe-oss-dev@lists.ozlabs.org
Subject: Dropping PS3 oprofile support in v3.8
Date: Wed, 13 Feb 2013 17:30:39 -0800

Hi All,

I'll be dropping the PS3 oprofile patches from my ps3-linux git tree
from linux-3.8.  These are the patches: 

 7f02610 ps3-debugging: Add oprofile test script
 49213b6 powerpc/ps3: PS3 oprofile support
 aee2985 powerpc/ps3: Add ps3 pmu platform routines
 531c3f4 powerpc/ps3: Rearrange order of lpm routines
 9d8a7d3 powerpc/cell: Add pmu platform abstraction
 6865b99 powerpc/cell: Rearrange order of pmu routines

These patches will still be available in the ps3-queue-v3.7 and earlier
branches for anyone who wants them.

-Geoff

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-28 23:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1368086241-9357-1-git-send-email-yefremov.denis@gmail.com>
2013-05-09 10:36 ` [PATCH 20/21] powerpc/ps3: remove inline marking of EXPORT_SYMBOL functions Denis Efremov
2013-05-09 11:35   ` Geoff Levand
2013-05-17 16:05   ` Geert Uytterhoeven
2013-05-28 23:14     ` Geoff Levand

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).