linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warnings after merge of the driver-core.current tree
@ 2010-05-03  0:01 Stephen Rothwell
  2010-05-03  2:59 ` Greg KH
  2010-05-03 11:19 ` Winkler, Tomas
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Rothwell @ 2010-05-03  0:01 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-next, linux-kernel, David Woodhouse, Tomas Winkler

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

Hi Greg,

After merging the driver-core.current tree, today's linux-next build (powerpc
ppc64_defconfig and x86_64 allmodconfig) produced these warning:

drivers/pcmcia/ds.c: In function 'pcmcia_load_firmware':
drivers/pcmcia/ds.c:761: warning: passing argument 1 of 'release_firmware' discards qualifiers from pointer target type
include/linux/firmware.h:46: note: expected 'struct firmware *' but argument is of type 'const struct firmware *'
drivers/net/cxgb3/cxgb3_main.c: In function 't3_get_edc_fw':
drivers/net/cxgb3/cxgb3_main.c:1084: warning: passing argument 1 of 'release_firmware' discards qualifiers from pointer target type
include/linux/firmware.h:46: note: expected 'struct firmware *' but argument is of type 'const struct firmware *'

and *lots* more similar warnings ...

Caused by commit d5ae47f7d90f94a15e668f389c12211a11798b6f
("firmware_class: fix memory leak - free allocated pages").  This patch
was modified from an earlier version that produced different (though many
fewer) warnings.

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

* Re: linux-next: build warnings after merge of the driver-core.current tree
  2010-05-03  0:01 linux-next: build warnings after merge of the driver-core.current tree Stephen Rothwell
@ 2010-05-03  2:59 ` Greg KH
  2010-05-03 11:19 ` Winkler, Tomas
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2010-05-03  2:59 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel, David Woodhouse, Tomas Winkler

On Mon, May 03, 2010 at 10:01:37AM +1000, Stephen Rothwell wrote:
> Hi Greg,
> 
> After merging the driver-core.current tree, today's linux-next build (powerpc
> ppc64_defconfig and x86_64 allmodconfig) produced these warning:
> 
> drivers/pcmcia/ds.c: In function 'pcmcia_load_firmware':
> drivers/pcmcia/ds.c:761: warning: passing argument 1 of 'release_firmware' discards qualifiers from pointer target type
> include/linux/firmware.h:46: note: expected 'struct firmware *' but argument is of type 'const struct firmware *'
> drivers/net/cxgb3/cxgb3_main.c: In function 't3_get_edc_fw':
> drivers/net/cxgb3/cxgb3_main.c:1084: warning: passing argument 1 of 'release_firmware' discards qualifiers from pointer target type
> include/linux/firmware.h:46: note: expected 'struct firmware *' but argument is of type 'const struct firmware *'
> 
> and *lots* more similar warnings ...
> 
> Caused by commit d5ae47f7d90f94a15e668f389c12211a11798b6f
> ("firmware_class: fix memory leak - free allocated pages").  This patch
> was modified from an earlier version that produced different (though many
> fewer) warnings.

Yeah, the people responsible were been notified last Friday, and they
sent me a patch today, hopefully it fixes the issue.  I'll test it out
tomorrow and merge it if it does.

thanks,

greg k-h

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

* RE: linux-next: build warnings after merge of the driver-core.current tree
  2010-05-03  0:01 linux-next: build warnings after merge of the driver-core.current tree Stephen Rothwell
  2010-05-03  2:59 ` Greg KH
@ 2010-05-03 11:19 ` Winkler, Tomas
  1 sibling, 0 replies; 3+ messages in thread
From: Winkler, Tomas @ 2010-05-03 11:19 UTC (permalink / raw)
  To: Stephen Rothwell, Greg KH
  Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
	David Woodhouse



> -----Original Message-----
> From: Stephen Rothwell [mailto:sfr@canb.auug.org.au]
> Sent: Monday, May 03, 2010 3:02 AM
> To: Greg KH
> Cc: linux-next@vger.kernel.org; linux-kernel@vger.kernel.org; David
> Woodhouse; Winkler, Tomas
> Subject: linux-next: build warnings after merge of the driver-core.current
> tree
> 
> Hi Greg,
> 
> After merging the driver-core.current tree, today's linux-next build
> (powerpc ppc64_defconfig and x86_64 allmodconfig) produced these warning:
>
> drivers/pcmcia/ds.c: In function 'pcmcia_load_firmware':
> drivers/pcmcia/ds.c:761: warning: passing argument 1 of 'release_firmware'
> discards qualifiers from pointer target type
> include/linux/firmware.h:46: note: expected 'struct firmware *' but argument
> is of type 'const struct firmware *'
> drivers/net/cxgb3/cxgb3_main.c: In function 't3_get_edc_fw':
> drivers/net/cxgb3/cxgb3_main.c:1084: warning: passing argument 1 of
> 'release_firmware' discards qualifiers from pointer target type
> include/linux/firmware.h:46: note: expected 'struct firmware *' but argument
> is of type 'const struct firmware *'
> 
> and *lots* more similar warnings ...
> 
> Caused by commit d5ae47f7d90f94a15e668f389c12211a11798b6f
> ("firmware_class: fix memory leak - free allocated pages").  This patch was
> modified from an earlier version that produced different (though many
> fewer) warnings.

Yesterday I posted the fixed version (v3) of this patch http://marc.info/?l=linux-kernel&m=127278850518085&w=2
Thanks
Tomas

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


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

end of thread, other threads:[~2010-05-03 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-03  0:01 linux-next: build warnings after merge of the driver-core.current tree Stephen Rothwell
2010-05-03  2:59 ` Greg KH
2010-05-03 11:19 ` Winkler, Tomas

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