summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/qcom_nandc.c
diff options
context:
space:
mode:
authorJustin Stitt <justinstitt@google.com>2023-08-17 17:52:21 +0000
committerMiquel Raynal <miquel.raynal@bootlin.com>2023-08-18 16:38:35 +0200
commitb9e002a34420e5ba25d4283be870c48e0c9e005f (patch)
tree262a3ab8b2708647844f6cf0a0a03730840c8ad6 /drivers/mtd/nand/raw/qcom_nandc.c
parenta5a88125d00612586e941ae13e7fcf36ba8f18a7 (diff)
downloadlinux-stable-b9e002a34420e5ba25d4283be870c48e0c9e005f.tar.gz
linux-stable-b9e002a34420e5ba25d4283be870c48e0c9e005f.tar.bz2
linux-stable-b9e002a34420e5ba25d4283be870c48e0c9e005f.zip
mtd: rawnand: fix -Wvoid-pointer-to-enum-cast warning
When building with clang 18 I see the following warning: | drivers/mtd/nand/raw/vf610_nfc.c:853:17: warning: cast to smaller integer | type 'enum vf610_nfc_variant' from 'const void *' [-Wvoid-pointer-to-enum-cast] | 853 | nfc->variant = (enum vf610_nfc_variant)of_id->data; This is due to the fact that `of_id->data` is a void* while `enum vf610_nfc_variant` has the size of an int. Cast `of_id->data` to a uintptr_t to silence the above warning for clang builds using W=1. Link: https://github.com/ClangBuiltLinux/linux/issues/1910 Reported-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Justin Stitt <justinstitt@google.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20230817-void-drivers-mtd-nand-raw-vf610_nfc-v2-1-870a7c948c44@google.com
Diffstat (limited to 'drivers/mtd/nand/raw/qcom_nandc.c')
0 files changed, 0 insertions, 0 deletions