From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
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 [thread overview]
Message-ID: <202208091010.XSofB7HT-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3576 bytes --]
BCC: lkp(a)intel.com
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Mark Rutland <mark.rutland@arm.com>
CC: Peter Zijlstra <peterz@infradead.org>
CC: Palmer Dabbelt <palmerdabbelt@google.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5d5d353bed32dc3ea52e2619e0d1c60b17133b91
commit: 9efbb355831014ca004d241db8ede182c019b9bf locking/atomic: riscv: move 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/archive/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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
New smatch warnings:
arch/riscv/include/asm/atomic.h:204 arch_atomic_fetch_add_unless() warn: inconsistent indenting
arch/riscv/include/asm/atomic.h:204 arch_atomic_fetch_add_unless() warn: inconsistent indenting
arch/riscv/include/asm/atomic.h:204 arch_atomic_fetch_add_unless() warn: inconsistent indenting
Old smatch warnings:
net/ipv6/ip6_input.c:192 ip6_rcv_core() warn: potential spectre issue '_idev->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 '_dev' 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 provide a full barrier on success. */
9efbb355831014 Mark Rutland 2021-05-25 200 static __always_inline int arch_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]"=&r" (prev), [rc]"=&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_add_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 <palmer@dabbelt.com>
:::::: CC: Palmer Dabbelt <palmer@dabbelt.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next reply other threads:[~2022-08-09 2:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-09 2:09 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-08 13:09 arch/riscv/include/asm/atomic.h:204 arch_atomic_fetch_add_unless() warn: inconsistent indenting kernel test robot
2021-12-10 7:40 kernel test robot
2021-12-10 7:40 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202208091010.XSofB7HT-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.