linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: tty tree build warning
@ 2009-08-05  7:16 Stephen Rothwell
  2009-08-05 13:29 ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Rothwell @ 2009-08-05  7:16 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-next, linux-kernel, Alan Cox

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

Hi Greg,

Today's linux-next build (powerpc allyesconfig) produced this warning:

drivers/char/cyclades.c:3112: warning: initialization from incompatible pointer type
drivers/char/cyclades.c:3118: warning: initialization from incompatible pointer type

Introduced by commit 46075a6e64b5e4e96079ea273781a1ba366d8244
("tty-cyclades-port-close").

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: linux-next: tty tree build warning
  2009-08-05  7:16 linux-next: tty tree build warning Stephen Rothwell
@ 2009-08-05 13:29 ` Greg KH
  2009-08-05 16:59   ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2009-08-05 13:29 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Alan Cox

On Wed, Aug 05, 2009 at 05:16:06PM +1000, Stephen Rothwell wrote:
> Hi Greg,
> 
> Today's linux-next build (powerpc allyesconfig) produced this warning:
> 
> drivers/char/cyclades.c:3112: warning: initialization from incompatible pointer type
> drivers/char/cyclades.c:3118: warning: initialization from incompatible pointer type
> 
> Introduced by commit 46075a6e64b5e4e96079ea273781a1ba366d8244
> ("tty-cyclades-port-close").

Odd, I haven't changed anything there.  I'll check to see what happened.

thanks,

greg k-h

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

* Re: linux-next: tty tree build warning
  2009-08-05 13:29 ` Greg KH
@ 2009-08-05 16:59   ` Greg KH
  2009-08-06  0:12     ` Stephen Rothwell
  0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2009-08-05 16:59 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Alan Cox

On Wed, Aug 05, 2009 at 06:29:14AM -0700, Greg KH wrote:
> On Wed, Aug 05, 2009 at 05:16:06PM +1000, Stephen Rothwell wrote:
> > Hi Greg,
> > 
> > Today's linux-next build (powerpc allyesconfig) produced this warning:
> > 
> > drivers/char/cyclades.c:3112: warning: initialization from incompatible pointer type
> > drivers/char/cyclades.c:3118: warning: initialization from incompatible pointer type
> > 
> > Introduced by commit 46075a6e64b5e4e96079ea273781a1ba366d8244
> > ("tty-cyclades-port-close").
> 
> Odd, I haven't changed anything there.  I'll check to see what happened.

I've now fixed this and pushed out the changes.

thanks,

greg k-h

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

* Re: linux-next: tty tree build warning
  2009-08-05 16:59   ` Greg KH
@ 2009-08-06  0:12     ` Stephen Rothwell
  0 siblings, 0 replies; 10+ messages in thread
From: Stephen Rothwell @ 2009-08-06  0:12 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-next, linux-kernel, Alan Cox

[-- Attachment #1: Type: text/plain, Size: 257 bytes --]

Hi Greg,

On Wed, 5 Aug 2009 09:59:31 -0700 Greg KH <greg@kroah.com> wrote:
>
> I've now fixed this and pushed out the changes.

OK, thanks.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: linux-next: tty tree build warning
  2010-01-23 14:43       ` Jiri Slaby
@ 2010-01-24  3:42         ` Rakib Mullick
  0 siblings, 0 replies; 10+ messages in thread
From: Rakib Mullick @ 2010-01-24  3:42 UTC (permalink / raw)
  To: Jiri Slaby
  Cc: Greg KH, Stephen Rothwell, linux-next, linux-kernel, Michael H. Warfield

On 1/23/10, Jiri Slaby <jirislaby@gmail.com> wrote:
> On 01/23/2010 01:53 PM, Rakib Mullick wrote:
>
> Why not just param_array(int) instead of whole parsing in ip2_setup?
>
Parameter is passed as strings and current ip2_setup deals with strings.
And using param_string() we can do it at minimum change. Just trying to make
sure that if ip2 parameter is passed at module load then we are
calling ip2_setup.

thanks,
>  --
>
> js
>

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

* Re: linux-next: tty tree build warning
  2010-01-23 12:53     ` Rakib Mullick
@ 2010-01-23 14:43       ` Jiri Slaby
  2010-01-24  3:42         ` Rakib Mullick
  0 siblings, 1 reply; 10+ messages in thread
From: Jiri Slaby @ 2010-01-23 14:43 UTC (permalink / raw)
  To: Rakib Mullick
  Cc: Greg KH, Stephen Rothwell, linux-next, linux-kernel, Michael H. Warfield

On 01/23/2010 01:53 PM, Rakib Mullick wrote:
> @@ -309,6 +313,8 @@ module_param_array(io, int, NULL, 0);
>  MODULE_PARM_DESC(io, "I/O ports for IntelliPort Cards");
>  module_param(poll_only, bool, 0);
>  MODULE_PARM_DESC(poll_only, "Do not use card interrupts");
> +module_param_string(ip2, cmd, MAX_CMD_STR, 0);
> +MODULE_PARM_DESC(ip2, "Contains module parameter passed with 'ip2='");

Why not just param_array(int) instead of whole parsing in ip2_setup?

-- 
js

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

* Re: linux-next: tty tree build warning
  2010-01-21 23:03   ` Greg KH
@ 2010-01-23 12:53     ` Rakib Mullick
  2010-01-23 14:43       ` Jiri Slaby
  0 siblings, 1 reply; 10+ messages in thread
From: Rakib Mullick @ 2010-01-23 12:53 UTC (permalink / raw)
  To: Greg KH; +Cc: Stephen Rothwell, linux-next, linux-kernel, Michael H. Warfield

On 1/22/10, Greg KH <greg@kroah.com> wrote:
> On Thu, Jan 21, 2010 at 10:22:19AM +0600, Rakib Mullick wrote:
>  > On 1/20/10, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> That sounds right.  Care to send a patch?
>
Please - checkout the following one - is it okay or not. Notice if it
requires any adjustment.

 Patch is created using 2.6.33-rc5. Needs to apply the patch
named 'ip2-remove-ifdef-module-from-ip2main.c.patch'
(http://lkml.org/lkml/2009/12/1/90)
currently in gregkh-2.6 tree to compile cleanly.

---

 char,ip2: Add module parameter.

Stephen Rothwell found the following warning (x86_64 allmodconfig):

drivers/char/ip2/ip2main.c:511: warning: 'ip2_setup' defined but not used

This patch adds module parameter to fix the above warning.


Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
---

--- linus/drivers/char/ip2/ip2main.c	2010-01-16 13:36:44.000000000 +0600
+++ rakib/drivers/char/ip2/ip2main.c	2010-01-23 11:23:55.000000000 +0600
@@ -208,6 +208,7 @@ static int DumpFifoBuffer( char __user *

 static void ip2_init_board(int, const struct firmware *);
 static unsigned short find_eisa_board(int);
+static int ip2_setup(char *str);

 /***************/
 /* Static Data */
@@ -285,7 +286,10 @@ MODULE_AUTHOR("Doug McNash");
 MODULE_DESCRIPTION("Computone IntelliPort Plus Driver");
 MODULE_LICENSE("GPL");

+#define	MAX_CMD_STR	50
+
 static int poll_only;
+static char cmd[MAX_CMD_STR];

 static int Eisa_irq;
 static int Eisa_slot;
@@ -309,6 +313,8 @@ module_param_array(io, int, NULL, 0);
 MODULE_PARM_DESC(io, "I/O ports for IntelliPort Cards");
 module_param(poll_only, bool, 0);
 MODULE_PARM_DESC(poll_only, "Do not use card interrupts");
+module_param_string(ip2, cmd, MAX_CMD_STR, 0);
+MODULE_PARM_DESC(ip2, "Contains module parameter passed with 'ip2='");

 /* for sysfs class support */
 static struct class *ip2_class;
@@ -541,12 +547,19 @@ static int __init ip2_loadmain(void)
 	int rc = -1;
 	struct pci_dev *pdev = NULL;
 	const struct firmware *fw = NULL;
+	char *str;
+
+	str = cmd;

 	if (poll_only) {
 		/* Hard lock the interrupts to zero */
 		irq[0] = irq[1] = irq[2] = irq[3] = poll_only = 0;
 	}

+	/* Check module parameter with 'ip2=' has been passed or not */
+	if (!poll_only && (!strncmp(str, "ip2=", 4)))
+		ip2_setup(str);
+
 	ip2trace(ITRC_NO_PORT, ITRC_INIT, ITRC_ENTER, 0);

 	/* process command line arguments to modprobe or

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

* Re: linux-next: tty tree build warning
  2010-01-21  4:22 ` Rakib Mullick
@ 2010-01-21 23:03   ` Greg KH
  2010-01-23 12:53     ` Rakib Mullick
  0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2010-01-21 23:03 UTC (permalink / raw)
  To: Rakib Mullick; +Cc: Stephen Rothwell, linux-next, linux-kernel

On Thu, Jan 21, 2010 at 10:22:19AM +0600, Rakib Mullick wrote:
> On 1/20/10, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> > Hi Greg,
> >
> >  Today's linux-next build (x86_64 allmodconfig) produced this warning:
> >
> >  drivers/char/ip2/ip2main.c:511: warning: 'ip2_setup' defined but not used
> >
> Can we use module parameters? A check could be made if parameter hasn't
> passed then we'll just return.

That sounds right.  Care to send a patch?

thanks,

greg k-h

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

* Re: linux-next: tty tree build warning
  2010-01-20  6:19 Stephen Rothwell
@ 2010-01-21  4:22 ` Rakib Mullick
  2010-01-21 23:03   ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Rakib Mullick @ 2010-01-21  4:22 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Greg KH, linux-next, linux-kernel

On 1/20/10, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Greg,
>
>  Today's linux-next build (x86_64 allmodconfig) produced this warning:
>
>  drivers/char/ip2/ip2main.c:511: warning: 'ip2_setup' defined but not used
>
Can we use module parameters? A check could be made if parameter hasn't
passed then we'll just return.

>  Introduced by commit 3f042287578018e0dc1c38b6f684767e657db62f ("ip2:
>  remove #ifdef MODULE from ip2main.c").
>
>  __setup() is a noop if CONFIG_MODULE is defined.
>
> --
>  Cheers,
>  Stephen Rothwell                    sfr@canb.auug.org.au
>  http://www.canb.auug.org.au/~sfr/
>
>

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

* linux-next: tty tree build warning
@ 2010-01-20  6:19 Stephen Rothwell
  2010-01-21  4:22 ` Rakib Mullick
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Rothwell @ 2010-01-20  6:19 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-next, linux-kernel, Rakib Mullick

[-- Attachment #1: Type: text/plain, Size: 431 bytes --]

Hi Greg,

Today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/char/ip2/ip2main.c:511: warning: 'ip2_setup' defined but not used

Introduced by commit 3f042287578018e0dc1c38b6f684767e657db62f ("ip2:
remove #ifdef MODULE from ip2main.c").

__setup() is a noop if CONFIG_MODULE is defined.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2010-01-24  3:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-05  7:16 linux-next: tty tree build warning Stephen Rothwell
2009-08-05 13:29 ` Greg KH
2009-08-05 16:59   ` Greg KH
2009-08-06  0:12     ` Stephen Rothwell
2010-01-20  6:19 Stephen Rothwell
2010-01-21  4:22 ` Rakib Mullick
2010-01-21 23:03   ` Greg KH
2010-01-23 12:53     ` Rakib Mullick
2010-01-23 14:43       ` Jiri Slaby
2010-01-24  3:42         ` Rakib Mullick

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