summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2019-09-28 13:33:24 -0700
committerMichael Bestas <mkbestas@lineageos.org>2020-02-02 01:41:06 +0200
commit82d659482586d39a96528d28f7560505189604f0 (patch)
tree6b24575fe3a25eced9077976285a53e641bdcc5d /scripts/gdb/linux/modules.py
parentf4e569d56adbce58a324ec358a50b5fdd1108e11 (diff)
clk: msm: Don't implicitly convert double to boolean in FIXDIV macros
Clang warns several times in the clk drivers: ../drivers/clk/msm/clock-gcc-cobalt.c:264:33: warning: implicit conversion from 'double' to '_Bool' changes value from 2.5 to true [-Wliteral-conversion] F( 240000000, gpll0_out_main, 2.5, 0, 0), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ../drivers/clk/msm/clock-gcc-cobalt.c:53:41: note: expanded from macro 'F' .div_src_val = BVAL(4, 0, (int)FIXDIV(div)) \ ~~~~~~~^~~~ ../drivers/clk/msm/clock-gcc-cobalt.c:44:22: note: expanded from macro 'FIXDIV' #define FIXDIV(div) (div ? (2 * (div) - 1) : (0)) ^~~ ~ ../include/linux/clk/msm-clk-provider.h:36:32: note: expanded from macro 'BVAL' #define BVAL(msb, lsb, val) (((val) << lsb) & BM(msb, lsb)) ^~~ Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions