Commit 447a5647 authored by Joe Perches's avatar Joe Perches Committed by Jiri Kosina

treewide: Align function definition open/close braces

Some functions definitions have either the initial open brace and/or
the closing brace outside of column 1.

Move those braces to column 1.

This allows various function analyzers like gnu complexity to work
properly for these modified functions.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: default avatarPaul Moore <paul@paul-moore.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Acked-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Acked-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Acked-by: default avatarTakashi Iwai <tiwai@suse.de>
Acked-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
Acked-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Acked-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 3215b9d5
...@@ -122,7 +122,7 @@ static inline long long atomic64_read(const atomic64_t *v) ...@@ -122,7 +122,7 @@ static inline long long atomic64_read(const atomic64_t *v)
long long r; long long r;
alternative_atomic64(read, "=&A" (r), "c" (v) : "memory"); alternative_atomic64(read, "=&A" (r), "c" (v) : "memory");
return r; return r;
} }
/** /**
* atomic64_add_return - add and return * atomic64_add_return - add and return
......
...@@ -94,7 +94,7 @@ static void __exit acpi_custom_method_exit(void) ...@@ -94,7 +94,7 @@ static void __exit acpi_custom_method_exit(void)
{ {
if (cm_dentry) if (cm_dentry)
debugfs_remove(cm_dentry); debugfs_remove(cm_dentry);
} }
module_init(acpi_custom_method_init); module_init(acpi_custom_method_init);
module_exit(acpi_custom_method_exit); module_exit(acpi_custom_method_exit);
...@@ -219,7 +219,7 @@ fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) ...@@ -219,7 +219,7 @@ fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state)
return fan_set_state_acpi4(device, state); return fan_set_state_acpi4(device, state);
else else
return fan_set_state(device, state); return fan_set_state(device, state);
} }
static const struct thermal_cooling_device_ops fan_cooling_ops = { static const struct thermal_cooling_device_ops fan_cooling_ops = {
.get_max_state = fan_get_max_state, .get_max_state = fan_get_max_state,
......
...@@ -463,7 +463,7 @@ static void disable_dangling_plane(struct dc *dc, struct dc_state *context) ...@@ -463,7 +463,7 @@ static void disable_dangling_plane(struct dc *dc, struct dc_state *context)
******************************************************************************/ ******************************************************************************/
struct dc *dc_create(const struct dc_init_data *init_params) struct dc *dc_create(const struct dc_init_data *init_params)
{ {
struct dc *dc = kzalloc(sizeof(*dc), GFP_KERNEL); struct dc *dc = kzalloc(sizeof(*dc), GFP_KERNEL);
unsigned int full_pipe_count; unsigned int full_pipe_count;
......
...@@ -885,7 +885,7 @@ static int msp34xxg_modus(struct i2c_client *client) ...@@ -885,7 +885,7 @@ static int msp34xxg_modus(struct i2c_client *client)
} }
static void msp34xxg_set_source(struct i2c_client *client, u16 reg, int in) static void msp34xxg_set_source(struct i2c_client *client, u16 reg, int in)
{ {
struct msp_state *state = to_state(i2c_get_clientdata(client)); struct msp_state *state = to_state(i2c_get_clientdata(client));
int source, matrix; int source, matrix;
......
...@@ -2967,7 +2967,7 @@ mptsas_exp_repmanufacture_info(MPT_ADAPTER *ioc, ...@@ -2967,7 +2967,7 @@ mptsas_exp_repmanufacture_info(MPT_ADAPTER *ioc,
mutex_unlock(&ioc->sas_mgmt.mutex); mutex_unlock(&ioc->sas_mgmt.mutex);
out: out:
return ret; return ret;
} }
static void static void
mptsas_parse_device_info(struct sas_identify *identify, mptsas_parse_device_info(struct sas_identify *identify,
......
...@@ -603,7 +603,7 @@ static struct uni_table_desc *nx_get_table_desc(const u8 *unirom, int section) ...@@ -603,7 +603,7 @@ static struct uni_table_desc *nx_get_table_desc(const u8 *unirom, int section)
static int static int
netxen_nic_validate_header(struct netxen_adapter *adapter) netxen_nic_validate_header(struct netxen_adapter *adapter)
{ {
const u8 *unirom = adapter->fw->data; const u8 *unirom = adapter->fw->data;
struct uni_table_desc *directory = (struct uni_table_desc *) &unirom[0]; struct uni_table_desc *directory = (struct uni_table_desc *) &unirom[0];
u32 fw_file_size = adapter->fw->size; u32 fw_file_size = adapter->fw->size;
......
...@@ -252,7 +252,7 @@ ath_tid_pull(struct ath_atx_tid *tid) ...@@ -252,7 +252,7 @@ ath_tid_pull(struct ath_atx_tid *tid)
} }
return skb; return skb;
} }
static bool ath_tid_has_buffered(struct ath_atx_tid *tid) static bool ath_tid_has_buffered(struct ath_atx_tid *tid)
......
...@@ -492,7 +492,7 @@ static void eeepc_platform_exit(struct eeepc_laptop *eeepc) ...@@ -492,7 +492,7 @@ static void eeepc_platform_exit(struct eeepc_laptop *eeepc)
* potentially bad time, such as a timer interrupt. * potentially bad time, such as a timer interrupt.
*/ */
static void tpd_led_update(struct work_struct *work) static void tpd_led_update(struct work_struct *work)
{ {
struct eeepc_laptop *eeepc; struct eeepc_laptop *eeepc;
eeepc = container_of(work, struct eeepc_laptop, tpd_led_work); eeepc = container_of(work, struct eeepc_laptop, tpd_led_work);
......
...@@ -648,7 +648,7 @@ static int abb5zes3_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) ...@@ -648,7 +648,7 @@ static int abb5zes3_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm)
ret); ret);
return ret; return ret;
} }
/* Enable or disable battery low irq generation */ /* Enable or disable battery low irq generation */
static inline int _abb5zes3_rtc_battery_low_irq_enable(struct regmap *regmap, static inline int _abb5zes3_rtc_battery_low_irq_enable(struct regmap *regmap,
......
...@@ -3524,7 +3524,7 @@ static int adpt_i2o_systab_send(adpt_hba* pHba) ...@@ -3524,7 +3524,7 @@ static int adpt_i2o_systab_send(adpt_hba* pHba)
#endif #endif
return ret; return ret;
} }
/*============================================================================ /*============================================================================
......
...@@ -1393,7 +1393,7 @@ static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit, ...@@ -1393,7 +1393,7 @@ static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit,
scsi_host_put(shost); scsi_host_put(shost);
return NULL; return NULL;
} }
/* /*
......
...@@ -559,7 +559,7 @@ static const struct lock_manager_operations lease_manager_ops = { ...@@ -559,7 +559,7 @@ static const struct lock_manager_operations lease_manager_ops = {
* Initialize a lease, use the default lock manager operations * Initialize a lease, use the default lock manager operations
*/ */
static int lease_init(struct file *filp, long type, struct file_lock *fl) static int lease_init(struct file *filp, long type, struct file_lock *fl)
{ {
if (assign_type(fl, type) != 0) if (assign_type(fl, type) != 0)
return -EINVAL; return -EINVAL;
......
...@@ -398,7 +398,7 @@ static int ocfs2_control_do_setnode_msg(struct file *file, ...@@ -398,7 +398,7 @@ static int ocfs2_control_do_setnode_msg(struct file *file,
static int ocfs2_control_do_setversion_msg(struct file *file, static int ocfs2_control_do_setversion_msg(struct file *file,
struct ocfs2_control_message_setv *msg) struct ocfs2_control_message_setv *msg)
{ {
long major, minor; long major, minor;
char *ptr = NULL; char *ptr = NULL;
struct ocfs2_control_private *p = file->private_data; struct ocfs2_control_private *p = file->private_data;
......
...@@ -122,7 +122,7 @@ xfs_nfs_get_inode( ...@@ -122,7 +122,7 @@ xfs_nfs_get_inode(
struct super_block *sb, struct super_block *sb,
u64 ino, u64 ino,
u32 generation) u32 generation)
{ {
xfs_mount_t *mp = XFS_M(sb); xfs_mount_t *mp = XFS_M(sb);
xfs_inode_t *ip; xfs_inode_t *ip;
int error; int error;
......
...@@ -443,15 +443,15 @@ static int audit_set_failure(u32 state) ...@@ -443,15 +443,15 @@ static int audit_set_failure(u32 state)
* Drop any references inside the auditd connection tracking struct and free * Drop any references inside the auditd connection tracking struct and free
* the memory. * the memory.
*/ */
static void auditd_conn_free(struct rcu_head *rcu) static void auditd_conn_free(struct rcu_head *rcu)
{ {
struct auditd_connection *ac; struct auditd_connection *ac;
ac = container_of(rcu, struct auditd_connection, rcu); ac = container_of(rcu, struct auditd_connection, rcu);
put_pid(ac->pid); put_pid(ac->pid);
put_net(ac->net); put_net(ac->net);
kfree(ac); kfree(ac);
} }
/** /**
* auditd_set - Set/Reset the auditd connection state * auditd_set - Set/Reset the auditd connection state
......
...@@ -196,7 +196,7 @@ struct notifier_block module_trace_bprintk_format_nb = { ...@@ -196,7 +196,7 @@ struct notifier_block module_trace_bprintk_format_nb = {
}; };
int __trace_bprintk(unsigned long ip, const char *fmt, ...) int __trace_bprintk(unsigned long ip, const char *fmt, ...)
{ {
int ret; int ret;
va_list ap; va_list ap;
...@@ -214,7 +214,7 @@ int __trace_bprintk(unsigned long ip, const char *fmt, ...) ...@@ -214,7 +214,7 @@ int __trace_bprintk(unsigned long ip, const char *fmt, ...)
EXPORT_SYMBOL_GPL(__trace_bprintk); EXPORT_SYMBOL_GPL(__trace_bprintk);
int __ftrace_vbprintk(unsigned long ip, const char *fmt, va_list ap) int __ftrace_vbprintk(unsigned long ip, const char *fmt, va_list ap)
{ {
if (unlikely(!fmt)) if (unlikely(!fmt))
return 0; return 0;
......
...@@ -91,7 +91,7 @@ static void raid6_sse21_gen_syndrome(int disks, size_t bytes, void **ptrs) ...@@ -91,7 +91,7 @@ static void raid6_sse21_gen_syndrome(int disks, size_t bytes, void **ptrs)
static void raid6_sse21_xor_syndrome(int disks, int start, int stop, static void raid6_sse21_xor_syndrome(int disks, int start, int stop,
size_t bytes, void **ptrs) size_t bytes, void **ptrs)
{ {
u8 **dptr = (u8 **)ptrs; u8 **dptr = (u8 **)ptrs;
u8 *p, *q; u8 *p, *q;
int d, z, z0; int d, z, z0;
...@@ -200,9 +200,9 @@ static void raid6_sse22_gen_syndrome(int disks, size_t bytes, void **ptrs) ...@@ -200,9 +200,9 @@ static void raid6_sse22_gen_syndrome(int disks, size_t bytes, void **ptrs)
kernel_fpu_end(); kernel_fpu_end();
} }
static void raid6_sse22_xor_syndrome(int disks, int start, int stop, static void raid6_sse22_xor_syndrome(int disks, int start, int stop,
size_t bytes, void **ptrs) size_t bytes, void **ptrs)
{ {
u8 **dptr = (u8 **)ptrs; u8 **dptr = (u8 **)ptrs;
u8 *p, *q; u8 *p, *q;
int d, z, z0; int d, z, z0;
...@@ -265,7 +265,7 @@ static void raid6_sse22_gen_syndrome(int disks, size_t bytes, void **ptrs) ...@@ -265,7 +265,7 @@ static void raid6_sse22_gen_syndrome(int disks, size_t bytes, void **ptrs)
asm volatile("sfence" : : : "memory"); asm volatile("sfence" : : : "memory");
kernel_fpu_end(); kernel_fpu_end();
} }
const struct raid6_calls raid6_sse2x2 = { const struct raid6_calls raid6_sse2x2 = {
raid6_sse22_gen_syndrome, raid6_sse22_gen_syndrome,
...@@ -366,9 +366,9 @@ static void raid6_sse24_gen_syndrome(int disks, size_t bytes, void **ptrs) ...@@ -366,9 +366,9 @@ static void raid6_sse24_gen_syndrome(int disks, size_t bytes, void **ptrs)
kernel_fpu_end(); kernel_fpu_end();
} }
static void raid6_sse24_xor_syndrome(int disks, int start, int stop, static void raid6_sse24_xor_syndrome(int disks, int start, int stop,
size_t bytes, void **ptrs) size_t bytes, void **ptrs)
{ {
u8 **dptr = (u8 **)ptrs; u8 **dptr = (u8 **)ptrs;
u8 *p, *q; u8 *p, *q;
int d, z, z0; int d, z, z0;
...@@ -471,7 +471,7 @@ static void raid6_sse24_gen_syndrome(int disks, size_t bytes, void **ptrs) ...@@ -471,7 +471,7 @@ static void raid6_sse24_gen_syndrome(int disks, size_t bytes, void **ptrs)
} }
asm volatile("sfence" : : : "memory"); asm volatile("sfence" : : : "memory");
kernel_fpu_end(); kernel_fpu_end();
} }
const struct raid6_calls raid6_sse2x4 = { const struct raid6_calls raid6_sse2x4 = {
......
...@@ -879,7 +879,7 @@ static const struct snd_pcm_ops fsl_dma_ops = { ...@@ -879,7 +879,7 @@ static const struct snd_pcm_ops fsl_dma_ops = {
}; };
static int fsl_soc_dma_probe(struct platform_device *pdev) static int fsl_soc_dma_probe(struct platform_device *pdev)
{ {
struct dma_object *dma; struct dma_object *dma;
struct device_node *np = pdev->dev.of_node; struct device_node *np = pdev->dev.of_node;
struct device_node *ssi_np; struct device_node *ssi_np;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment