Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dm: bow, req-crypt: Remove SECTOR_SIZE macro definition
After commit d24c407 from v4.9.236, one will expect following two warnings appear during compilation: /mnt/ssd/kernels/mido-4.9/drivers/md/dm-req-crypt.c:54:9: warning: 'SECTOR_SIZE' macro redefined [-Wmacro-redefined] #define SECTOR_SIZE 512 ^ /mnt/ssd/kernels/mido-4.9/include/linux/blkdev.h:873:9: note: previous definition is here #define SECTOR_SIZE (1 << SECTOR_SHIFT) ^ 1 warning generated. /mnt/ssd/kernels/mido-4.9/drivers/md/dm-bow.c:15:9: warning: 'SECTOR_SIZE' macro redefined [-Wmacro-redefined] #define SECTOR_SIZE 512 ^ /mnt/ssd/kernels/mido-4.9/include/linux/blkdev.h:873:9: note: previous definition is here #define SECTOR_SIZE (1 << SECTOR_SHIFT) ^ 1 warning generated. Since it has been moved globally, just remove local definition from these drivers. Signed-off-by: Albert I <[email protected]>
- Loading branch information