Skip to content

Commit 0844555

Browse files
Arend van Spriellinvjw
authored andcommitted
bcma: use static keyword for inline function declaration in bcma.h
Just scratching an itch here, but it makes more sense to use the static keyword if you think about how the compiler treats inline functions. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Alwin Beukers <alwin@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 9d08f10 commit 0844555

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

‎include/linux/bcma/bcma.h‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -205,50 +205,51 @@ struct bcma_bus {
205205
struct ssb_sprom sprom;
206206
};
207207

208-
extern inline u32 bcma_read8(struct bcma_device *core, u16 offset)
208+
static inline u32 bcma_read8(struct bcma_device *core, u16 offset)
209209
{
210210
return core->bus->ops->read8(core, offset);
211211
}
212-
extern inline u32 bcma_read16(struct bcma_device *core, u16 offset)
212+
static inline u32 bcma_read16(struct bcma_device *core, u16 offset)
213213
{
214214
return core->bus->ops->read16(core, offset);
215215
}
216-
extern inline u32 bcma_read32(struct bcma_device *core, u16 offset)
216+
static inline u32 bcma_read32(struct bcma_device *core, u16 offset)
217217
{
218218
return core->bus->ops->read32(core, offset);
219219
}
220-
extern inline
220+
static inline
221221
void bcma_write8(struct bcma_device *core, u16 offset, u32 value)
222222
{
223223
core->bus->ops->write8(core, offset, value);
224224
}
225-
extern inline
225+
static inline
226226
void bcma_write16(struct bcma_device *core, u16 offset, u32 value)
227227
{
228228
core->bus->ops->write16(core, offset, value);
229229
}
230-
extern inline
230+
static inline
231231
void bcma_write32(struct bcma_device *core, u16 offset, u32 value)
232232
{
233233
core->bus->ops->write32(core, offset, value);
234234
}
235235
#ifdef CONFIG_BCMA_BLOCKIO
236-
extern inline void bcma_block_read(struct bcma_device *core, void *buffer,
236+
static inline void bcma_block_read(struct bcma_device *core, void *buffer,
237237
size_t count, u16 offset, u8 reg_width)
238238
{
239239
core->bus->ops->block_read(core, buffer, count, offset, reg_width);
240240
}
241-
extern inline void bcma_block_write(struct bcma_device *core, const void *buffer,
242-
size_t count, u16 offset, u8 reg_width)
241+
static inline void bcma_block_write(struct bcma_device *core,
242+
const void *buffer, size_t count,
243+
u16 offset, u8 reg_width)
243244
{
244245
core->bus->ops->block_write(core, buffer, count, offset, reg_width);
245246
}
246247
#endif
247-
extern inline u32 bcma_aread32(struct bcma_device *core, u16 offset)
248+
static inline u32 bcma_aread32(struct bcma_device *core, u16 offset)
248249
{
249250
return core->bus->ops->aread32(core, offset);
250251
}
251-
extern inline
252+
static inline
252253
void bcma_awrite32(struct bcma_device *core, u16 offset, u32 value)
253254
{
254255
core->bus->ops->awrite32(core, offset, value);

0 commit comments

Comments
 (0)