summaryrefslogtreecommitdiffstats
path: root/fs/befs/befs.h
diff options
context:
space:
mode:
authorLuis de Bethencourt <luisbg@osg.samsung.com>2016-08-14 18:31:38 +0100
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-12-22 11:25:22 +0000
commit12ecb38d03cff0c6d09262f0334f4ded3242ae87 (patch)
treead26bcc331a779cda295dee9d145cb7251e226e7 /fs/befs/befs.h
parent62b80719dfe126f73e417d7011dfb5ef53c6a203 (diff)
downloadlinux-stable-12ecb38d03cff0c6d09262f0334f4ded3242ae87.tar.gz
linux-stable-12ecb38d03cff0c6d09262f0334f4ded3242ae87.tar.bz2
linux-stable-12ecb38d03cff0c6d09262f0334f4ded3242ae87.zip
befs: fix style issues in header files
Fixing checkpatch.pl issues in befs header files: WARNING: Missing a blank line after declarations + befs_inode_addr iaddr; + iaddr.allocation_group = blockno >> BEFS_SB(sb)->ag_shift; WARNING: space prohibited between function name and open parenthesis '(' + return BEFS_SB(sb)->block_size / sizeof (befs_disk_inode_addr); ERROR: "foo * bar" should be "foo *bar" + const char *key, befs_off_t * value); ERROR: Macros with complex values should be enclosed in parentheses +#define PACKED __attribute__ ((__packed__)) Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Diffstat (limited to 'fs/befs/befs.h')
-rw-r--r--fs/befs/befs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/befs/befs.h b/fs/befs/befs.h
index c6bad51d8ec7..b914cfb03820 100644
--- a/fs/befs/befs.h
+++ b/fs/befs/befs.h
@@ -129,6 +129,7 @@ static inline befs_inode_addr
blockno2iaddr(struct super_block *sb, befs_blocknr_t blockno)
{
befs_inode_addr iaddr;
+
iaddr.allocation_group = blockno >> BEFS_SB(sb)->ag_shift;
iaddr.start =
blockno - (iaddr.allocation_group << BEFS_SB(sb)->ag_shift);
@@ -140,7 +141,7 @@ blockno2iaddr(struct super_block *sb, befs_blocknr_t blockno)
static inline unsigned int
befs_iaddrs_per_block(struct super_block *sb)
{
- return BEFS_SB(sb)->block_size / sizeof (befs_disk_inode_addr);
+ return BEFS_SB(sb)->block_size / sizeof(befs_disk_inode_addr);
}
#include "endian.h"