]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: rawnand: vf610: Fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Fri, 2 Jan 2026 12:49:32 +0000 (13:49 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 19 Jan 2026 10:13:43 +0000 (11:13 +0100)
commit3b9605987e602adc5d0f4b0d08ebb32ac13279e3
tree00f8f156fb981ba131fc07203c4f2bc3db251802
parent42983837ef2bba8a3fb984055eac814bccab8a1e
mtd: rawnand: vf610: Fix Wvoid-pointer-to-enum-cast warning

"nfc->variant" is an enum, thus cast of pointer on 64-bit compile test
with clang W=1 causes:

  vf610_nfc.c:843:17: error: cast to smaller integer type 'enum vf610_nfc_variant' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/vf610_nfc.c