Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c65bb885 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Swetha Chikkaboraiah
Browse files

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: default avatarNathan Chancellor <natechancellor@gmail.com>
Signed-off-by: default avatarDede Dindin Qudsy <xtrymind@gmail.com>
Git-commit: 7f1a7b9f26d8fe0ef2c6be6656e84580eca0ad1a
Git-Repo: https://github.com/travarilo/kernel_asus_sdm660/commit/


Signed-off-by: default avatarSwetha Chikkaboraiah <schikk@codeaurora.org>
parent 03b06d3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment