* [PATCH 00/18] treewide: Move storage class before return type
@ 2017-07-05 20:02 Joe Perches
2017-07-05 20:02 ` [PATCH 06/18] ia64: Move inline " Joe Perches
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Joe Perches @ 2017-07-05 20:02 UTC (permalink / raw)
To: Andrew Morton, kvm, linux-arm-kernel, kvmarm, linux-m68k,
linux-efi, linux-s390, linux-serial, linux-ia64, linux-usb,
linux-fbdev, linux-omap, alsa-devel
Cc: linux-mips, linux-kernel, linux-cris-kernel, linux-sh
Move the inline/asmlinkage keywords before the return types
Add a checkpatch test for this too.
Joe Perches (18):
checkpatch: improve the STORAGE_CLASS test
ARM: KVM: Move asmlinkage before type
ARM: HP Jornada 7XX: Move inline before return type
CRIS: gpio: Move inline before return type
FRV: tlbflush: Move asmlinkage before return type
ia64: Move inline before return type
ia64: sn: pci: Move inline before type
m68k: coldfire: Move inline before return type
MIPS: SMP: Move asmlinkage before return type
sh: Move inline before return type
x86/efi: Move asmlinkage before return type
drivers: s390: Move static and inline before return type
drivers: tty: serial: Move inline before return type
USB: serial: safe_serial: Move __inline__ before return type
video: fbdev: intelfb: Move inline before return type
video: fbdev: omap: Move inline before return type
ARM: samsung: usb-ohci: Move inline before return type
ALSA: opl4: Move inline before return type
arch/arm/include/asm/kvm_hyp.h | 8 ++++----
arch/arm/mach-sa1100/jornada720_ssp.c | 2 +-
arch/cris/arch-v10/drivers/gpio.c | 4 ++--
arch/frv/include/asm/tlbflush.h | 8 ++++----
arch/ia64/kernel/mca.c | 2 +-
arch/ia64/sn/pci/pcibr/pcibr_ate.c | 2 +-
arch/ia64/sn/pci/tioce_provider.c | 4 ++--
arch/m68k/coldfire/intc-simr.c | 4 ++--
arch/mips/include/asm/smp.h | 2 +-
arch/sh/mm/cache-sh5.c | 2 +-
arch/x86/include/asm/efi.h | 4 ++--
drivers/s390/net/ctcm_main.c | 2 +-
drivers/s390/net/qeth_l3_main.c | 2 +-
drivers/tty/serial/ioc3_serial.c | 4 ++--
drivers/tty/serial/ioc4_serial.c | 4 ++--
drivers/usb/serial/safe_serial.c | 2 +-
drivers/video/fbdev/intelfb/intelfbdrv.c | 2 +-
drivers/video/fbdev/omap/lcdc.c | 6 +++---
include/linux/platform_data/usb-ohci-s3c2410.h | 2 +-
scripts/checkpatch.pl | 12 ++++++++++--
sound/drivers/opl4/opl4_lib.c | 2 +-
21 files changed, 44 insertions(+), 36 deletions(-)
--
2.10.0.rc2.1.g053435c
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 06/18] ia64: Move inline before return type
2017-07-05 20:02 [PATCH 00/18] treewide: Move storage class before return type Joe Perches
@ 2017-07-05 20:02 ` Joe Perches
2017-07-05 20:02 ` [PATCH 07/18] ia64: sn: pci: Move inline before type Joe Perches
2017-07-05 20:02 ` [PATCH 13/18] drivers: tty: serial: Move inline before return type Joe Perches
2 siblings, 0 replies; 4+ messages in thread
From: Joe Perches @ 2017-07-05 20:02 UTC (permalink / raw)
To: Andrew Morton, linux-kernel; +Cc: Tony Luck, Fenghua Yu, linux-ia64
Make the use of inline like the rest of the kernel.
Signed-off-by: Joe Perches <joe@perches.com>
---
arch/ia64/kernel/mca.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c
index 79c7c46d7dc1..555b11180156 100644
--- a/arch/ia64/kernel/mca.c
+++ b/arch/ia64/kernel/mca.c
@@ -334,7 +334,7 @@ static void ia64_mlogbuf_dump_from_init(void)
ia64_mlogbuf_dump();
}
-static void inline
+static inline void
ia64_mca_spin(const char *func)
{
if (monarch_cpu = smp_processor_id())
--
2.10.0.rc2.1.g053435c
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 07/18] ia64: sn: pci: Move inline before type
2017-07-05 20:02 [PATCH 00/18] treewide: Move storage class before return type Joe Perches
2017-07-05 20:02 ` [PATCH 06/18] ia64: Move inline " Joe Perches
@ 2017-07-05 20:02 ` Joe Perches
2017-07-05 20:02 ` [PATCH 13/18] drivers: tty: serial: Move inline before return type Joe Perches
2 siblings, 0 replies; 4+ messages in thread
From: Joe Perches @ 2017-07-05 20:02 UTC (permalink / raw)
To: Andrew Morton, linux-kernel; +Cc: Tony Luck, Fenghua Yu, linux-ia64
Make the use of inline like the rest of the kernel.
Signed-off-by: Joe Perches <joe@perches.com>
---
arch/ia64/sn/pci/pcibr/pcibr_ate.c | 2 +-
arch/ia64/sn/pci/tioce_provider.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/ia64/sn/pci/pcibr/pcibr_ate.c b/arch/ia64/sn/pci/pcibr/pcibr_ate.c
index 5bc34eac9e01..b67bb4cb73ff 100644
--- a/arch/ia64/sn/pci/pcibr/pcibr_ate.c
+++ b/arch/ia64/sn/pci/pcibr/pcibr_ate.c
@@ -140,7 +140,7 @@ static inline u64 __iomem *pcibr_ate_addr(struct pcibus_info *pcibus_info,
/*
* Update the ate.
*/
-void inline
+inline void
ate_write(struct pcibus_info *pcibus_info, int ate_index, int count,
volatile u64 ate)
{
diff --git a/arch/ia64/sn/pci/tioce_provider.c b/arch/ia64/sn/pci/tioce_provider.c
index 46d3df4b03a1..3bd9abc35485 100644
--- a/arch/ia64/sn/pci/tioce_provider.c
+++ b/arch/ia64/sn/pci/tioce_provider.c
@@ -52,7 +52,7 @@
* All registers defined in struct tioce will meet that criteria.
*/
-static void inline
+static inline void
tioce_mmr_war_pre(struct tioce_kernel *kern, void __iomem *mmr_addr)
{
u64 mmr_base;
@@ -78,7 +78,7 @@ tioce_mmr_war_pre(struct tioce_kernel *kern, void __iomem *mmr_addr)
}
}
-static void inline
+static inline void
tioce_mmr_war_post(struct tioce_kernel *kern, void __iomem *mmr_addr)
{
u64 mmr_base;
--
2.10.0.rc2.1.g053435c
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 13/18] drivers: tty: serial: Move inline before return type
2017-07-05 20:02 [PATCH 00/18] treewide: Move storage class before return type Joe Perches
2017-07-05 20:02 ` [PATCH 06/18] ia64: Move inline " Joe Perches
2017-07-05 20:02 ` [PATCH 07/18] ia64: sn: pci: Move inline before type Joe Perches
@ 2017-07-05 20:02 ` Joe Perches
2 siblings, 0 replies; 4+ messages in thread
From: Joe Perches @ 2017-07-05 20:02 UTC (permalink / raw)
To: Andrew Morton, Pat Gefre, Greg Kroah-Hartman
Cc: Jiri Slaby, linux-serial, linux-ia64, linux-kernel
Make the code like the rest of the kernel.
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/tty/serial/ioc3_serial.c | 4 ++--
drivers/tty/serial/ioc4_serial.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/tty/serial/ioc3_serial.c b/drivers/tty/serial/ioc3_serial.c
index 2a61dd6b4009..906ee770ff4a 100644
--- a/drivers/tty/serial/ioc3_serial.c
+++ b/drivers/tty/serial/ioc3_serial.c
@@ -377,7 +377,7 @@ static struct ioc3_port *get_ioc3_port(struct uart_port *the_port)
* called per port from attach...
* @port: port to initialize
*/
-static int inline port_init(struct ioc3_port *port)
+static inline int port_init(struct ioc3_port *port)
{
uint32_t sio_cr;
struct port_hooks *hooks = port->ip_hooks;
@@ -1430,7 +1430,7 @@ static int receive_chars(struct uart_port *the_port)
* @pending: interrupts to handle
*/
-static int inline
+static inline int
ioc3uart_intr_one(struct ioc3_submodule *is,
struct ioc3_driver_data *idd,
unsigned int pending)
diff --git a/drivers/tty/serial/ioc4_serial.c b/drivers/tty/serial/ioc4_serial.c
index f96bcf9bee25..43d7d32eb150 100644
--- a/drivers/tty/serial/ioc4_serial.c
+++ b/drivers/tty/serial/ioc4_serial.c
@@ -824,7 +824,7 @@ pending_intrs(struct ioc4_soft *soft, int type)
* called per port from attach...
* @port: port to initialize
*/
-static int inline port_init(struct ioc4_port *port)
+static inline int port_init(struct ioc4_port *port)
{
uint32_t sio_cr;
struct hooks *hooks = port->ip_hooks;
@@ -1048,7 +1048,7 @@ static irqreturn_t ioc4_intr(int irq, void *arg)
* IOC4 with serial ports in the system.
* @idd: Master module data for this IOC4
*/
-static int inline ioc4_attach_local(struct ioc4_driver_data *idd)
+static inline int ioc4_attach_local(struct ioc4_driver_data *idd)
{
struct ioc4_port *port;
struct ioc4_port *ports[IOC4_NUM_SERIAL_PORTS];
--
2.10.0.rc2.1.g053435c
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-05 20:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-05 20:02 [PATCH 00/18] treewide: Move storage class before return type Joe Perches
2017-07-05 20:02 ` [PATCH 06/18] ia64: Move inline " Joe Perches
2017-07-05 20:02 ` [PATCH 07/18] ia64: sn: pci: Move inline before type Joe Perches
2017-07-05 20:02 ` [PATCH 13/18] drivers: tty: serial: Move inline before return type Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).