public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* adv748x: missing parens
@ 2019-10-22  7:29 Dmitry Vyukov
  2019-10-22 13:02 ` Gustavo A. R. Silva
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Vyukov @ 2019-10-22  7:29 UTC (permalink / raw)
  To: kieran.bingham, mchehab, linux-media, LKML, Gustavo A. R. Silva

Hi Kieran,

Building kernel with clang gives me:

drivers/media/i2c/adv748x/adv748x-afe.c:452:12: warning: operator '?:'
has lower precedence than '|'; '|' will be evaluated first
[-Wbitwise-conditional-parentheses]

ret = sdp_clrset(state, ADV748X_SDP_FRP, ADV748X_SDP_FRP_MASK, enable
? ctrl->val - 1 : 0);
#define sdp_clrset(s, r, m, v) sdp_write(s, r, (sdp_read(s, r) & ~m) | v)

This is on linux-next commit a722f75b2923b4fd44c17e7255e822ac48fe85f0
Date:   Tue Oct 22 16:17:17 2019 +1100
    Add linux-next specific files for 20191022

It seems sdp_clrset needs some more parens.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-22 13:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-22  7:29 adv748x: missing parens Dmitry Vyukov
2019-10-22 13:02 ` Gustavo A. R. Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox