All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: manual merge of the iio tree with the staging.current tree
@ 2021-05-12  1:43 Stephen Rothwell
  2021-05-12  1:48 ` Stephen Rothwell
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2021-05-12  1:43 UTC (permalink / raw)
  To: Jonathan Cameron, Greg KH
  Cc: Linux Kernel Mailing List, Linux Next Mailing List,
	Tomasz Duszynski

[-- Attachment #1: Type: text/plain, Size: 1762 bytes --]

Hi all,

Today's linux-next merge of the iio tree got a conflict in:

  drivers/iio/industrialio-core.c

between commit:

  901f84de0e16 ("iio: core: fix ioctl handlers removal")

from the staging.current tree and commit:

  919a6adf8107 ("iio: core: move @chrdev from struct iio_dev to struct iio_dev_opaque")

from the iio tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc drivers/iio/industrialio-core.c
index 59efb36db2c7,efb4cf91c9e4..000000000000
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@@ -1785,10 -1811,10 +1810,10 @@@ static long iio_ioctl(struct file *filp
  	}
  
  	if (ret == IIO_IOCTL_UNHANDLED)
 -		ret = -EINVAL;
 +		ret = -ENODEV;
  
  out_unlock:
- 	mutex_unlock(&indio_dev->info_exist_lock);
+ 	mutex_unlock(&iio_dev_opaque->info_exist_lock);
  
  	return ret;
  }
@@@ -1925,9 -1951,12 +1950,9 @@@ EXPORT_SYMBOL(__iio_device_register)
   **/
  void iio_device_unregister(struct iio_dev *indio_dev)
  {
- 	cdev_device_del(&indio_dev->chrdev, &indio_dev->dev);
 -	struct iio_dev_opaque *iio_dev_opaque = to_iio_dev_opaque(indio_dev);
 -	struct iio_ioctl_handler *h, *t;
 -
+ 	cdev_device_del(&iio_dev_opaque->chrdev, &indio_dev->dev);
  
- 	mutex_lock(&indio_dev->info_exist_lock);
+ 	mutex_lock(&iio_dev_opaque->info_exist_lock);
  
  	iio_device_unregister_debugfs(indio_dev);
  

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-12  8:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12  1:43 linux-next: manual merge of the iio tree with the staging.current tree Stephen Rothwell
2021-05-12  1:48 ` Stephen Rothwell
2021-05-12  8:50   ` Jonathan Cameron

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.