Re: What happened to pci_save_state's second parameter?

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

 



On Thu, Jan 13, 2005 at 04:50:41PM -0600, Timur Tabi wrote:
> I downloaded the 2.6.10 kernel and tried to compile my driver with it, 
> and sure enough, it broke.  Here's the message I got:
> 
> error: too many arguments to function `pci_save_state'
> 
> Looking at pci.h, I see the definition of pci_save_state() is missing 
> its second parameter.
> 
> I did a google search about this, and as usual, I found no discussion on 
> the planning of this change or any documentation to explain it.  So I 
> have to ask here.  Can anyone explain why the second parameter was 
> removed, and what I should do about it?

Just delete it.  It wasn't needed and a lot of people got it wrong.

If you look at the changelog it is documented there.

> Oh, and before you gell me to look in the Documentation directory, I 
> already did that.  Documentation/power/pci.txt has not been updated - it 
> still shows the two-parameter version of pci_save_state()!!!!

Patches always welcome to update documetation.  That's why kerneldoc is
the preferred way to write kernel api docs.

thanks,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux