eCryptfs: add a semicolon
authorTom Rix <trix@redhat.com>
Fri, 27 Nov 2020 16:05:13 +0000 (08:05 -0800)
committerTyler Hicks <code@tyhicks.com>
Sat, 30 Jan 2021 17:09:05 +0000 (17:09 +0000)
Function like macros should have a semicolon.

Signed-off-by: Tom Rix <trix@redhat.com>
[tyhicks: Remove the trailing semicolin from the macro's definition, as
          suggested by Joe Perches]
Signed-off-by: Tyler Hicks <code@tyhicks.com>
fs/ecryptfs/ecryptfs_kernel.h
fs/ecryptfs/keystore.c

index e6ac78c62ca4929efd9c22465659a7a84b6ec3ee..4a62a7dcc4f5e6be35b0fbda7f0f4fdf18419b9a 100644 (file)
@@ -528,7 +528,7 @@ ecryptfs_dentry_to_lower_path(struct dentry *dentry)
 }
 
 #define ecryptfs_printk(type, fmt, arg...) \
-        __ecryptfs_printk(type "%s: " fmt, __func__, ## arg);
+        __ecryptfs_printk(type "%s: " fmt, __func__, ## arg)
 __printf(1, 2)
 void __ecryptfs_printk(const char *fmt, ...);
 
index f6a17d259db74dc2342d1252ca143eeae927d9fa..2abd219cfeec62bfcbedaadb65dffb314f36fab2 100644 (file)
@@ -1172,7 +1172,7 @@ decrypt_pki_encrypted_session_key(struct ecryptfs_auth_tok *auth_tok,
        rc = ecryptfs_cipher_code_to_string(crypt_stat->cipher, cipher_code);
        if (rc) {
                ecryptfs_printk(KERN_ERR, "Cipher code [%d] is invalid\n",
-                               cipher_code)
+                               cipher_code);
                goto out;
        }
        crypt_stat->flags |= ECRYPTFS_KEY_VALID;