Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 May 2020 19:07:27 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r360544 - stable/12/sys/compat/linuxkpi/common/include/linux
Message-ID:  <202005011907.041J7RBi009426@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri May  1 19:07:26 2020
New Revision: 360544
URL: https://svnweb.freebsd.org/changeset/base/360544

Log:
  Unbreak DRM KMS build by adding the needed compatibility field in the LinuxKPI.
  
  Reported by:	zeising @
  Sponsored by:	Mellanox Technologies

Modified:
  stable/12/sys/compat/linuxkpi/common/include/linux/device.h

Modified: stable/12/sys/compat/linuxkpi/common/include/linux/device.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/device.h	Fri May  1 18:36:48 2020	(r360543)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/device.h	Fri May  1 19:07:26 2020	(r360544)
@@ -108,7 +108,10 @@ struct device {
 	struct class	*class;
 	void		(*release)(struct device *dev);
 	struct kobject	kobj;
-	void		*dma_priv;
+	union {
+		const u64 *dma_mask;	/* XXX for backwards compat */
+		void	*dma_priv;
+	};
 	void		*driver_data;
 	unsigned int	irq;
 #define	LINUX_IRQ_INVALID	65535



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005011907.041J7RBi009426>