partitions: msdos: fix one-byte get_unaligned()
authorArnd Bergmann <arnd@arndb.de>
Fri, 7 May 2021 22:07:53 +0000 (00:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:02:04 +0000 (16:02 +0200)
commit3e15a7cc7e5eab5ea620dd7770a2d7ebd062b297
treeb8649c8676e5f02d350a8740a61222e0240ca9d5
parent4b13f6586323bc4d1c4832eac40dc4914b911a78
partitions: msdos: fix one-byte get_unaligned()

[ Upstream commit 1b1774998b2dec837a57d729d1a22e5eb2d6d206 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/partitions/ldm.c
block/partitions/ldm.h
block/partitions/msdos.c