From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: drivers/clocksource/arc_timer.c:171:17: sparse: sparse: cast from unknown type
Date: Sat, 2 Dec 2023 02:15:43 +0800 [thread overview]
Message-ID: <202312020221.PC4PTB56-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "low confidence static check warning: drivers/clocksource/arc_timer.c:171:17: sparse: sparse: cast from unknown type"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Vineet Gupta <vgupta@synopsys.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 994d5c58e50e91bb02c7be4a91d5186292a895c8
commit: c4c9a040ecb7297e011e579f5a9cc280e42d725f clocksource: import ARC timer driver
date: 7 years ago
:::::: branch date: 13 hours ago
:::::: commit date: 7 years ago
config: arc-randconfig-r111-20231107 (https://download.01.org/0day-ci/archive/20231202/202312020221.PC4PTB56-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231202/202312020221.PC4PTB56-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202312020221.PC4PTB56-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/clocksource/arc_timer.c:67:13: sparse: sparse: undefined identifier '__builtin_arc_lr'
drivers/clocksource/arc_timer.c:70:13: sparse: sparse: undefined identifier '__builtin_arc_lr'
drivers/clocksource/arc_timer.c:90:9: sparse: sparse: undefined identifier '__builtin_arc_lr'
drivers/clocksource/arc_timer.c:120:21: sparse: sparse: undefined identifier '__builtin_arc_lr'
drivers/clocksource/arc_timer.c:121:21: sparse: sparse: undefined identifier '__builtin_arc_lr'
drivers/clocksource/arc_timer.c:122:26: sparse: sparse: undefined identifier '__builtin_arc_lr'
drivers/clocksource/arc_timer.c:141:9: sparse: sparse: undefined identifier '__builtin_arc_lr'
drivers/clocksource/arc_timer.c:157:9: sparse: sparse: undefined identifier '__builtin_arc_sr'
drivers/clocksource/arc_timer.c:171:26: sparse: sparse: undefined identifier '__builtin_arc_lr'
>> drivers/clocksource/arc_timer.c:171:17: sparse: sparse: cast from unknown type
drivers/clocksource/arc_timer.c:194:9: sparse: sparse: undefined identifier '__builtin_arc_sr'
drivers/clocksource/arc_timer.c:195:9: sparse: sparse: undefined identifier '__builtin_arc_sr'
drivers/clocksource/arc_timer.c:196:9: sparse: sparse: undefined identifier '__builtin_arc_sr'
drivers/clocksource/arc_timer.c:211:9: sparse: sparse: undefined identifier '__builtin_arc_sr'
drivers/clocksource/arc_timer.c:212:9: sparse: sparse: undefined identifier '__builtin_arc_sr'
drivers/clocksource/arc_timer.c:214:9: sparse: sparse: undefined identifier '__builtin_arc_sr'
drivers/clocksource/arc_timer.c:258:9: sparse: sparse: undefined identifier '__builtin_arc_sr'
drivers/clocksource/arc_timer.c:305:59: sparse: sparse: incorrect type in argument 4 (different address spaces) @@ expected void [noderef] <asn:3> *percpu_dev_id @@ got struct clock_event_device *evt @@
drivers/clocksource/arc_timer.c:305:59: sparse: expected void [noderef] <asn:3> *percpu_dev_id
drivers/clocksource/arc_timer.c:305:59: sparse: got struct clock_event_device *evt
drivers/clocksource/arc_timer.c: note: in included file:
include/soc/arc/mcip.h:88:9: sparse: sparse: undefined identifier '__builtin_arc_sr'
vim +171 drivers/clocksource/arc_timer.c
e608b53ea863a92 arch/arc/kernel/time.c Vineet Gupta 2016-01-01 164
e608b53ea863a92 arch/arc/kernel/time.c Vineet Gupta 2016-01-01 165 /*
e608b53ea863a92 arch/arc/kernel/time.c Vineet Gupta 2016-01-01 166 * 32bit TIMER1 to keep counting monotonically and wraparound
e608b53ea863a92 arch/arc/kernel/time.c Vineet Gupta 2016-01-01 167 */
d8005e6b95268cb arch/arc/kernel/time.c Vineet Gupta 2013-01-18 168
e608b53ea863a92 arch/arc/kernel/time.c Vineet Gupta 2016-01-01 169 static cycle_t arc_read_timer1(struct clocksource *cs)
d8005e6b95268cb arch/arc/kernel/time.c Vineet Gupta 2013-01-18 170 {
d8005e6b95268cb arch/arc/kernel/time.c Vineet Gupta 2013-01-18 @171 return (cycle_t) read_aux_reg(ARC_REG_TIMER1_CNT);
d8005e6b95268cb arch/arc/kernel/time.c Vineet Gupta 2013-01-18 172 }
d8005e6b95268cb arch/arc/kernel/time.c Vineet Gupta 2013-01-18 173
:::::: The code at line 171 was first introduced by commit
:::::: d8005e6b95268cbb50db3773d5f180c32a9434fe ARC: Timers/counters/delay management
:::::: TO: Vineet Gupta <vgupta@synopsys.com>
:::::: CC: Vineet Gupta <vgupta@synopsys.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-12-01 18:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-01 18:15 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-14 11:34 drivers/clocksource/arc_timer.c:171:17: sparse: sparse: cast from unknown type 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=202312020221.PC4PTB56-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/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.