diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-05-08 01:07:53 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2021-05-17 14:30:29 +0300 |
commit | 1b1774998b2dec837a57d729d1a22e5eb2d6d206 (patch) | |
tree | fae8d2f4154f916a64d80541ec79098b4b87118f /block/partitions/ldm.h | |
parent | 778aaefb8e864fc61f850539ea479554dd4caea1 (diff) | |
download | linux-1b1774998b2dec837a57d729d1a22e5eb2d6d206.tar.xz |
partitions: msdos: fix one-byte get_unaligned()
A simplification of get_unaligned() clashes with callers that pass
in a character pointer, causing a harmless warning like:
block/partitions/msdos.c: In function 'msdos_partition':
include/asm-generic/unaligned.h:13:22: warning: 'packed' attribute ignored for field of type 'u8' {aka 'unsigned char'} [-Wattributes]
Remove the SYS_IND() macro with the get_unaligned() call
and just use the ->ind field directly.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'block/partitions/ldm.h')
-rw-r--r-- | block/partitions/ldm.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/partitions/ldm.h b/block/partitions/ldm.h index d8d6beaa72c4..8693704dcf5e 100644 --- a/block/partitions/ldm.h +++ b/block/partitions/ldm.h @@ -84,9 +84,6 @@ struct parsed_partitions; #define TOC_BITMAP1 "config" /* Names of the two defined */ #define TOC_BITMAP2 "log" /* bitmaps in the TOCBLOCK. */ -/* Borrowed from msdos.c */ -#define SYS_IND(p) (get_unaligned(&(p)->sys_ind)) - struct frag { /* VBLK Fragment handling */ struct list_head list; u32 group; |