All of lore.kernel.org
 help / color / mirror / Atom feed
From: Preeti U Murthy <preeti@linux.vnet.ibm.com>
To: "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Warnings reported while building the vanilla kernel on powerpc
Date: Mon, 27 Oct 2014 19:03:10 +0530	[thread overview]
Message-ID: <544E4996.3050403@linux.vnet.ibm.com> (raw)

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

             reply	other threads:[~2014-10-27 13:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-27 13:33 Preeti U Murthy [this message]
2014-10-28  1:35 ` Warnings reported while building the vanilla kernel on powerpc Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=544E4996.3050403@linux.vnet.ibm.com \
    --to=preeti@linux.vnet.ibm.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.