All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Joel Stanley <joel@jms.id.au>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [shenki:aspeed-6.9-rebase 724/1143] drivers/net/can/aspeed_can.c:301:6: warning: no previous prototype for 'aspeed_can_err_init'
Date: Sat, 4 May 2024 20:47:17 +0800	[thread overview]
Message-ID: <202405042003.wbWT0aDv-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-05-04 12:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202405042003.wbWT0aDv-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=joel@jms.id.au \
    --cc=oe-kbuild-all@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.