From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4861073090062314412==" MIME-Version: 1.0 From: kernel test robot Subject: arch/riscv/include/asm/atomic.h:204 arch_atomic_fetch_add_unless() warn: inconsistent indenting Date: Tue, 09 Aug 2022 10:09:59 +0800 Message-ID: <202208091010.XSofB7HT-lkp@intel.com> List-Id: To: kbuild@lists.01.org --===============4861073090062314412== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable BCC: lkp(a)intel.com CC: kbuild-all(a)lists.01.org CC: linux-kernel(a)vger.kernel.org TO: Mark Rutland CC: Peter Zijlstra CC: Palmer Dabbelt tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: 5d5d353bed32dc3ea52e2619e0d1c60b17133b91 commit: 9efbb355831014ca004d241db8ede182c019b9bf locking/atomic: riscv: mov= e to ARCH_ATOMIC date: 1 year, 2 months ago :::::: branch date: 4 hours ago :::::: commit date: 1 year, 2 months ago config: riscv-randconfig-m031-20220808 (https://download.01.org/0day-ci/arc= hive/20220809/202208091010.XSofB7HT-lkp(a)intel.com/config) compiler: riscv32-linux-gcc (GCC) 12.1.0 If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot Reported-by: Dan Carpenter New smatch warnings: arch/riscv/include/asm/atomic.h:204 arch_atomic_fetch_add_unless() warn: in= consistent indenting arch/riscv/include/asm/atomic.h:204 arch_atomic_fetch_add_unless() warn: in= consistent indenting arch/riscv/include/asm/atomic.h:204 arch_atomic_fetch_add_unless() warn: in= consistent indenting Old smatch warnings: net/ipv6/ip6_input.c:192 ip6_rcv_core() warn: potential spectre issue '_ide= v->stats.ipv6->mibs' [w] net/ipv6/ip6_input.c:192 ip6_rcv_core() warn: potential spectre issue 'net-= >mib.ipv6_statistics->mibs' [w] net/ipv6/ip6_input.c:373 ip6_protocol_deliver_rcu() warn: potential spectre= issue 'inet6_protos' [w] net/ipv6/route.c:3304 ip6_route_check_nh() error: we previously assumed '_d= ev' could be null (see line 3264) vim +204 arch/riscv/include/asm/atomic.h fab957c11efe2f Palmer Dabbelt 2017-07-10 198 = 5ce6c1f3535fa8 Andrea Parri 2018-03-09 199 /* This is required to provi= de a full barrier on success. */ 9efbb355831014 Mark Rutland 2021-05-25 200 static __always_inline int a= rch_atomic_fetch_add_unless(atomic_t *v, int a, int u) fab957c11efe2f Palmer Dabbelt 2017-07-10 201 { fab957c11efe2f Palmer Dabbelt 2017-07-10 202 int prev, rc; fab957c11efe2f Palmer Dabbelt 2017-07-10 203 = fab957c11efe2f Palmer Dabbelt 2017-07-10 @204 __asm__ __volatile__ ( 5ce6c1f3535fa8 Andrea Parri 2018-03-09 205 "0: lr.w %[p], %[c]\n" 5ce6c1f3535fa8 Andrea Parri 2018-03-09 206 " beq %[p], %[u], 1f= \n" 5ce6c1f3535fa8 Andrea Parri 2018-03-09 207 " add %[rc], %[p], %[= a]\n" 5ce6c1f3535fa8 Andrea Parri 2018-03-09 208 " sc.w.rl %[rc], %[rc], %= [c]\n" 5ce6c1f3535fa8 Andrea Parri 2018-03-09 209 " bnez %[rc], 0b\n" 5ce6c1f3535fa8 Andrea Parri 2018-03-09 210 " fence rw, rw\n" 5ce6c1f3535fa8 Andrea Parri 2018-03-09 211 "1:\n" fab957c11efe2f Palmer Dabbelt 2017-07-10 212 : [p]"=3D&r" (prev), [rc]"= =3D&r" (rc), [c]"+A" (v->counter) fab957c11efe2f Palmer Dabbelt 2017-07-10 213 : [a]"r" (a), [u]"r" (u) fab957c11efe2f Palmer Dabbelt 2017-07-10 214 : "memory"); fab957c11efe2f Palmer Dabbelt 2017-07-10 215 return prev; fab957c11efe2f Palmer Dabbelt 2017-07-10 216 } 9efbb355831014 Mark Rutland 2021-05-25 217 #define arch_atomic_fetch_ad= d_unless arch_atomic_fetch_add_unless fab957c11efe2f Palmer Dabbelt 2017-07-10 218 = :::::: The code at line 204 was first introduced by commit :::::: fab957c11efe2f405e08b9f0d080524bc2631428 RISC-V: Atomic and Locking = Code :::::: TO: Palmer Dabbelt :::::: CC: Palmer Dabbelt -- = 0-DAY CI Kernel Test Service https://01.org/lkp --===============4861073090062314412==--