Skip to content

Commit 42b16b3

Browse files
jjuhlJiri Kosina
authored andcommitted
Kill off warning: ‘inline’ is not at beginning of declaration
Fix a bunch of warning: ‘inline’ is not at beginning of declaration messages when building a 'make allyesconfig' kernel with -Wextra. These warnings are trivial to kill, yet rather annoying when building with -Wextra. The more we can cut down on pointless crap like this the better (IMHO). A previous patch to do this for a 'allnoconfig' build has already been merged. This just takes the cleanup a little further. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent f0940ce commit 42b16b3

10 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎arch/x86/oprofile/op_model_p4.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static inline void setup_num_counters(void)
5050
#endif
5151
}
5252

53-
static int inline addr_increment(void)
53+
static inline int addr_increment(void)
5454
{
5555
#ifdef CONFIG_SMP
5656
return smp_num_siblings == 2 ? 2 : 1;

‎drivers/bluetooth/btusb.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static void btusb_isoc_complete(struct urb *urb)
424424
}
425425
}
426426

427-
static void inline __fill_isoc_descriptor(struct urb *urb, int len, int mtu)
427+
static inline void __fill_isoc_descriptor(struct urb *urb, int len, int mtu)
428428
{
429429
int i, offset = 0;
430430

@@ -775,7 +775,7 @@ static void btusb_notify(struct hci_dev *hdev, unsigned int evt)
775775
}
776776
}
777777

778-
static int inline __set_isoc_interface(struct hci_dev *hdev, int altsetting)
778+
static inline int __set_isoc_interface(struct hci_dev *hdev, int altsetting)
779779
{
780780
struct btusb_data *data = hdev->driver_data;
781781
struct usb_interface *intf = data->isoc;

‎drivers/cpuidle/sysfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ static struct kobj_type ktype_state_cpuidle = {
300300
.release = cpuidle_state_sysfs_release,
301301
};
302302

303-
static void inline cpuidle_free_state_kobj(struct cpuidle_device *device, int i)
303+
static inline void cpuidle_free_state_kobj(struct cpuidle_device *device, int i)
304304
{
305305
kobject_put(&device->kobjs[i]->kobj);
306306
wait_for_completion(&device->kobjs[i]->kobj_unregister);

‎drivers/edac/i7300_edac.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static struct edac_pci_ctl_info *i7300_pci;
162162
#define AMBPRESENT_0 0x64
163163
#define AMBPRESENT_1 0x66
164164

165-
const static u16 mtr_regs[MAX_SLOTS] = {
165+
static const u16 mtr_regs[MAX_SLOTS] = {
166166
0x80, 0x84, 0x88, 0x8c,
167167
0x82, 0x86, 0x8a, 0x8e
168168
};

‎fs/ocfs2/dir.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static inline int ocfs2_match(int len,
354354
/*
355355
* Returns 0 if not found, -1 on failure, and 1 on success
356356
*/
357-
static int inline ocfs2_search_dirblock(struct buffer_head *bh,
357+
static inline int ocfs2_search_dirblock(struct buffer_head *bh,
358358
struct inode *dir,
359359
const char *name, int namelen,
360360
unsigned long offset,

‎kernel/trace/ring_buffer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ static struct list_head *rb_list_head(struct list_head *list)
669669
* the reader page). But if the next page is a header page,
670670
* its flags will be non zero.
671671
*/
672-
static int inline
672+
static inline int
673673
rb_is_head_page(struct ring_buffer_per_cpu *cpu_buffer,
674674
struct buffer_page *page, struct list_head *list)
675675
{

‎net/ipv6/inet6_hashtables.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ struct sock *__inet6_lookup_established(struct net *net,
124124
}
125125
EXPORT_SYMBOL(__inet6_lookup_established);
126126

127-
static int inline compute_score(struct sock *sk, struct net *net,
127+
static inline int compute_score(struct sock *sk, struct net *net,
128128
const unsigned short hnum,
129129
const struct in6_addr *daddr,
130130
const int dif)

‎net/mac80211/tx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, int group_addr,
173173
return cpu_to_le16(dur);
174174
}
175175

176-
static int inline is_ieee80211_device(struct ieee80211_local *local,
176+
static inline int is_ieee80211_device(struct ieee80211_local *local,
177177
struct net_device *dev)
178178
{
179179
return local == wdev_priv(dev->ieee80211_ptr);

‎sound/pci/au88x0/au88x0.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,15 @@ static void vortex_adbdma_startfifo(vortex_t * vortex, int adbdma);
211211
//static void vortex_adbdma_stopfifo(vortex_t *vortex, int adbdma);
212212
static void vortex_adbdma_pausefifo(vortex_t * vortex, int adbdma);
213213
static void vortex_adbdma_resumefifo(vortex_t * vortex, int adbdma);
214-
static int inline vortex_adbdma_getlinearpos(vortex_t * vortex, int adbdma);
214+
static inline int vortex_adbdma_getlinearpos(vortex_t * vortex, int adbdma);
215215
static void vortex_adbdma_resetup(vortex_t *vortex, int adbdma);
216216

217217
#ifndef CHIP_AU8810
218218
static void vortex_wtdma_startfifo(vortex_t * vortex, int wtdma);
219219
static void vortex_wtdma_stopfifo(vortex_t * vortex, int wtdma);
220220
static void vortex_wtdma_pausefifo(vortex_t * vortex, int wtdma);
221221
static void vortex_wtdma_resumefifo(vortex_t * vortex, int wtdma);
222-
static int inline vortex_wtdma_getlinearpos(vortex_t * vortex, int wtdma);
222+
static inline int vortex_wtdma_getlinearpos(vortex_t * vortex, int wtdma);
223223
#endif
224224

225225
/* global stuff. */

‎sound/pci/au88x0/au88x0_core.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ static void vortex_adbdma_resetup(vortex_t *vortex, int adbdma) {
12491249
}
12501250
}
12511251

1252-
static int inline vortex_adbdma_getlinearpos(vortex_t * vortex, int adbdma)
1252+
static inline int vortex_adbdma_getlinearpos(vortex_t * vortex, int adbdma)
12531253
{
12541254
stream_t *dma = &vortex->dma_adb[adbdma];
12551255
int temp;
@@ -1498,7 +1498,7 @@ static int vortex_wtdma_getcursubuffer(vortex_t * vortex, int wtdma)
14981498
POS_SHIFT) & POS_MASK);
14991499
}
15001500
#endif
1501-
static int inline vortex_wtdma_getlinearpos(vortex_t * vortex, int wtdma)
1501+
static inline int vortex_wtdma_getlinearpos(vortex_t * vortex, int wtdma)
15021502
{
15031503
stream_t *dma = &vortex->dma_wt[wtdma];
15041504
int temp;

0 commit comments

Comments
 (0)