partitions: msdos: fix one-byte get_unaligned()
authorArnd Bergmann <arnd@arndb.de>
Fri, 7 May 2021 22:07:53 +0000 (00:07 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 17 May 2021 11:30:29 +0000 (13:30 +0200)
commit1b1774998b2dec837a57d729d1a22e5eb2d6d206
treefae8d2f4154f916a64d80541ec79098b4b87118f
parent778aaefb8e864fc61f850539ea479554dd4caea1
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>
block/partitions/ldm.c
block/partitions/ldm.h
block/partitions/msdos.c