Commit 052da8f4 authored by Tiffany Yang's avatar Tiffany Yang Committed by Treehugger Robot
Browse files

ANDROID: Fix implicit enum conversion in ufs



A backport for HID support declared new attribute idns as part of a new
anonymous enum instead of enum attr_idn to preserve the android16-6.12
ABI. These were not cast to the correct enum when used, causing the
kernelci build errors like the following:

drivers/ufs/core/ufs-sysfs.c: In function ‘analysis_trigger_store’:
drivers/ufs/core/ufs-sysfs.c:1681:25: error: implicit conversion from ‘enum <anonymous>’ to ‘enum attr_idn’ [-Werror=enum-conversion]
 1681 |                         QUERY_ATTR_IDN_HID_DEFRAG_OPERATION, &mode);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Cast QUERY_ATTR_IDN_HID_* to enum attr_idn.

Fixes: ba125a42 ("BACKPORT: FROMGIT: scsi: ufs: core: Add HID support")
Change-Id: I9c690b3feb17f64d54cb218acba92ce4b128e4de
Signed-off-by: default avatarTiffany Yang <ynaffit@google.com>
parent 78c6c493
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment