All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Wentong Wu <wentong.wu@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-media@vger.kernel.org,
	Sakari Ailus <sakari.ailus@linux.intel.com>
Subject: [sailus-media-tree:master 41/41] drivers/media/pci/intel/ivsc/mei_ace.c:444:41: warning: implicit conversion from 'enum ace_cmd_id' to 'enum ace_camera_owner'
Date: Tue, 1 Aug 2023 00:02:15 +0800	[thread overview]
Message-ID: <202308010053.Fi9ibMjW-lkp@intel.com> (raw)

tree:   git://linuxtv.org/sailus/media_tree.git master
head:   f6a458a2c82c225125c937cfd5675c2a3c494b33
commit: f6a458a2c82c225125c937cfd5675c2a3c494b33 [41/41] media: pci: intel: ivsc: Add ACE submodule
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230801/202308010053.Fi9ibMjW-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230801/202308010053.Fi9ibMjW-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/202308010053.Fi9ibMjW-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/media/pci/intel/ivsc/mei_ace.c: In function 'mei_ace_post_probe_work':
>> drivers/media/pci/intel/ivsc/mei_ace.c:444:41: warning: implicit conversion from 'enum ace_cmd_id' to 'enum ace_camera_owner' [-Wenum-conversion]
     444 |         ret = ace_set_camera_owner(ace, ACE_SWITCH_CAMERA_TO_HOST);
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/pci/intel/ivsc/mei_ace.c: In function 'mei_ace_remove':
   drivers/media/pci/intel/ivsc/mei_ace.c:529:35: warning: implicit conversion from 'enum ace_cmd_id' to 'enum ace_camera_owner' [-Wenum-conversion]
     529 |         ace_set_camera_owner(ace, ACE_SWITCH_CAMERA_TO_IVSC);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/pci/intel/ivsc/mei_ace.c: In function 'mei_ace_runtime_suspend':
   drivers/media/pci/intel/ivsc/mei_ace.c:538:42: warning: implicit conversion from 'enum ace_cmd_id' to 'enum ace_camera_owner' [-Wenum-conversion]
     538 |         return ace_set_camera_owner(ace, ACE_SWITCH_CAMERA_TO_IVSC);
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/pci/intel/ivsc/mei_ace.c: In function 'mei_ace_runtime_resume':
   drivers/media/pci/intel/ivsc/mei_ace.c:545:42: warning: implicit conversion from 'enum ace_cmd_id' to 'enum ace_camera_owner' [-Wenum-conversion]
     545 |         return ace_set_camera_owner(ace, ACE_SWITCH_CAMERA_TO_HOST);
         |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~


vim +444 drivers/media/pci/intel/ivsc/mei_ace.c

   432	
   433	/* switch camera to host before probe sensor device */
   434	static void mei_ace_post_probe_work(struct work_struct *work)
   435	{
   436		struct acpi_device *adev;
   437		struct mei_ace *ace;
   438		struct device *dev;
   439		int ret;
   440	
   441		ace = container_of(work, struct mei_ace, work);
   442		dev = &ace->cldev->dev;
   443	
 > 444		ret = ace_set_camera_owner(ace, ACE_SWITCH_CAMERA_TO_HOST);
   445		if (ret) {
   446			dev_err(dev, "switch camera to host failed: %d\n", ret);
   447			return;
   448		}
   449	
   450		adev = ACPI_COMPANION(dev->parent);
   451		if (!adev)
   452			return;
   453	
   454		acpi_dev_clear_dependencies(adev);
   455	}
   456	

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

                 reply	other threads:[~2023-07-31 16:03 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=202308010053.Fi9ibMjW-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-media@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sakari.ailus@linux.intel.com \
    --cc=wentong.wu@intel.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 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.