linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Warnings reported while building the vanilla kernel on powerpc
@ 2014-10-27 13:33 Preeti U Murthy
  2014-10-28  1:35 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: Preeti U Murthy @ 2014-10-27 13:33 UTC (permalink / raw)
  To: linuxppc-dev@lists.ozlabs.org

Hello,

I noticed the following warnings while building the upstream kernel as of yesterday.
The commit I checked out at was cac7f2429872d3 : Linux 3.18-rc2.

Please verify if any of these can be fixed.

a. lib/cpumask.c: In function ‘cpumask_set_cpu_local_first’:
   lib/cpumask.c:194:25: warning: the address of ‘cpu_all_bits’ will always evaluate as ‘true’ [-Waddress]
  if (numa_node == -1 || !cpumask_of_node(numa_node)) {


b. drivers/infiniband/hw/ehca/ehca_mrmw.c: In function ‘ehca_set_pagebuf’:
   drivers/infiniband/hw/ehca/ehca_mrmw.c:1907:6: warning: ‘prev_pgaddr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (pgaddr - PAGE_SIZE != *prev_pgaddr) {
      ^
c. drivers/infiniband/hw/ehca/ehca_mrmw.c:1924:14: note: ‘prev_pgaddr’ was declared here
   u64 pgaddr, prev_pgaddr;
              ^
d. drivers/infiniband/hw/ehca/ehca_mrmw.c: In function ‘ehca_reg_mr’:
   drivers/infiniband/hw/ehca/ehca_mrmw.c:2430:5: warning: ‘hret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (hret == H_SUCCESS)
     ^
e. drivers/infiniband/hw/ehca/ehca_mrmw.c:2413:6: note: ‘hret’ was declared here
   u64 hret, *kpage;

f. drivers/net/ethernet/broadcom/tg3.c: In function ‘tg3_set_eeprom’:
    drivers/net/ethernet/broadcom/tg3.c:12059:10: warning: ‘start’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    memcpy(buf, &start, 4);

g.  drivers/net/ethernet/ibm/ehea/ehea_main.c:106:28: warning: ‘ehea_module_device_table’ defined but not used [-Wunused-variable]
    static struct of_device_id ehea_module_device_table[] = {


Thanks

Regards
Preeti U Murthy

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

* Re: Warnings reported while building the vanilla kernel on powerpc
  2014-10-27 13:33 Warnings reported while building the vanilla kernel on powerpc Preeti U Murthy
@ 2014-10-28  1:35 ` Michael Ellerman
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2014-10-28  1:35 UTC (permalink / raw)
  To: Preeti U Murthy; +Cc: linuxppc-dev@lists.ozlabs.org

On Mon, 2014-10-27 at 19:03 +0530, Preeti U Murthy wrote:
> Hello,
> 
> I noticed the following warnings while building the upstream kernel as of yesterday.
> The commit I checked out at was cac7f2429872d3 : Linux 3.18-rc2.
> 
> Please verify if any of these can be fixed.

Patches welcome.

cheers

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

end of thread, other threads:[~2014-10-28  1:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-27 13:33 Warnings reported while building the vanilla kernel on powerpc Preeti U Murthy
2014-10-28  1:35 ` Michael Ellerman

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