diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 18:43:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 18:43:46 -0400 |
commit | 9c8550ee25e26d14a8f0fe1b761a676e23fe3cf0 (patch) | |
tree | d2ce6559de004abeac43f5607e219b396c5755b7 /include/linux/pci.h | |
parent | ac5b8b6f22118620cd1133d9943b1f31dc40a913 (diff) |
Remove "must_check" attributes in PCI-land
Don't just irritate all other kernel developers. Fix the users first,
then you can re-introduce the must-check infrastructure to avoid new
cases creeping in.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index e5e24e13a114..7349058ed778 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -380,16 +380,16 @@ static inline int pci_write_config_dword(struct pci_dev *dev, int where, u32 val | |||
380 | return pci_bus_write_config_dword (dev->bus, dev->devfn, where, val); | 380 | return pci_bus_write_config_dword (dev->bus, dev->devfn, where, val); |
381 | } | 381 | } |
382 | 382 | ||
383 | int __must_check pci_enable_device(struct pci_dev *dev); | 383 | int pci_enable_device(struct pci_dev *dev); |
384 | int __must_check pci_enable_device_bars(struct pci_dev *dev, int mask); | 384 | int pci_enable_device_bars(struct pci_dev *dev, int mask); |
385 | void pci_disable_device(struct pci_dev *dev); | 385 | void pci_disable_device(struct pci_dev *dev); |
386 | void pci_set_master(struct pci_dev *dev); | 386 | void pci_set_master(struct pci_dev *dev); |
387 | #define HAVE_PCI_SET_MWI | 387 | #define HAVE_PCI_SET_MWI |
388 | int __must_check pci_set_mwi(struct pci_dev *dev); | 388 | int pci_set_mwi(struct pci_dev *dev); |
389 | void pci_clear_mwi(struct pci_dev *dev); | 389 | void pci_clear_mwi(struct pci_dev *dev); |
390 | void pci_intx(struct pci_dev *dev, int enable); | 390 | void pci_intx(struct pci_dev *dev, int enable); |
391 | int __must_check pci_set_dma_mask(struct pci_dev *dev, u64 mask); | 391 | int pci_set_dma_mask(struct pci_dev *dev, u64 mask); |
392 | int __must_check pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask); | 392 | int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask); |
393 | void pci_update_resource(struct pci_dev *dev, struct resource *res, int resno); | 393 | void pci_update_resource(struct pci_dev *dev, struct resource *res, int resno); |
394 | int pci_assign_resource(struct pci_dev *dev, int i); | 394 | int pci_assign_resource(struct pci_dev *dev, int i); |
395 | void pci_restore_bars(struct pci_dev *dev); | 395 | void pci_restore_bars(struct pci_dev *dev); |
@@ -403,9 +403,9 @@ void pci_remove_rom(struct pci_dev *pdev); | |||
403 | /* Power management related routines */ | 403 | /* Power management related routines */ |
404 | int pci_save_state(struct pci_dev *dev); | 404 | int pci_save_state(struct pci_dev *dev); |
405 | int pci_restore_state(struct pci_dev *dev); | 405 | int pci_restore_state(struct pci_dev *dev); |
406 | int __must_check pci_set_power_state(struct pci_dev *dev, pci_power_t state); | 406 | int pci_set_power_state(struct pci_dev *dev, pci_power_t state); |
407 | pci_power_t __must_check pci_choose_state(struct pci_dev *dev, pm_message_t state); | 407 | pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state); |
408 | int __must_check pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable); | 408 | int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable); |
409 | 409 | ||
410 | /* Helper functions for low-level code (drivers/pci/setup-[bus,res].c) */ | 410 | /* Helper functions for low-level code (drivers/pci/setup-[bus,res].c) */ |
411 | void pci_bus_assign_resources(struct pci_bus *bus); | 411 | void pci_bus_assign_resources(struct pci_bus *bus); |