dm crypt: Annotate struct crypt_config with __counted_by
[linux-2.6-microblaze.git] / drivers / md / dm-crypt.c
index f2662c2..f276e94 100644 (file)
@@ -224,7 +224,7 @@ struct crypt_config {
        struct mutex bio_alloc_lock;
 
        u8 *authenc_key; /* space for keys in authenc() format (if used) */
-       u8 key[];
+       u8 key[] __counted_by(key_size);
 };
 
 #define MIN_IOS                64