CC: [email protected] BCC: [email protected] CC: [email protected] TO: "Christian König" <[email protected]> CC: Rob Clark <[email protected]> CC: Sean Paul <[email protected]> CC: David Airlie <[email protected]> CC: Daniel Vetter <[email protected]> CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected]
From: kernel test robot <[email protected]> drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c:141:14-16: WARNING opportunity for min() Check for opencoded min(), max() implementations. Generated patches sometimes require adding a cast to fix compile warning. Warnings/patches scope intentionally limited to a function body. Generated by: scripts/coccinelle/misc/minmax.cocci Reported-by: kernel test robot <[email protected]> Signed-off-by: kernel test robot <[email protected]> --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 85c7000fda0029ec16569b1eec8fd3a8d026be73 commit: b3ed524f84f573ece1aa2f26e9db3c34a593e0d1 drm/msm: allow compile_test on !ARM :::::: branch date: 5 hours ago :::::: commit date: 6 months ago Please take the patch only if it's a positive warning. Thanks! drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c @@ -138,7 +138,7 @@ static inline u32 pll_get_integloop_gain base <<= digclk_divsel; - return (base <= 2046 ? base : 2046); + return min(base, 2046); } static inline u32 pll_get_pll_cmp(u64 fdata, unsigned long ref_clk) _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
