Skip to contentSkip to conversation

Warnings reported while building the vanilla kernel on powerpc

DISCUSSION Preeti U Murthy 2 participants 2 messages Oct 27, 2014 – Oct 28, 2014

lore
Share & tools
lore
#0 lore 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

#1 lore raw
Quoted 6 lines · Preeti U Murthy

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