mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Justin Lai <justinlai0215@realtek.com>, kuba@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, davem@davemloft.net,
	edumazet@google.com, pabeni@redhat.com,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	andrew@lunn.ch, pkshih@realtek.com, larry.chiu@realtek.com,
	Justin Lai <justinlai0215@realtek.com>
Subject: Re: [PATCH net-next v12 12/13] realtek: Update the Makefile and Kconfig in the realtek folder
Date: Fri, 24 Nov 2023 17:49:06 +0800	[thread overview]
Message-ID: <202311241318.bdYlmH2b-lkp@intel.com> (raw)
In-Reply-To: <20231123124313.1398570-13-justinlai0215@realtek.com>

Hi Justin,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Justin-Lai/rtase-Add-pci-table-supported-in-this-module/20231123-204759
base:   net-next/main
patch link:    https://lore.kernel.org/r/20231123124313.1398570-13-justinlai0215%40realtek.com
patch subject: [PATCH net-next v12 12/13] realtek: Update the Makefile and Kconfig in the realtek folder
config: csky-randconfig-r081-20231124 (https://download.01.org/0day-ci/archive/20231124/202311241318.bdYlmH2b-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231124/202311241318.bdYlmH2b-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/202311241318.bdYlmH2b-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/ethernet/realtek/rtase/rtase_main.c:2318:12: warning: 'rtase_resume' defined but not used [-Wunused-function]
    2318 | static int rtase_resume(struct device *device)
         |            ^~~~~~~~~~~~
>> drivers/net/ethernet/realtek/rtase/rtase_main.c:2305:12: warning: 'rtase_suspend' defined but not used [-Wunused-function]
    2305 | static int rtase_suspend(struct device *device)
         |            ^~~~~~~~~~~~~


vim +/rtase_resume +2318 drivers/net/ethernet/realtek/rtase/rtase_main.c

8f9d7c2677f7dc Justin Lai 2023-11-23  2304  
da2f11aefe82ee Justin Lai 2023-11-23 @2305  static int rtase_suspend(struct device *device)
da2f11aefe82ee Justin Lai 2023-11-23  2306  {
da2f11aefe82ee Justin Lai 2023-11-23  2307  	struct net_device *dev = dev_get_drvdata(device);
da2f11aefe82ee Justin Lai 2023-11-23  2308  
da2f11aefe82ee Justin Lai 2023-11-23  2309  	if (netif_running(dev)) {
da2f11aefe82ee Justin Lai 2023-11-23  2310  		netif_stop_queue(dev);
da2f11aefe82ee Justin Lai 2023-11-23  2311  		netif_device_detach(dev);
da2f11aefe82ee Justin Lai 2023-11-23  2312  		rtase_hw_reset(dev);
da2f11aefe82ee Justin Lai 2023-11-23  2313  	}
da2f11aefe82ee Justin Lai 2023-11-23  2314  
da2f11aefe82ee Justin Lai 2023-11-23  2315  	return 0;
da2f11aefe82ee Justin Lai 2023-11-23  2316  }
da2f11aefe82ee Justin Lai 2023-11-23  2317  
da2f11aefe82ee Justin Lai 2023-11-23 @2318  static int rtase_resume(struct device *device)
da2f11aefe82ee Justin Lai 2023-11-23  2319  {
da2f11aefe82ee Justin Lai 2023-11-23  2320  	struct net_device *dev = dev_get_drvdata(device);
da2f11aefe82ee Justin Lai 2023-11-23  2321  	struct rtase_private *tp = netdev_priv(dev);
da2f11aefe82ee Justin Lai 2023-11-23  2322  	int ret;
da2f11aefe82ee Justin Lai 2023-11-23  2323  
da2f11aefe82ee Justin Lai 2023-11-23  2324  	/* restore last modified mac address */
da2f11aefe82ee Justin Lai 2023-11-23  2325  	rtase_rar_set(tp, dev->dev_addr);
da2f11aefe82ee Justin Lai 2023-11-23  2326  
da2f11aefe82ee Justin Lai 2023-11-23  2327  	if (!netif_running(dev))
da2f11aefe82ee Justin Lai 2023-11-23  2328  		goto out;
da2f11aefe82ee Justin Lai 2023-11-23  2329  
da2f11aefe82ee Justin Lai 2023-11-23  2330  	rtase_wait_for_quiescence(dev);
da2f11aefe82ee Justin Lai 2023-11-23  2331  
da2f11aefe82ee Justin Lai 2023-11-23  2332  	rtase_tx_clear(tp);
da2f11aefe82ee Justin Lai 2023-11-23  2333  	rtase_rx_clear(tp);
da2f11aefe82ee Justin Lai 2023-11-23  2334  
da2f11aefe82ee Justin Lai 2023-11-23  2335  	ret = rtase_init_ring(dev);
da2f11aefe82ee Justin Lai 2023-11-23  2336  	if (ret) {
da2f11aefe82ee Justin Lai 2023-11-23  2337  		netdev_err(dev, "unable to init ring\n");
da2f11aefe82ee Justin Lai 2023-11-23  2338  		rtase_free_desc(tp);
da2f11aefe82ee Justin Lai 2023-11-23  2339  		return -ENOMEM;
da2f11aefe82ee Justin Lai 2023-11-23  2340  	}
da2f11aefe82ee Justin Lai 2023-11-23  2341  
da2f11aefe82ee Justin Lai 2023-11-23  2342  	rtase_hw_config(dev);
da2f11aefe82ee Justin Lai 2023-11-23  2343  	/* always link, so start to transmit & receive */
da2f11aefe82ee Justin Lai 2023-11-23  2344  	rtase_hw_start(dev);
da2f11aefe82ee Justin Lai 2023-11-23  2345  
da2f11aefe82ee Justin Lai 2023-11-23  2346  	netif_wake_queue(dev);
da2f11aefe82ee Justin Lai 2023-11-23  2347  	netif_device_attach(dev);
da2f11aefe82ee Justin Lai 2023-11-23  2348  out:
da2f11aefe82ee Justin Lai 2023-11-23  2349  
da2f11aefe82ee Justin Lai 2023-11-23  2350  	return 0;
da2f11aefe82ee Justin Lai 2023-11-23  2351  }
da2f11aefe82ee Justin Lai 2023-11-23  2352  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2023-11-24  9:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-23 12:43 [PATCH net-next v12 00/13] Add Realtek automotive PCIe driver Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 01/13] rtase: Add pci table supported in this module Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 02/13] rtase: Implement the .ndo_open function Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 03/13] rtase: Implement the rtase_down function Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 04/13] rtase: Implement the interrupt routine and rtase_poll Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 05/13] rtase: Implement hardware configuration function Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 06/13] rtase: Implement .ndo_start_xmit function Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 07/13] rtase: Implement a function to receive packets Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 08/13] rtase: Implement net_device_ops Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 09/13] rtase: Implement pci_driver suspend and resume function Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 10/13] rtase: Implement ethtool function Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 11/13] rtase: Add a Makefile in the rtase folder Justin Lai
2023-11-23 12:43 ` [PATCH net-next v12 12/13] realtek: Update the Makefile and Kconfig in the realtek folder Justin Lai
2023-11-24  9:49   ` kernel test robot [this message]
2023-11-23 12:43 ` [PATCH net-next v12 13/13] MAINTAINERS: Add the rtase ethernet driver entry Justin Lai

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=202311241318.bdYlmH2b-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=justinlai0215@realtek.com \
    --cc=kuba@kernel.org \
    --cc=larry.chiu@realtek.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=pkshih@realtek.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®