* [shenki:aspeed-6.9-rebase 724/1143] drivers/net/can/aspeed_can.c:301:6: warning: no previous prototype for 'aspeed_can_err_init'
@ 2024-05-04 12:47 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-04 12:47 UTC (permalink / raw)
To: Joel Stanley; +Cc: oe-kbuild-all
tree: https://github.com/shenki/linux aspeed-6.9-rebase
head: 9bdcee91eb5d9149678acb9d066e9dafbd026721
commit: 2ee73951fe1501d2112dffe0779046c31b9e84c8 [724/1143] can: aspeed: Can driver initial support
config: microblaze-allmodconfig (https://download.01.org/0day-ci/archive/20240504/202405042003.wbWT0aDv-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240504/202405042003.wbWT0aDv-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/oe-kbuild-all/202405042003.wbWT0aDv-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/can/aspeed_can.c:301:6: warning: no previous prototype for 'aspeed_can_err_init' [-Wmissing-prototypes]
301 | void aspeed_can_err_init(struct net_device *ndev)
| ^~~~~~~~~~~~~~~~~~~
>> drivers/net/can/aspeed_can.c:312:6: warning: no previous prototype for 'aspeed_can_interrupt_conf' [-Wmissing-prototypes]
312 | void aspeed_can_interrupt_conf(struct net_device *ndev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/can/aspeed_can.c: In function 'aspeed_can_err_interrupt':
>> drivers/net/can/aspeed_can.c:836:13: warning: variable 'tecnt' set but not used [-Wunused-but-set-variable]
836 | u32 tecnt;
| ^~~~~
>> drivers/net/can/aspeed_can.c:835:13: warning: variable 'recnt' set but not used [-Wunused-but-set-variable]
835 | u32 recnt;
| ^~~~~
vim +/aspeed_can_err_init +301 drivers/net/can/aspeed_can.c
300
> 301 void aspeed_can_err_init(struct net_device *ndev)
302 {
303 struct aspeed_can_priv *priv = netdev_priv(ndev);
304 u32 reg_val;
305
306 reg_val = (STAT_AFWL << CAN_ERR_AFWL_BITOFF) & CAN_ERR_AFWL_MASK;
307 reg_val |= (STAT_EWL << CAN_ERR_EWL_BITOFF) & CAN_ERR_EWL_MASK;
308
309 writel(reg_val, priv->reg_base + CAN_ERR_STAT);
310 }
311
> 312 void aspeed_can_interrupt_conf(struct net_device *ndev)
313 {
314 struct aspeed_can_priv *priv = netdev_priv(ndev);
315 u32 inte;
316
317 inte = CAN_INT_EIE_BIT | CAN_INT_TSIE_BIT | CAN_INT_TPIE_BIT |
318 CAN_INT_RAFIE_BIT | CAN_INT_RFIE_BIT | CAN_INT_ROIE_BIT |
319 CAN_INT_RIE_BIT | CAN_INT_BEIE_BIT | CAN_INT_ALIE_BIT |
320 CAN_INT_EPIE_BIT;
321
322 writel(inte, priv->reg_base + CAN_INTE);
323 }
324
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-04 12:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-04 12:47 [shenki:aspeed-6.9-rebase 724/1143] drivers/net/can/aspeed_can.c:301:6: warning: no previous prototype for 'aspeed_can_err_init' kernel test robot
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.