power: qpnp-fg-gen3: Silence an instance of -Wsizeof-array-div in clear_cycle_counter
Clang warns:
../drivers/power/supply/qcom/qpnp-fg-gen3.c:2611:32: warning: expression
does not compute the number of elements in this array; element type is
'u16' (aka 'unsigned short'), not 'u8 *' (aka 'unsigned char *')
[-Wsizeof-array-div]
sizeof(chip->cyc_ctr.count) / sizeof(u8 *),
~~~~~~~~~~~~~~~~~~~ ^
../drivers/power/supply/qcom/qpnp-fg-gen3.c:2611:32: note: place
parentheses around the 'sizeof(u8 *)' expression to silence this warning
1 warning generated.
Odds are this is intentional given the casting so silence the warning.
Change-Id: I3b886700bf9221a9f4f5968513f3b51a14749ab2
Signed-off-by:
Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by:
Dede Dindin Qudsy <xtrymind@gmail.com>
Git-commit: 7f1a7b9f26d8fe0ef2c6be6656e84580eca0ad1a
Git-Repo: https://github.com/travarilo/kernel_asus_sdm660/commit/
Signed-off-by:
Swetha Chikkaboraiah <schikk@codeaurora.org>
Loading
Please register or sign in to comment