diff mbox

btrfs: btrfs_assert fix coding style

Message ID 1458089715-597-1-git-send-email-anand.jain@oracle.com (mailing list archive)
State Superseded
Headers show

Commit Message

Anand Jain March 16, 2016, 12:55 a.m. UTC
Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 fs/btrfs/ctree.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Anand Jain March 16, 2016, 3:57 a.m. UTC | #1
Ignore. NACK.

Thanks, Anand


On 03/16/2016 08:55 AM, Anand Jain wrote:
> Signed-off-by: Anand Jain <anand.jain@oracle.com>
> ---
>   fs/btrfs/ctree.h | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
> index c9fb7b9ca8a4..5b5002a242e4 100644
> --- a/fs/btrfs/ctree.h
> +++ b/fs/btrfs/ctree.h
> @@ -4283,8 +4283,8 @@ static inline void assfail(char *expr, char *file, int line)
>   #define ASSERT(expr)	((void)0)
>   #endif
>
> -#define btrfs_assert()
> -__printf(5, 6)
> +#define btrfs_assert() __printf(5, 6)
> +
>   __cold
>   void __btrfs_std_error(struct btrfs_fs_info *fs_info, const char *function,
>   		     unsigned int line, int errno, const char *fmt, ...);
>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index c9fb7b9ca8a4..5b5002a242e4 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -4283,8 +4283,8 @@  static inline void assfail(char *expr, char *file, int line)
 #define ASSERT(expr)	((void)0)
 #endif
 
-#define btrfs_assert()
-__printf(5, 6)
+#define btrfs_assert() __printf(5, 6)
+
 __cold
 void __btrfs_std_error(struct btrfs_fs_info *fs_info, const char *function,
 		     unsigned int line, int errno, const char *fmt, ...);