Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42b16b3f authored by Jesper Juhl's avatar Jesper Juhl Committed by Jiri Kosina
Browse files

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: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent f0940cee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ static inline void setup_num_counters(void)
#endif
}

static int inline addr_increment(void)
static inline int addr_increment(void)
{
#ifdef CONFIG_SMP
	return smp_num_siblings == 2 ? 2 : 1;
+2 −2
Original line number Diff line number Diff line
@@ -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;

@@ -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 usb_interface *intf = data->isoc;
+1 −1
Original line number Diff line number Diff line
@@ -300,7 +300,7 @@ static struct kobj_type ktype_state_cpuidle = {
	.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);
	wait_for_completion(&device->kobjs[i]->kobj_unregister);
+1 −1
Original line number Diff line number Diff line
@@ -162,7 +162,7 @@ static struct edac_pci_ctl_info *i7300_pci;
#define AMBPRESENT_0	0x64
#define AMBPRESENT_1	0x66

const static u16 mtr_regs[MAX_SLOTS] = {
static const u16 mtr_regs[MAX_SLOTS] = {
	0x80, 0x84, 0x88, 0x8c,
	0x82, 0x86, 0x8a, 0x8e
};
+1 −1
Original line number Diff line number Diff line
@@ -354,7 +354,7 @@ static inline int ocfs2_match(int len,
/*
 * 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,
					const char *name, int namelen,
					unsigned long offset,
Loading