Skip to contentSkip to conversation

more iwlwifi merge fallout?

DISCUSSION Johannes Berg 2 participants 3 messages Jan 18, 2008

lore
Share & tools
lore
#0 lore raw

Declaring

inline int iwl3945_eeprom_acquire_semaphore(...)

is a bit weird for a function that is actually declared in a header file and not static.

johannes

#1 lore raw
Quoted 6 lines · Johannes Berg

Declaring

inline int iwl3945_eeprom_acquire_semaphore(...)

is a bit weird for a function that is actually declared in a header file and not static.

This is not merge fallout, but has been this way since the driver was merged the first time. I do not know why it was done this way and I am not familiar enough with gcc optimization to know the implications of this (or what the better way should be). What do you suggest?

Thanks

Reinette

#2 lore raw
Quoted 3 lines

This is not merge fallout, but has been this way since the driver was merged the first time.

Hm ok I thought it might have been a "static inline" in the header file and gotten split up with the driver split.

Quoted 3 lines

I do not know why it was done this way and I am
not familiar enough with gcc optimization to know the implications of this (or what the better way should be). What do you suggest?

Well I think simply removing the inline will cause the compiler to do the exact same thing as it does now and look less strange.

johannes