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>
This commit is contained in:
@@ -50,7 +50,7 @@ static inline void setup_num_counters(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static int inline addr_increment(void)
|
static inline int addr_increment(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
return smp_num_siblings == 2 ? 2 : 1;
|
return smp_num_siblings == 2 ? 2 : 1;
|
||||||
|
@@ -424,7 +424,7 @@ static void btusb_isoc_complete(struct urb *urb)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void inline __fill_isoc_descriptor(struct urb *urb, int len, int mtu)
|
static inline void __fill_isoc_descriptor(struct urb *urb, int len, int mtu)
|
||||||
{
|
{
|
||||||
int i, offset = 0;
|
int i, offset = 0;
|
||||||
|
|
||||||
@@ -775,7 +775,7 @@ static void btusb_notify(struct hci_dev *hdev, unsigned int evt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int inline __set_isoc_interface(struct hci_dev *hdev, int altsetting)
|
static inline int __set_isoc_interface(struct hci_dev *hdev, int altsetting)
|
||||||
{
|
{
|
||||||
struct btusb_data *data = hdev->driver_data;
|
struct btusb_data *data = hdev->driver_data;
|
||||||
struct usb_interface *intf = data->isoc;
|
struct usb_interface *intf = data->isoc;
|
||||||
|
@@ -300,7 +300,7 @@ static struct kobj_type ktype_state_cpuidle = {
|
|||||||
.release = cpuidle_state_sysfs_release,
|
.release = cpuidle_state_sysfs_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void inline cpuidle_free_state_kobj(struct cpuidle_device *device, int i)
|
static inline void cpuidle_free_state_kobj(struct cpuidle_device *device, int i)
|
||||||
{
|
{
|
||||||
kobject_put(&device->kobjs[i]->kobj);
|
kobject_put(&device->kobjs[i]->kobj);
|
||||||
wait_for_completion(&device->kobjs[i]->kobj_unregister);
|
wait_for_completion(&device->kobjs[i]->kobj_unregister);
|
||||||
|
@@ -162,7 +162,7 @@ static struct edac_pci_ctl_info *i7300_pci;
|
|||||||
#define AMBPRESENT_0 0x64
|
#define AMBPRESENT_0 0x64
|
||||||
#define AMBPRESENT_1 0x66
|
#define AMBPRESENT_1 0x66
|
||||||
|
|
||||||
const static u16 mtr_regs[MAX_SLOTS] = {
|
static const u16 mtr_regs[MAX_SLOTS] = {
|
||||||
0x80, 0x84, 0x88, 0x8c,
|
0x80, 0x84, 0x88, 0x8c,
|
||||||
0x82, 0x86, 0x8a, 0x8e
|
0x82, 0x86, 0x8a, 0x8e
|
||||||
};
|
};
|
||||||
|
@@ -354,7 +354,7 @@ static inline int ocfs2_match(int len,
|
|||||||
/*
|
/*
|
||||||
* Returns 0 if not found, -1 on failure, and 1 on success
|
* Returns 0 if not found, -1 on failure, and 1 on success
|
||||||
*/
|
*/
|
||||||
static int inline ocfs2_search_dirblock(struct buffer_head *bh,
|
static inline int ocfs2_search_dirblock(struct buffer_head *bh,
|
||||||
struct inode *dir,
|
struct inode *dir,
|
||||||
const char *name, int namelen,
|
const char *name, int namelen,
|
||||||
unsigned long offset,
|
unsigned long offset,
|
||||||
|
@@ -669,7 +669,7 @@ static struct list_head *rb_list_head(struct list_head *list)
|
|||||||
* the reader page). But if the next page is a header page,
|
* the reader page). But if the next page is a header page,
|
||||||
* its flags will be non zero.
|
* its flags will be non zero.
|
||||||
*/
|
*/
|
||||||
static int inline
|
static inline int
|
||||||
rb_is_head_page(struct ring_buffer_per_cpu *cpu_buffer,
|
rb_is_head_page(struct ring_buffer_per_cpu *cpu_buffer,
|
||||||
struct buffer_page *page, struct list_head *list)
|
struct buffer_page *page, struct list_head *list)
|
||||||
{
|
{
|
||||||
|
@@ -124,7 +124,7 @@ out:
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(__inet6_lookup_established);
|
EXPORT_SYMBOL(__inet6_lookup_established);
|
||||||
|
|
||||||
static int inline compute_score(struct sock *sk, struct net *net,
|
static inline int compute_score(struct sock *sk, struct net *net,
|
||||||
const unsigned short hnum,
|
const unsigned short hnum,
|
||||||
const struct in6_addr *daddr,
|
const struct in6_addr *daddr,
|
||||||
const int dif)
|
const int dif)
|
||||||
|
@@ -173,7 +173,7 @@ static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, int group_addr,
|
|||||||
return cpu_to_le16(dur);
|
return cpu_to_le16(dur);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int inline is_ieee80211_device(struct ieee80211_local *local,
|
static inline int is_ieee80211_device(struct ieee80211_local *local,
|
||||||
struct net_device *dev)
|
struct net_device *dev)
|
||||||
{
|
{
|
||||||
return local == wdev_priv(dev->ieee80211_ptr);
|
return local == wdev_priv(dev->ieee80211_ptr);
|
||||||
|
@@ -211,7 +211,7 @@ static void vortex_adbdma_startfifo(vortex_t * vortex, int adbdma);
|
|||||||
//static void vortex_adbdma_stopfifo(vortex_t *vortex, int adbdma);
|
//static void vortex_adbdma_stopfifo(vortex_t *vortex, int adbdma);
|
||||||
static void vortex_adbdma_pausefifo(vortex_t * vortex, int adbdma);
|
static void vortex_adbdma_pausefifo(vortex_t * vortex, int adbdma);
|
||||||
static void vortex_adbdma_resumefifo(vortex_t * vortex, int adbdma);
|
static void vortex_adbdma_resumefifo(vortex_t * vortex, int adbdma);
|
||||||
static int inline vortex_adbdma_getlinearpos(vortex_t * vortex, int adbdma);
|
static inline int vortex_adbdma_getlinearpos(vortex_t * vortex, int adbdma);
|
||||||
static void vortex_adbdma_resetup(vortex_t *vortex, int adbdma);
|
static void vortex_adbdma_resetup(vortex_t *vortex, int adbdma);
|
||||||
|
|
||||||
#ifndef CHIP_AU8810
|
#ifndef CHIP_AU8810
|
||||||
@@ -219,7 +219,7 @@ static void vortex_wtdma_startfifo(vortex_t * vortex, int wtdma);
|
|||||||
static void vortex_wtdma_stopfifo(vortex_t * vortex, int wtdma);
|
static void vortex_wtdma_stopfifo(vortex_t * vortex, int wtdma);
|
||||||
static void vortex_wtdma_pausefifo(vortex_t * vortex, int wtdma);
|
static void vortex_wtdma_pausefifo(vortex_t * vortex, int wtdma);
|
||||||
static void vortex_wtdma_resumefifo(vortex_t * vortex, int wtdma);
|
static void vortex_wtdma_resumefifo(vortex_t * vortex, int wtdma);
|
||||||
static int inline vortex_wtdma_getlinearpos(vortex_t * vortex, int wtdma);
|
static inline int vortex_wtdma_getlinearpos(vortex_t * vortex, int wtdma);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* global stuff. */
|
/* global stuff. */
|
||||||
|
@@ -1249,7 +1249,7 @@ static void vortex_adbdma_resetup(vortex_t *vortex, int adbdma) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int inline vortex_adbdma_getlinearpos(vortex_t * vortex, int adbdma)
|
static inline int vortex_adbdma_getlinearpos(vortex_t * vortex, int adbdma)
|
||||||
{
|
{
|
||||||
stream_t *dma = &vortex->dma_adb[adbdma];
|
stream_t *dma = &vortex->dma_adb[adbdma];
|
||||||
int temp;
|
int temp;
|
||||||
@@ -1498,7 +1498,7 @@ static int vortex_wtdma_getcursubuffer(vortex_t * vortex, int wtdma)
|
|||||||
POS_SHIFT) & POS_MASK);
|
POS_SHIFT) & POS_MASK);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
static int inline vortex_wtdma_getlinearpos(vortex_t * vortex, int wtdma)
|
static inline int vortex_wtdma_getlinearpos(vortex_t * vortex, int wtdma)
|
||||||
{
|
{
|
||||||
stream_t *dma = &vortex->dma_wt[wtdma];
|
stream_t *dma = &vortex->dma_wt[wtdma];
|
||||||
int temp;
|
int temp;
|
||||||
|
Reference in New Issue
Block a user