staging: exfat: Fix alignment warnings
PATCH RESEND 1/1 staging: exfat: Fix alignment warnings
Fix checkpatch warning "Alignment should match open parenthesis".
--- drivers/staging/exfat/exfat_blkdev.c | 4 ++-- drivers/staging/exfat/exfat_core.c | 29 ++++++++++++++-------------- drivers/staging/exfat/exfat_super.c | 2 +- 3 files changed, 18 insertions(+), 17 deletions(-)
(quoted diff) +0 -0
b/drivers/staging/exfat/exfat_blkdev.c
index 7bcd98b13109..3068bfda39e4 100644
drivers/staging/exfat/exfat_blkdev.c +0 -0
@@ -31,7 +31,7 @@ void exfat_bdev_close(struct super_block *sb) } int exfat_bdev_read(struct super_block *sb, sector_t secno, struct
buffer_head **bh,
- u32 num_secs, bool read)
+ u32 num_secs, bool read)
{
struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);@@ -66,7 +66,7 @@ int exfat_bdev_read(struct super_block *sb, sector_t secno, struct buffer_head *
}
int exfat_bdev_write(struct super_block *sb, sector_t secno, structbuffer_head *bh,
- u32 num_secs, bool sync)
+ u32 num_secs, bool sync)
{
s32 count;
struct buffer_head *bh2;(quoted diff) +0 -0
b/drivers/staging/exfat/exfat_core.c
index 794000e7bc6f..754407c738b7 100644
drivers/staging/exfat/exfat_core.c +0 -0
@@ -250,7 +250,7 @@ static u32 test_alloc_bitmap(struct super_block
*sb, u32 clu)
}
static s32 exfat_alloc_cluster(struct super_block *sb, s32 num_alloc,
- struct chain_t *p_chain)
+ struct chain_t *p_chain)
{
s32 num_clusters = 0;
u32 hint_clu, new_clu, last_clu = CLUSTER_32(~0);@@ -329,7 +329,7 @@ static s32 exfat_alloc_cluster(struct super_block *sb, s32 num_alloc,
}
static void exfat_free_cluster(struct super_block *sb, struct chain_t*p_chain,
- s32 do_relse)
+ s32 do_relse)
{
s32 num_clusters = 0;
u32 clu;@@ -920,7 +920,7 @@ static void exfat_set_entry_size(struct dentry_t *p_entry, u64 size)
}
static void exfat_get_entry_time(struct dentry_t *p_entry, structtimestamp_t *tp,
- u8 mode)
+ u8 mode)
{
u16 t = 0x00, d = 0x21;
struct file_dentry_t *ep = (struct file_dentry_t *)p_entry;@@ -949,7 +949,7 @@ static void exfat_get_entry_time(struct dentry_t *p_entry, struct timestamp_t *t
}
static void exfat_set_entry_time(struct dentry_t *p_entry, structtimestamp_t *tp,
- u8 mode)
+ u8 mode)
{
u16 t, d;
struct file_dentry_t *ep = (struct file_dentry_t *)p_entry;@@ -1013,7 +1013,7 @@ static void init_name_entry(struct name_dentry_t *ep, u16 *uniname)
}
static s32 exfat_init_dir_entry(struct super_block *sb, struct chain_t*p_dir,
- s32 entry, u32 type, u32 start_clu, u64 size)
+ s32 entry, u32 type, u32 start_clu, u64
size)
{
sector_t sector;
u8 flags;@@ -1089,7 +1089,7 @@ static s32 exfat_init_ext_entry(struct super_block *sb, struct chain_t *p_dir,
}
static void exfat_delete_dir_entry(struct super_block *sb, structchain_t *p_dir,
- s32 entry, s32 order, s32 num_entries)
+ s32 entry, s32 order, s32num_entries)
{
int i;
sector_t sector;@@ -1256,7 +1256,7 @@ static s32 _walk_fat_chain(struct super_block *sb, struct chain_t *p_dir,
}
static s32 find_location(struct super_block *sb, struct chain_t*p_dir, s32 entry,
- sector_t *sector, s32 *offset)
+ sector_t *sector, s32 *offset)
{
s32 off, ret;
u32 clu = 0;@@ -1492,7 +1492,8 @@ void release_entry_set(struct entry_set_cache_t *es)
/* search EMPTY CONTINUOUS "num_entries" entries */ static s32 search_deleted_or_unused_entry(struct super_block *sb,
- struct chain_t *p_dir, s32num_entries)
+ struct chain_t *p_dir,
+ s32 num_entries)
{
int i, dentry, num_empty = 0;
s32 dentries_per_clu;@@ -1668,7 +1669,7 @@ static s32 find_empty_entry(struct inode *inode, struct chain_t *p_dir, s32 num_
}
static s32 extract_uni_name_from_name_entry(struct name_dentry_t *ep,
u16 *uniname,
- s32 order)
+ s32 order)
{
int i, len = 0;@@ -1690,8 +1691,8 @@ static s32 extract_uni_name_from_name_entry(struct name_dentry_t *ep, u16 *unina
* -2 : entry with the name does not exist
*/
static s32 exfat_find_dir_entry(struct super_block *sb, struct chain_t*p_dir,
- struct uni_name_t *p_uniname, s32 num_entries,
- struct dos_name_t *p_dosname, u32 type)
+ struct uni_name_t *p_uniname, s32num_entries,
+ struct dos_name_t *p_dosname, u32 type)
{
int i = 0, dentry = 0, num_ext_entries = 0, len, step;
s32 order = 0;@@ -1833,7 +1834,7 @@ static s32 exfat_find_dir_entry(struct super_block *sb, struct chain_t *p_dir,
}
static s32 exfat_count_ext_entries(struct super_block *sb, structchain_t *p_dir,
- s32 entry, struct dentry_t *p_entry)
+ s32 entry, struct dentry_t *p_entry)
{
int i, count = 0;
u32 type;@@ -1996,8 +1997,8 @@ s32 get_num_entries_and_dos_name(struct super_block *sb, struct chain_t *p_dir,
}
static void exfat_get_uni_name_from_ext_entry(struct super_block *sb,
- struct chain_t *p_dir, s32
entry,
- u16 *uniname)
+ struct chain_t *p_dir,
s32 entry,
+ u16 *uniname)
{
int i;
struct dentry_t *ep;(quoted diff) +0 -0
b/drivers/staging/exfat/exfat_super.c
index 9f91853b189b..75bb36071722 100644
drivers/staging/exfat/exfat_super.c +0 -0
@@ -365,7 +365,7 @@ static int ffsMountVol(struct super_block *sb) if (p_bd->sector_size < sb->s_blocksize) { printk(KERN_INFO "EXFAT: mount failed - sector size %d
less than blocksize %ld\n",
- p_bd->sector_size, sb->s_blocksize);
+ p_bd->sector_size, sb->s_blocksize);
ret = -EINVAL;
goto out;
}Signature · 1 line
2.17.1
[email protected]
maintainerQuoted 15 lines · Pragat Pandya
Fix checkpatch warning "Alignment should match open parenthesis".
Signed-off-by Pragat Pandya <[email protected]>--- drivers/staging/exfat/exfat_blkdev.c | 4 ++-- drivers/staging/exfat/exfat_core.c | 29 ++++++++++++++-------------- drivers/staging/exfat/exfat_super.c | 2 +- 3 files changed, 18 insertions(+), 17 deletions(-)drivers/staging/exfat/exfat_blkdev.c +0
-0
drivers/staging/exfat/exfat_blkdev.c void exfat_bdev_close(struct super_block *sb) · line 35
Quoted 6 lines
drivers/staging/exfat/exfat_blkdev.c +1
-1@@ -31,7 +31,7 @@ void exfat_bdev_close(struct super_block *sb) }int exfat_bdev_read (struct super_block *sb,sector_t secno,struct buffer_head **bh, -u32 num_secs,bool read) +u32 num_secs,bool read)
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- Your patch is malformed (tabs converted to spaces, linewrapped, etc.) and can not be applied. Please read the file, Documentation/email-clients.txt in order to fix this.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot
PATCH RESEND 1/1 staging: exfat: Fix alignment warnings
Fix checkpatch warning "Alignment should match open parenthesis".
--- drivers/staging/exfat/exfat_blkdev.c | 4 ++-- drivers/staging/exfat/exfat_core.c | 29 ++++++++++++++-------------- drivers/staging/exfat/exfat_super.c | 2 +- 3 files changed, 18 insertions(+), 17 deletions(-)
drivers/staging/exfat/exfat_blkdev.c +2 -2
@@ -31,7 +31,7 @@ void exfat_bdev_close(struct super_block *sb) }int exfat_bdev_read (struct super_block *sb,sector_t secno,struct buffer_head **bh, -u32 num_secs,bool read) +u32 num_secs,bool read) {struct bd_info_t *p_bd = &(EXFAT_SB (sb)->bd_info);struct fs_info_t *p_fs = &(EXFAT_SB (sb)->fs_info);
@@ -66,7 +66,7 @@ int exfat_bdev_read(struct super_block *sb, sector_t secno, struct buffer_head * }int exfat_bdev_write (struct super_block *sb,sector_t secno,struct buffer_head *bh, -u32 num_secs,bool sync) +u32 num_secs,bool sync) {s32 count;struct buffer_head *bh2;
drivers/staging/exfat/exfat_core.c +15 -14
@@ -250,7 +250,7 @@ static u32 test_alloc_bitmap(struct super_block *sb, u32 clu) }static s32 exfat_alloc_cluster (struct super_block *sb,s32 num_alloc, -struct chain_t *p_chain) +struct chain_t *p_chain) {s32 num_clusters =0 ;u32 hint_clu, new_clu, last_clu =CLUSTER_32 (~0 );
@@ -329,7 +329,7 @@ static s32 exfat_alloc_cluster(struct super_block *sb, s32 num_alloc, }static void exfat_free_cluster (struct super_block *sb,struct chain_t *p_chain, -s32 do_relse) +s32 do_relse) {s32 num_clusters =0 ;u32 clu;
@@ -920,7 +920,7 @@ static void exfat_set_entry_size(struct dentry_t *p_entry, u64 size) }static void exfat_get_entry_time (struct dentry_t *p_entry,struct timestamp_t *tp, -u8 mode) +u8 mode) {u16 t =0x00 , d =0x21 ;struct file_dentry_t *ep = (struct file_dentry_t *)p_entry;
@@ -949,7 +949,7 @@ static void exfat_get_entry_time(struct dentry_t *p_entry, struct timestamp_t *t }static void exfat_set_entry_time (struct dentry_t *p_entry,struct timestamp_t *tp, -u8 mode) +u8 mode) {u16 t, d;struct file_dentry_t *ep = (struct file_dentry_t *)p_entry;
@@ -1013,7 +1013,7 @@ static void init_name_entry(struct name_dentry_t *ep, u16 *uniname) }static s32 exfat_init_dir_entry (struct super_block *sb,struct chain_t *p_dir, -s32 entry,u32 type,u32 start_clu,u64 size) +s32 entry,u32 type,u32 start_clu,u64 size) {sector_t sector;u8 flags;
@@ -1089,7 +1089,7 @@ static s32 exfat_init_ext_entry(struct super_block *sb, struct chain_t *p_dir, }static void exfat_delete_dir_entry (struct super_block *sb,struct chain_t *p_dir, -s32 entry,s32 order,s32 num_entries) +s32 entry,s32 order,s32 num_entries) {int i;sector_t sector;
@@ -1256,7 +1256,7 @@ static s32 _walk_fat_chain(struct super_block *sb, struct chain_t *p_dir, }static s32 find_location (struct super_block *sb,struct chain_t *p_dir,s32 entry, -sector_t *sector,s32 *offset) +sector_t *sector,s32 *offset) {s32 off, ret;u32 clu =0 ;
@@ -1492,7 +1492,8 @@ void release_entry_set(struct entry_set_cache_t *es)/* search EMPTY CONTINUOUS "num_entries" entries */ static s32 search_deleted_or_unused_entry (struct super_block *sb, -struct chain_t *p_dir,s32 num_entries) +struct chain_t *p_dir, +s32 num_entries) {int i, dentry, num_empty =0 ;s32 dentries_per_clu;
@@ -1668,7 +1669,7 @@ static s32 find_empty_entry(struct inode *inode, struct chain_t *p_dir, s32 num_ }static s32 extract_uni_name_from_name_entry (struct name_dentry_t *ep,u16 *uniname, -s32 order) +s32 order) {int i, len =0 ;
@@ -1690,8 +1691,8 @@ static s32 extract_uni_name_from_name_entry(struct name_dentry_t *ep, u16 *unina* -2 : entry with the name does not exist */ static s32 exfat_find_dir_entry (struct super_block *sb,struct chain_t *p_dir, -struct uni_name_t *p_uniname,s32 num_entries, -struct dos_name_t *p_dosname,u32 type) +struct uni_name_t *p_uniname,s32 num_entries, +struct dos_name_t *p_dosname,u32 type) {int i =0 , dentry =0 , num_ext_entries =0 , len, step;s32 order =0 ;
@@ -1833,7 +1834,7 @@ static s32 exfat_find_dir_entry(struct super_block *sb, struct chain_t *p_dir, }static s32 exfat_count_ext_entries (struct super_block *sb,struct chain_t *p_dir, -s32 entry,struct dentry_t *p_entry) +s32 entry,struct dentry_t *p_entry) {int i, count =0 ;u32 type;
@@ -1996,8 +1997,8 @@ s32 get_num_entries_and_dos_name(struct super_block *sb, struct chain_t *p_dir, }static void exfat_get_uni_name_from_ext_entry (struct super_block *sb, -struct chain_t *p_dir,s32 entry, -u16 *uniname) +struct chain_t *p_dir,s32 entry, +u16 *uniname) {int i;struct dentry_t *ep;
drivers/staging/exfat/exfat_super.c +1 -1
@@ -365,7 +365,7 @@ static int ffsMountVol(struct super_block *sb)if (p_bd->sector_size < sb->s_blocksize) {printk (KERN_INFO "EXFAT: mount failed - sector size %d less than blocksize %ld\n" , - p_bd->sector_size, sb->s_blocksize); + p_bd->sector_size, sb->s_blocksize); ret = -EINVAL ; goto out; }
Signature · 1 line
2.17.1
It looks like you sent this on Jan 11 and it was applied already. Why are you resending?
regards,
dan carpenter
_______________________________________________
Linux-kernel-mentees mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees