public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] char/vme_scc: adding __init macro to vme_scc.c
@ 2009-08-20 20:42 Peter Huewe
  2009-08-20 20:51 ` Matheos Worku
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Peter Huewe @ 2009-08-20 20:42 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Alan Cox, Geert Uytterhoeven, linux-kernel, kernel-janitors

From: Peter Huewe <peterhuewe@gmx.de>

Trivial patch which adds the __init macro to the module_init 
function and all of its helper functions of char/vme_scc.c

Alan or Geert, please have a look at the small patch and either pull it through 
your tree, or please ack' it so Jiri can pull it through the trivial tree.

linux version 2.6.31-rc6 - linus git tree, Do 20. Aug 22:26:06 CEST 2009

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
diff --git a/drivers/char/vme_scc.c b/drivers/char/vme_scc.c
index 994e1a5..8b24729 100644
--- a/drivers/char/vme_scc.c
+++ b/drivers/char/vme_scc.c
@@ -136,7 +136,7 @@ static const struct tty_port_operations scc_port_ops = {
  * vme_scc_init() and support functions
  *---------------------------------------------------------------------------*/
 
-static int scc_init_drivers(void)
+static int __init scc_init_drivers(void)
 {
 	int error;
 
@@ -172,7 +172,7 @@ static int scc_init_drivers(void)
 /* ports[] array is indexed by line no (i.e. [0] for ttyS0, [1] for ttyS1).
  */
 
-static void scc_init_portstructs(void)
+static void __init scc_init_portstructs(void)
 {
 	struct scc_port *port;
 	int i;
@@ -195,7 +195,7 @@ static void scc_init_portstructs(void)
 
 
 #ifdef CONFIG_MVME147_SCC
-static int mvme147_scc_init(void)
+static int __init mvme147_scc_init(void)
 {
 	struct scc_port *port;
 	int error;
@@ -298,7 +298,7 @@ fail:
 
 
 #ifdef CONFIG_MVME162_SCC
-static int mvme162_scc_init(void)
+static int __init mvme162_scc_init(void)
 {
 	struct scc_port *port;
 	int error;
@@ -404,7 +404,7 @@ fail:
 
 
 #ifdef CONFIG_BVME6000_SCC
-static int bvme6000_scc_init(void)
+static int __init bvme6000_scc_init(void)
 {
 	struct scc_port *port;
 	int error;
@@ -503,7 +503,7 @@ fail_free_b_rx:
 #endif
 
 
-static int vme_scc_init(void)
+static int __init vme_scc_init(void)
 {
 	int res = -ENODEV;

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

* Re: [PATCH] char/vme_scc: adding __init macro to vme_scc.c
  2009-08-20 20:42 [PATCH] char/vme_scc: adding __init macro to vme_scc.c Peter Huewe
@ 2009-08-20 20:51 ` Matheos Worku
  2009-10-09 15:04   ` Jiri Kosina
  2009-08-20 21:01 ` Peter Huewe
  2009-12-23 18:38 ` Geert Uytterhoeven
  2 siblings, 1 reply; 7+ messages in thread
From: Matheos Worku @ 2009-08-20 20:51 UTC (permalink / raw)
  To: Peter Huewe
  Cc: Jiri Kosina, Alan Cox, Geert Uytterhoeven, linux-kernel,
	kernel-janitors

Peter Huewe wrote:
> From: Peter Huewe <peterhuewe@gmx.de>
>
> Trivial patch which adds the __init macro to the module_init 
> function and all of its helper functions of char/vme_scc.c
>
> Alan or Geert, please have a look at the small patch and either pull it through 
> your tree, or please ack' it so Jiri can pull it through the trivial tree.
>
> linux version 2.6.31-rc6 - linus git tree, Do 20. Aug 22:26:06 CEST 2009
>
> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
> ---
> diff --git a/drivers/char/vme_scc.c b/drivers/char/vme_scc.c
> index 994e1a5..8b24729 100644
> --- a/drivers/char/vme_scc.c
> +++ b/drivers/char/vme_scc.c
> @@ -136,7 +136,7 @@ static const struct tty_port_operations scc_port_ops = {
>   * vme_scc_init() and support functions
>   *---------------------------------------------------------------------------*/
>  
> -static int scc_init_drivers(void)
> +static int __init scc_init_drivers(void)
>  {
>  	int error;
>  
> @@ -172,7 +172,7 @@ static int scc_init_drivers(void)
>  /* ports[] array is indexed by line no (i.e. [0] for ttyS0, [1] for ttyS1).
>   */
>  
> -static void scc_init_portstructs(void)
> +static void __init scc_init_portstructs(void)
>  {
>  	struct scc_port *port;
>  	int i;
> @@ -195,7 +195,7 @@ static void scc_init_portstructs(void)
>  
>  
>  #ifdef CONFIG_MVME147_SCC
> -static int mvme147_scc_init(void)
> +static int __init mvme147_scc_init(void)
>  {
>  	struct scc_port *port;
>  	int error;
> @@ -298,7 +298,7 @@ fail:
>  
>  
>  #ifdef CONFIG_MVME162_SCC
> -static int mvme162_scc_init(void)
> +static int __init mvme162_scc_init(void)
>  {
>  	struct scc_port *port;
>  	int error;
> @@ -404,7 +404,7 @@ fail:
>  
>  
>  #ifdef CONFIG_BVME6000_SCC
> -static int bvme6000_scc_init(void)
> +static int __init bvme6000_scc_init(void)
>  {
>  	struct scc_port *port;
>  	int error;
> @@ -503,7 +503,7 @@ fail_free_b_rx:
>  #endif
>  
>  
> -static int vme_scc_init(void)
> +static int __init vme_scc_init(void)
>  {
>  	int res = -ENODEV;
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>   
Then there are issnvram.txt iss.conf etc ... I guess we need to change 
these as well.
How about error messages? I assume they would have ISS  in them.
Regards
Matheos
 

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

* Re: [PATCH] char/vme_scc: adding __init macro to vme_scc.c
  2009-08-20 20:42 [PATCH] char/vme_scc: adding __init macro to vme_scc.c Peter Huewe
  2009-08-20 20:51 ` Matheos Worku
@ 2009-08-20 21:01 ` Peter Huewe
  2009-09-29 12:26   ` Peter Hüwe
  2009-12-23 18:38 ` Geert Uytterhoeven
  2 siblings, 1 reply; 7+ messages in thread
From: Peter Huewe @ 2009-08-20 21:01 UTC (permalink / raw)
  To: Alan Cox; +Cc: Jiri Kosina, Geert Uytterhoeven, linux-kernel, kernel-janitors

Am Donnerstag 20 August 2009 22:42:31 schrieb Peter Huewe:
> From: Peter Huewe <peterhuewe@gmx.de>
>
> Trivial patch which adds the __init macro to the module_init
> function and all of its helper functions of char/vme_scc.c
>
> Alan or Geert, please have a look at the small patch and either pull it
> through your tree, or please ack' it so Jiri can pull it through the
> trivial tree.
>
> linux version 2.6.31-rc6 - linus git tree, Do 20. Aug 22:26:06 CEST 2009
>
> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
> ---
> diff --git a/drivers/char/vme_scc.c b/drivers/char/vme_scc.c
> index 994e1a5..8b24729 100644
> --- a/drivers/char/vme_scc.c
> +++ b/drivers/char/vme_scc.c
> @@ -136,7 +136,7 @@ static const struct tty_port_operations scc_port_ops =
> { * vme_scc_init() and support functions
>  
> *--------------------------------------------------------------------------
>-*/
>
> -static int scc_init_drivers(void)
> +static int __init scc_init_drivers(void)
>  {
>  	int error;
>
> @@ -172,7 +172,7 @@ static int scc_init_drivers(void)
>  /* ports[] array is indexed by line no (i.e. [0] for ttyS0, [1] for
> ttyS1). */
>
> -static void scc_init_portstructs(void)
> +static void __init scc_init_portstructs(void)
>  {
>  	struct scc_port *port;
>  	int i;
> @@ -195,7 +195,7 @@ static void scc_init_portstructs(void)
>
>
>  #ifdef CONFIG_MVME147_SCC
> -static int mvme147_scc_init(void)
> +static int __init mvme147_scc_init(void)
>  {
>  	struct scc_port *port;
>  	int error;
> @@ -298,7 +298,7 @@ fail:
>
>
>  #ifdef CONFIG_MVME162_SCC
> -static int mvme162_scc_init(void)
> +static int __init mvme162_scc_init(void)
>  {
>  	struct scc_port *port;
>  	int error;
> @@ -404,7 +404,7 @@ fail:
>
>
>  #ifdef CONFIG_BVME6000_SCC
> -static int bvme6000_scc_init(void)
> +static int __init bvme6000_scc_init(void)
>  {
>  	struct scc_port *port;
>  	int error;
> @@ -503,7 +503,7 @@ fail_free_b_rx:
>  #endif
>
>
> -static int vme_scc_init(void)
> +static int __init vme_scc_init(void)
>  {
>  	int res = -ENODEV;


Forwarded message to Alan Cox <alan@lxorguk.ukuu.org.uk>, as alan@redhat.com - 
as reported by get_maintainer.pl does not work anymore.

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

* Re: [PATCH] char/vme_scc: adding __init macro to vme_scc.c
  2009-08-20 21:01 ` Peter Huewe
@ 2009-09-29 12:26   ` Peter Hüwe
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Hüwe @ 2009-09-29 12:26 UTC (permalink / raw)
  To: Alan Cox; +Cc: Jiri Kosina, Geert Uytterhoeven, linux-kernel, kernel-janitors

Am Thursday 20 August 2009 23:01:13 schrieb Peter Huewe:
> Am Donnerstag 20 August 2009 22:42:31 schrieb Peter Huewe:
> > From: Peter Huewe <peterhuewe@gmx.de>
> >
> > Trivial patch which adds the __init macro to the module_init
> > function and all of its helper functions of char/vme_scc.c
> >
> > Alan or Geert, please have a look at the small patch and either pull it
> > through your tree, or please ack' it so Jiri can pull it through the
> > trivial tree.
> >
> > linux version 2.6.31-rc6 - linus git tree, Do 20. Aug 22:26:06 CEST 2009
> >
> > Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
> > ---
> > diff --git a/drivers/char/vme_scc.c b/drivers/char/vme_scc.c
> > index 994e1a5..8b24729 100644
> > --- a/drivers/char/vme_scc.c
> > +++ b/drivers/char/vme_scc.c
> > @@ -136,7 +136,7 @@ static const struct tty_port_operations scc_port_ops
> > = { * vme_scc_init() and support functions
> >
> > *------------------------------------------------------------------------
> >-- -*/
> >
> > -static int scc_init_drivers(void)
> > +static int __init scc_init_drivers(void)
> >  {
> >  	int error;
> >
> > @@ -172,7 +172,7 @@ static int scc_init_drivers(void)
> >  /* ports[] array is indexed by line no (i.e. [0] for ttyS0, [1] for
> > ttyS1). */
> >
> > -static void scc_init_portstructs(void)
> > +static void __init scc_init_portstructs(void)
> >  {
> >  	struct scc_port *port;
> >  	int i;
> > @@ -195,7 +195,7 @@ static void scc_init_portstructs(void)
> >
> >
> >  #ifdef CONFIG_MVME147_SCC
> > -static int mvme147_scc_init(void)
> > +static int __init mvme147_scc_init(void)
> >  {
> >  	struct scc_port *port;
> >  	int error;
> > @@ -298,7 +298,7 @@ fail:
> >
> >
> >  #ifdef CONFIG_MVME162_SCC
> > -static int mvme162_scc_init(void)
> > +static int __init mvme162_scc_init(void)
> >  {
> >  	struct scc_port *port;
> >  	int error;
> > @@ -404,7 +404,7 @@ fail:
> >
> >
> >  #ifdef CONFIG_BVME6000_SCC
> > -static int bvme6000_scc_init(void)
> > +static int __init bvme6000_scc_init(void)
> >  {
> >  	struct scc_port *port;
> >  	int error;
> > @@ -503,7 +503,7 @@ fail_free_b_rx:
> >  #endif
> >
> >
> > -static int vme_scc_init(void)
> > +static int __init vme_scc_init(void)
> >  {
> >  	int res = -ENODEV;
>
> Forwarded message to Alan Cox <alan@lxorguk.ukuu.org.uk>, as
> alan@redhat.com - as reported by get_maintainer.pl does not work anymore.


Hmm any updates on this one?

Thanks,
Peter


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

* Re: [PATCH] char/vme_scc: adding __init macro to vme_scc.c
  2009-08-20 20:51 ` Matheos Worku
@ 2009-10-09 15:04   ` Jiri Kosina
  2009-12-22  7:10     ` Peter Huewe
  0 siblings, 1 reply; 7+ messages in thread
From: Jiri Kosina @ 2009-10-09 15:04 UTC (permalink / raw)
  To: Matheos Worku
  Cc: Peter Huewe, Alan Cox, Geert Uytterhoeven, linux-kernel,
	kernel-janitors

On Thu, 20 Aug 2009, Matheos Worku wrote:

> > Alan or Geert, please have a look at the small patch and either pull it
> > through your tree, or please ack' it so Jiri can pull it through the trivial
> > tree.
> > 
> > linux version 2.6.31-rc6 - linus git tree, Do 20. Aug 22:26:06 CEST 2009
> > 
> > Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
> > ---
> > diff --git a/drivers/char/vme_scc.c b/drivers/char/vme_scc.c
> > index 994e1a5..8b24729 100644
> > --- a/drivers/char/vme_scc.c
> > +++ b/drivers/char/vme_scc.c
> > @@ -136,7 +136,7 @@ static const struct tty_port_operations scc_port_ops = {
> >   * vme_scc_init() and support functions
> >   *---------------------------------------------------------------------------*/
> >  -static int scc_init_drivers(void)
> > +static int __init scc_init_drivers(void)
> >  {
> >  	int error;
> >  @@ -172,7 +172,7 @@ static int scc_init_drivers(void)
> >  /* ports[] array is indexed by line no (i.e. [0] for ttyS0, [1] for ttyS1).
> >   */
> >  -static void scc_init_portstructs(void)
> > +static void __init scc_init_portstructs(void)
> >  {
> >  	struct scc_port *port;
> >  	int i;
> > @@ -195,7 +195,7 @@ static void scc_init_portstructs(void)
> >    #ifdef CONFIG_MVME147_SCC
> > -static int mvme147_scc_init(void)
> > +static int __init mvme147_scc_init(void)
> >  {
> >  	struct scc_port *port;
> >  	int error;
> > @@ -298,7 +298,7 @@ fail:
> >    #ifdef CONFIG_MVME162_SCC
> > -static int mvme162_scc_init(void)
> > +static int __init mvme162_scc_init(void)
> >  {
> >  	struct scc_port *port;
> >  	int error;
> > @@ -404,7 +404,7 @@ fail:
> >    #ifdef CONFIG_BVME6000_SCC
> > -static int bvme6000_scc_init(void)
> > +static int __init bvme6000_scc_init(void)
> >  {
> >  	struct scc_port *port;
> >  	int error;
> > @@ -503,7 +503,7 @@ fail_free_b_rx:
> >  #endif
> >   -static int vme_scc_init(void)
> > +static int __init vme_scc_init(void)
> >  {
> >  	int res = -ENODEV;
> Then there are issnvram.txt iss.conf etc ... I guess we need to change 
> these as well. How about error messages? I assume they would have ISS in 
> them.

Confused ... how is this related to the patch?

-- 
Jiri Kosina
SUSE Labs, Novell Inc.

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

* Re: [PATCH] char/vme_scc: adding __init macro to vme_scc.c
  2009-10-09 15:04   ` Jiri Kosina
@ 2009-12-22  7:10     ` Peter Huewe
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Huewe @ 2009-12-22  7:10 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Matheos Worku, Alan Cox, Geert Uytterhoeven, linux-kernel,
	kernel-janitors

Am Freitag 09 Oktober 2009 17:04:22 schrieb Jiri Kosina:
> On Thu, 20 Aug 2009, Matheos Worku wrote:
> > > Alan or Geert, please have a look at the small patch and either pull it
> > > through your tree, or please ack' it so Jiri can pull it through the
> > > trivial tree.
> > >
> > > linux version 2.6.31-rc6 - linus git tree, Do 20. Aug 22:26:06 CEST
> > > 2009
> > >
> > > Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
> > > ---
> > > diff --git a/drivers/char/vme_scc.c b/drivers/char/vme_scc.c
> > > index 994e1a5..8b24729 100644
> > > --- a/drivers/char/vme_scc.c
> > > +++ b/drivers/char/vme_scc.c
> > > @@ -136,7 +136,7 @@ static const struct tty_port_operations
> > > scc_port_ops = { * vme_scc_init() and support functions
> > >  
> > > *----------------------------------------------------------------------
> > >-----*/ -static int scc_init_drivers(void)
> > > +static int __init scc_init_drivers(void)
> > >  {
> > >  	int error;
> > >  @@ -172,7 +172,7 @@ static int scc_init_drivers(void)
> > >  /* ports[] array is indexed by line no (i.e. [0] for ttyS0, [1] for
> > > ttyS1). */
> > >  -static void scc_init_portstructs(void)
> > > +static void __init scc_init_portstructs(void)
> > >  {
> > >  	struct scc_port *port;
> > >  	int i;
> > > @@ -195,7 +195,7 @@ static void scc_init_portstructs(void)
> > >    #ifdef CONFIG_MVME147_SCC
> > > -static int mvme147_scc_init(void)
> > > +static int __init mvme147_scc_init(void)
> > >  {
> > >  	struct scc_port *port;
> > >  	int error;
> > > @@ -298,7 +298,7 @@ fail:
> > >    #ifdef CONFIG_MVME162_SCC
> > > -static int mvme162_scc_init(void)
> > > +static int __init mvme162_scc_init(void)
> > >  {
> > >  	struct scc_port *port;
> > >  	int error;
> > > @@ -404,7 +404,7 @@ fail:
> > >    #ifdef CONFIG_BVME6000_SCC
> > > -static int bvme6000_scc_init(void)
> > > +static int __init bvme6000_scc_init(void)
> > >  {
> > >  	struct scc_port *port;
> > >  	int error;
> > > @@ -503,7 +503,7 @@ fail_free_b_rx:
> > >  #endif
> > >   -static int vme_scc_init(void)
> > > +static int __init vme_scc_init(void)
> > >  {
> > >  	int res = -ENODEV;
> >
> > Then there are issnvram.txt iss.conf etc ... I guess we need to change
> > these as well. How about error messages? I assume they would have ISS in
> > them.
> 
> Confused ... how is this related to the patch?
> 

Hi,

any updates on this one? This patch floats around for quite a while now  
(2009/08/20)

@Matheos: Can you perhaps clearify your remark/objection?


Thanks,
Peter




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

* Re: [PATCH] char/vme_scc: adding __init macro to vme_scc.c
  2009-08-20 20:42 [PATCH] char/vme_scc: adding __init macro to vme_scc.c Peter Huewe
  2009-08-20 20:51 ` Matheos Worku
  2009-08-20 21:01 ` Peter Huewe
@ 2009-12-23 18:38 ` Geert Uytterhoeven
  2 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2009-12-23 18:38 UTC (permalink / raw)
  To: Peter Huewe; +Cc: Jiri Kosina, linux-kernel, kernel-janitors, Alan Cox

On Thu, Aug 20, 2009 at 21:42, Peter Huewe <PeterHuewe@gmx.de> wrote:
> From: Peter Huewe <peterhuewe@gmx.de>
>
> Trivial patch which adds the __init macro to the module_init
> function and all of its helper functions of char/vme_scc.c
>
> Alan or Geert, please have a look at the small patch and either pull it through
> your tree, or please ack' it so Jiri can pull it through the trivial tree.

Thanks, applied.

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] 7+ messages in thread

end of thread, other threads:[~2009-12-23 18:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20 20:42 [PATCH] char/vme_scc: adding __init macro to vme_scc.c Peter Huewe
2009-08-20 20:51 ` Matheos Worku
2009-10-09 15:04   ` Jiri Kosina
2009-12-22  7:10     ` Peter Huewe
2009-08-20 21:01 ` Peter Huewe
2009-09-29 12:26   ` Peter Hüwe
2009-12-23 18:38 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox