Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit fee0db1f authored by derfelot's avatar derfelot
Browse files

md: dm-req-crypt: Guard definition of SECTOR_SIZE

The definitions of SECTOR_SIZE and SECTOR_SHIFT were moved to include/linux/blkdev.h with the upstream commit d094b3d8

This results in a redefinition warning in dm-req-crypt.c

Let's guard the definition instead of removing it completely.
parent 4e68d6ff
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -45,7 +45,9 @@
#define KEY_SIZE_XTS 32
#define AES_XTS_IV_LEN 16
#define MAX_MSM_ICE_KEY_LUT_SIZE 32
#ifndef SECTOR_SIZE
#define SECTOR_SIZE 512
#endif
#define MIN_CRYPTO_TRANSFER_SIZE (4 * 1024)

#define DM_REQ_CRYPT_ERROR -1