![]() * drivers/media/platform/renesas/rcar_fdp1.c:691:9: warning: use of NULL 'job' where non-null expected 5:11 kernel test robot 0 siblings, 0 replies 5+ messages in threadįrom: kernel test robot 5:11 UTC ( / raw) :::::: The code at line 691 was first introduced by commit | 245 | #define local_irq_restore(flags) do Ĥ710b752e029f3 drivers/media/platform/rcar_fdp1.c Kieran Bingham 695 Include/linux/irqflags.h:245:39: note: in expansion of macro 'raw_local_irq_restore' Include/linux/irqflags.h:183:17: note: in expansion of macro 'raw_check_bogus_irq_restore' ![]() | | (8) following 'false' branch (when 'ctx' is non-NULL). | 1305 | static void device_frame_end(struct fdp1_dev *fdp1, | | (6) calling 'device_frame_end' from 'fdp1_irq_handler' | 2247 | device_frame_end(fdp1, VB2_BUF_STATE_ERROR) | 2205 | static irqreturn_t fdp1_irq_handler(int irq, void *dev_id) > drivers/media/platform/renesas/rcar_fdp1.c:691:9: warning: use of NULL 'job' where non-null expected Ħ91 | memset(job, 0, sizeof(struct fdp1_job)) | Link: warnings: (new ones prefixed by >)ĭrivers/media/platform/renesas/rcar_fdp1.c: In function 'fdp1_job_free': If you fix the issue, kindly add following tag where applicable Git checkout ee4a77a32b39064fdab0aa2b36bbd35ebf57e077ĬOMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross ARCH=arm KBUILD_USERCFLAGS='-fanalyzer -Wno-error' olddefconfigĬOMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross ARCH=arm KBUILD_USERCFLAGS='-fanalyzer -Wno-error' :::::: Manual check reason: "low confidence static check warning: drivers/media/platform/renesas/rcar_fdp1.c:691:9: warning: use of NULL 'job' where non-null expected " :::::: Manual check reason: "low confidence bisect report" #define min(x, y) _careful_cmp(x, y, imsf_multiaddr Ģ449 struct inet_sock *inet = inet_sk(sk) Ģ450 struct ip_sf_socklist *newpsl, *psl Ģ456 if (msf->imsf_fmode != MCAST_INCLUDE &Ģ462 imr.imr_multiaddr.s_addr = msf->imsf_multiaddr Ģ463 imr.imr_address.Drivers/media/platform/renesas/rcar_fdp1.c:691:9: warning: use of NULL 'job' where non-null expected archive mirror help / color / mirror / Atom feed * drivers/media/platform/renesas/rcar_fdp1.c:691:9: warning: use of NULL 'job' where non-null expected 2:56 kernel test robot 0 siblings, 0 replies 5+ messages in threadįrom: kernel test robot 2:56 UTC ( / raw) #define min(x, y) _careful_cmp(x, y, > net/ipv4/igmp.c:2621:14: warning: comparison of distinct pointer types ('typeof (count) *' (aka 'int *') and 'typeof (gsf->gf_numsrc) *' (aka 'unsigned int *')) Include/linux/minmax.h:45:19: note: expanded from macro 'min' > net/ipv4/igmp.c:2574:14: warning: comparison of distinct pointer types ('typeof (count) *' (aka 'int *') and 'typeof (msf->imsf_numsrc) *' (aka 'unsigned int *')) Ĭopycount = min(count, msf->imsf_numsrc) + copycount = min(count, gsf->gf_numsrc) ![]() copycount = count gf_numsrc ? count : gsf->gf_numsrc Msf_size = -2618,7 +2618,7 int ip_mc_gsfget(struct sock *sk, struct group_filter *gsf, Len = flex_array_size(psl, sl_addr, copycount) + copycount = min(count, msf->imsf_numsrc) copycount = count imsf_numsrc ? count : msf->imsf_numsrc Net/ipv4/ip_sockglue.c:285: WARNING opportunity for min()Ģ files changed, 3 insertions(+), 3 deletions(-)ĭiff -git a/net/ipv4/igmp.c b/net/ipv4/igmp.c ![]() Net/ipv4/igmp.c:2574: WARNING opportunity for min() Net/ipv4/igmp.c:2621: WARNING opportunity for min() To: davem, yoshfuji, dsahern, edumazet, kuba, pabeni +Cc: netdev, linux-kernel ` (3 more replies) 0 siblings, 4 replies 5+ messages in thread Net: replace ternary operator with min() Netdev Archive on help / color / mirror / Atom feed * net: replace ternary operator with min() 13:07 KaiLong Wang
0 Comments
Leave a Reply. |