Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | Date | Fri, 2 Apr 2010 14:05:47 +0200 (CEST) | From | Stefan Richter <> | Subject | [PATCH 2/3] firewire: ohci: replace empty macros by empty inline functions |
| |
so that call parameter type checking is available in #ifndef'd builds.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> --- drivers/firewire/ohci.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Index: b/drivers/firewire/ohci.c =================================================================== --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c @@ -438,9 +438,9 @@ static void log_ar_at_event(char dir, in #else -#define log_irqs(evt) -#define log_selfids(node_id, generation, self_id_count, sid) -#define log_ar_at_event(dir, speed, header, evt) +static inline void log_irqs(u32 evt) {} +static inline void log_selfids(int node_id, int generation, int self_id_count, u32 *s) {} +static inline void log_ar_at_event(char dir, int speed, u32 *header, int evt) {} #endif /* CONFIG_FIREWIRE_OHCI_DEBUG */ @@ -2323,8 +2323,8 @@ static void pmac_ohci_off(struct pci_dev } } #else -#define pmac_ohci_on(dev) -#define pmac_ohci_off(dev) +static inline void pmac_ohci_on(struct pci_dev *dev) {} +static inline void pmac_ohci_off(struct pci_dev *dev) {} #endif /* CONFIG_PPC_PMAC */ static int __devinit pci_probe(struct pci_dev *dev, -- Stefan Richter -=====-==-=- -=-- ---=- http://arcgraph.de/sr/
| ![\](/images/icornerr.gif) |