public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Umang Jain <umang.jain@ideasonboard.com>,
	Florian Fainelli <florian.fainelli@broadcom.com>,
	Broadcom internal kernel review list
	<bcm-kernel-feedback-list@broadcom.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: oe-kbuild-all@lists.linux.dev,
	linux-rpi-kernel@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
	Kieran Bingham <kieran.bingham@ideasonboard.com>,
	Arnd Bergmann <arnd@arndb.de>, Stefan Wahren <wahrenst@gmx.net>,
	Dave Stevenson <dave.stevenson@raspberrypi.com>,
	Phil Elwell <phil@raspberrypi.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Umang Jain <umang.jain@ideasonboard.com>
Subject: Re: [PATCH v2 1/7] staging: vchiq: Factor out bulk transfer for VCHIQ_BULK_MODE_WAITING
Date: Sun, 1 Sep 2024 10:28:14 +0800	[thread overview]
Message-ID: <202409011052.hHoEnTUy-lkp@intel.com> (raw)
In-Reply-To: <20240831162435.191084-2-umang.jain@ideasonboard.com>

Hi Umang,

kernel test robot noticed the following build warnings:

[auto build test WARNING on staging/staging-testing]

url:    https://github.com/intel-lab-lkp/linux/commits/Umang-Jain/staging-vchiq-Factor-out-bulk-transfer-for-VCHIQ_BULK_MODE_WAITING/20240901-002839
base:   staging/staging-testing
patch link:    https://lore.kernel.org/r/20240831162435.191084-2-umang.jain%40ideasonboard.com
patch subject: [PATCH v2 1/7] staging: vchiq: Factor out bulk transfer for VCHIQ_BULK_MODE_WAITING
config: i386-buildonly-randconfig-001-20240901 (https://download.01.org/0day-ci/archive/20240901/202409011052.hHoEnTUy-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240901/202409011052.hHoEnTUy-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/202409011052.hHoEnTUy-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c: In function 'vchiq_bulk_xfer_waiting_interruptible':
>> drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c:3152:28: warning: variable 'bulk' set but not used [-Wunused-but-set-variable]
    3152 |         struct vchiq_bulk *bulk;
         |                            ^~~~


vim +/bulk +3152 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c

  3140	
  3141	/*
  3142	 * This function is called by VCHIQ ioctl interface and is interruptible.
  3143	 * It may receive -EAGAIN to indicate that a signal has been received
  3144	 * and the call should be retried after being returned to user context.
  3145	 */
  3146	int
  3147	vchiq_bulk_xfer_waiting_interruptible(struct vchiq_instance *instance,
  3148					      unsigned int handle, struct bulk_waiter *userdata)
  3149	{
  3150		struct vchiq_service *service = find_service_by_handle(instance, handle);
  3151		struct bulk_waiter *bulk_waiter;
> 3152		struct vchiq_bulk *bulk;
  3153		int status = -EINVAL;
  3154	
  3155		if (!service)
  3156			goto error_exit;
  3157	
  3158		if (!userdata)
  3159			goto error_exit;
  3160	
  3161		if (service->srvstate != VCHIQ_SRVSTATE_OPEN)
  3162			goto error_exit;
  3163	
  3164		if (vchiq_check_service(service))
  3165			goto error_exit;
  3166	
  3167		bulk_waiter = userdata;
  3168		bulk = bulk_waiter->bulk;
  3169	
  3170		vchiq_service_put(service);
  3171	
  3172		status = 0;
  3173	
  3174		if (wait_for_completion_interruptible(&bulk_waiter->event))
  3175			return -EAGAIN;
  3176		else if (bulk_waiter->actual == VCHIQ_BULK_ACTUAL_ABORTED)
  3177			return -EINVAL;
  3178	
  3179		return status;
  3180	
  3181	error_exit:
  3182		if (service)
  3183			vchiq_service_put(service);
  3184		return status;
  3185	}
  3186	

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

  reply	other threads:[~2024-09-01  2:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-31 16:24 [PATCH v2 0/7] staging: vchiq_core: Refactor vchiq_bulk_transfer() logic Umang Jain
2024-08-31 16:24 ` [PATCH v2 1/7] staging: vchiq: Factor out bulk transfer for VCHIQ_BULK_MODE_WAITING Umang Jain
2024-09-01  2:28   ` kernel test robot [this message]
2024-08-31 16:24 ` [PATCH v2 2/7] staging: vchiq_core: Simplify vchiq_bulk_transfer() Umang Jain
2024-08-31 16:24 ` [PATCH v2 3/7] staging: vchiq_core: Factor out bulk transfer for blocking mode Umang Jain
2024-08-31 16:24 ` [PATCH v2 4/7] staging: vchiq_core: Factor out bulk transfer for (no/)callback mode Umang Jain
2024-08-31 16:24 ` [PATCH v2 5/7] staging: vchiq_core: Drop vchiq_bulk_transfer() Umang Jain
2024-08-31 16:24 ` [PATCH v2 6/7] staging: vchiq_core: Remove unused function argument Umang Jain
2024-08-31 16:24 ` [PATCH v2 7/7] staging: vchiq_core: Pass enumerated flag instead of int Umang Jain

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=202409011052.hHoEnTUy-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rpi-kernel@lists.infradead.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=phil@raspberrypi.com \
    --cc=umang.jain@ideasonboard.com \
    --cc=wahrenst@gmx.net \
    /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