Re: [PATCH 1/1] acpi: Fix warning: 'num_cpus' may be used uninitialized in this function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 11 Sep 2010, Jean Sacren wrote:
> warning: 'num_cpus' may be used uninitialized in this function
> 
> Initialize 'num_cpus' variable to zero so that gcc doesn't complain.

acpi_pad_pur() is referenced only once, so it should end up inlined, at
which point gcc really has no excuse to not determine with perfect
confidence whether num_cpus is being used unitialized or not.

Looking at the code, it realy does look like a false positive.

Are you using a recent gcc?

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux