diff options
author | Jesper Juhl <juhl@dif.dk> | 2005-07-27 14:46:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:26:20 -0400 |
commit | 77933d7276ee8fa0e2947641941a6f7a100a327b (patch) | |
tree | e3a42724642410f5257c794a71b34642092eedd5 /sound/pci/nm256/nm256.c | |
parent | 03e259a9cdbd0583e71468293aaa1ccadbdaeff1 (diff) |
[PATCH] clean up inline static vs static inline
`gcc -W' likes to complain if the static keyword is not at the beginning of
the declaration. This patch fixes all remaining occurrences of "inline
static" up with "static inline" in the entire kernel tree (140 occurrences in
47 files).
While making this change I came across a few lines with trailing whitespace
that I also fixed up, I have also added or removed a blank line or two here
and there, but there are no functional changes in the patch.
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'sound/pci/nm256/nm256.c')
-rw-r--r-- | sound/pci/nm256/nm256.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c index 8a52091f855..7eb20b8f89f 100644 --- a/sound/pci/nm256/nm256.c +++ b/sound/pci/nm256/nm256.c | |||
@@ -285,43 +285,43 @@ MODULE_DEVICE_TABLE(pci, snd_nm256_ids); | |||
285 | * lowlvel stuffs | 285 | * lowlvel stuffs |
286 | */ | 286 | */ |
287 | 287 | ||
288 | inline static u8 | 288 | static inline u8 |
289 | snd_nm256_readb(nm256_t *chip, int offset) | 289 | snd_nm256_readb(nm256_t *chip, int offset) |
290 | { | 290 | { |
291 | return readb(chip->cport + offset); | 291 | return readb(chip->cport + offset); |
292 | } | 292 | } |
293 | 293 | ||
294 | inline static u16 | 294 | static inline u16 |
295 | snd_nm256_readw(nm256_t *chip, int offset) | 295 | snd_nm256_readw(nm256_t *chip, int offset) |
296 | { | 296 | { |
297 | return readw(chip->cport + offset); | 297 | return readw(chip->cport + offset); |
298 | } | 298 | } |
299 | 299 | ||
300 | inline static u32 | 300 | static inline u32 |
301 | snd_nm256_readl(nm256_t *chip, int offset) | 301 | snd_nm256_readl(nm256_t *chip, int offset) |
302 | { | 302 | { |
303 | return readl(chip->cport + offset); | 303 | return readl(chip->cport + offset); |
304 | } | 304 | } |
305 | 305 | ||
306 | inline static void | 306 | static inline void |
307 | snd_nm256_writeb(nm256_t *chip, int offset, u8 val) | 307 | snd_nm256_writeb(nm256_t *chip, int offset, u8 val) |
308 | { | 308 | { |
309 | writeb(val, chip->cport + offset); | 309 | writeb(val, chip->cport + offset); |
310 | } | 310 | } |
311 | 311 | ||
312 | inline static void | 312 | static inline void |
313 | snd_nm256_writew(nm256_t *chip, int offset, u16 val) | 313 | snd_nm256_writew(nm256_t *chip, int offset, u16 val) |
314 | { | 314 | { |
315 | writew(val, chip->cport + offset); | 315 | writew(val, chip->cport + offset); |
316 | } | 316 | } |
317 | 317 | ||
318 | inline static void | 318 | static inline void |
319 | snd_nm256_writel(nm256_t *chip, int offset, u32 val) | 319 | snd_nm256_writel(nm256_t *chip, int offset, u32 val) |
320 | { | 320 | { |
321 | writel(val, chip->cport + offset); | 321 | writel(val, chip->cport + offset); |
322 | } | 322 | } |
323 | 323 | ||
324 | inline static void | 324 | static inline void |
325 | snd_nm256_write_buffer(nm256_t *chip, void *src, int offset, int size) | 325 | snd_nm256_write_buffer(nm256_t *chip, void *src, int offset, int size) |
326 | { | 326 | { |
327 | offset -= chip->buffer_start; | 327 | offset -= chip->buffer_start; |
@@ -926,7 +926,7 @@ snd_nm256_init_chip(nm256_t *chip) | |||
926 | } | 926 | } |
927 | 927 | ||
928 | 928 | ||
929 | inline static void | 929 | static inline void |
930 | snd_nm256_intr_check(nm256_t *chip) | 930 | snd_nm256_intr_check(nm256_t *chip) |
931 | { | 931 | { |
932 | if (chip->badintrcount++ > 1000) { | 932 | if (chip->badintrcount++ > 1000) { |