From 6dbab77b6ddda309f56027f135f1eede33b76c2c Mon Sep 17 00:00:00 2001 From: Swetha Chikkaboraiah Date: Mon, 2 Mar 2020 10:55:12 +0530 Subject: kernel: Fix build errors with LLVM This patch intends to fix compilation errors while building kernel with LLVM toolchain. Change-Id: I76c4f97d8a0efb44434d54fb07cae23b050d2003 Signed-off-by: Swetha Chikkaboraiah --- fs/ecryptfs/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fs/ecryptfs/debug.c') diff --git a/fs/ecryptfs/debug.c b/fs/ecryptfs/debug.c index 0556af1adfb7..ea2c4a97fddc 100644 --- a/fs/ecryptfs/debug.c +++ b/fs/ecryptfs/debug.c @@ -139,11 +139,11 @@ void ecryptfs_dump_cipher(struct ecryptfs_crypt_stat *stat) if (!stat) return; - if (stat->cipher) + if (stat->cipher != NULL) ecryptfs_printk(KERN_DEBUG, "ecryptfs cipher is %s\n", stat->cipher); - if (stat->cipher_mode) + if (stat->cipher_mode != NULL) ecryptfs_printk(KERN_DEBUG, "ecryptfs cipher mode is %s\n", stat->cipher_mode); -- cgit v1.2.3