summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-01-18 08:50:28 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-01-18 08:50:28 +0000
commitb1fca32522fb58f041fc42353a962bd6b1819ae3 (patch)
tree7e8f8c9ac91187a1898a04ccd677b2aa90f47573 /sys
parent9fc54c9cef64618ffe7abab5309b3a8a45b20043 (diff)
reduce diff to linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/smu_v11_0_i2c.c2
-rw-r--r--sys/dev/pci/drm/drm_print.c2
-rw-r--r--sys/dev/pci/drm/drm_syncobj.c1
-rw-r--r--sys/dev/pci/drm/i915/gt/intel_rc6.c2
-rw-r--r--sys/dev/pci/drm/radeon/radeon_prime.c2
5 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/smu_v11_0_i2c.c b/sys/dev/pci/drm/amd/amdgpu/smu_v11_0_i2c.c
index 92dffb488a0..1e5c3c5cdbf 100644
--- a/sys/dev/pci/drm/amd/amdgpu/smu_v11_0_i2c.c
+++ b/sys/dev/pci/drm/amd/amdgpu/smu_v11_0_i2c.c
@@ -719,9 +719,7 @@ static const struct i2c_algorithm smu_v11_0_i2c_algo = {
};
static const struct i2c_adapter_quirks smu_v11_0_i2c_control_quirks = {
-#ifdef notyet
.flags = I2C_AQ_NO_ZERO_LEN,
-#endif
};
int smu_v11_0_i2c_control_init(struct amdgpu_device *adev)
diff --git a/sys/dev/pci/drm/drm_print.c b/sys/dev/pci/drm/drm_print.c
index 8073241a44d..68c810e2d7b 100644
--- a/sys/dev/pci/drm/drm_print.c
+++ b/sys/dev/pci/drm/drm_print.c
@@ -23,7 +23,7 @@
* Rob Clark <robdclark@gmail.com>
*/
-#include <sys/stdarg.h>
+#include <linux/stdarg.h>
#include <linux/io.h>
#include <linux/moduleparam.h>
diff --git a/sys/dev/pci/drm/drm_syncobj.c b/sys/dev/pci/drm/drm_syncobj.c
index 0894679b58e..73b7395af11 100644
--- a/sys/dev/pci/drm/drm_syncobj.c
+++ b/sys/dev/pci/drm/drm_syncobj.c
@@ -188,6 +188,7 @@
*/
#include <linux/anon_inodes.h>
+#include <linux/dma-fence-unwrap.h>
#include <linux/eventfd.h>
#include <linux/file.h>
#include <linux/fs.h>
diff --git a/sys/dev/pci/drm/i915/gt/intel_rc6.c b/sys/dev/pci/drm/i915/gt/intel_rc6.c
index b3669afa897..ccdc1afbf11 100644
--- a/sys/dev/pci/drm/i915/gt/intel_rc6.c
+++ b/sys/dev/pci/drm/i915/gt/intel_rc6.c
@@ -539,9 +539,7 @@ static bool rc6_supported(struct intel_rc6 *rc6)
static void rpm_get(struct intel_rc6 *rc6)
{
GEM_BUG_ON(rc6->wakeref);
-#ifdef notyet
pm_runtime_get_sync(rc6_to_i915(rc6)->drm.dev);
-#endif
rc6->wakeref = true;
}
diff --git a/sys/dev/pci/drm/radeon/radeon_prime.c b/sys/dev/pci/drm/radeon/radeon_prime.c
index ab5cbc224f8..2c273c39ad5 100644
--- a/sys/dev/pci/drm/radeon/radeon_prime.c
+++ b/sys/dev/pci/drm/radeon/radeon_prime.c
@@ -34,7 +34,6 @@
#include "radeon.h"
#include "radeon_prime.h"
-
struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj)
{
struct radeon_bo *bo = gem_to_radeon_bo(obj);
@@ -104,6 +103,7 @@ void radeon_gem_prime_unpin(struct drm_gem_object *obj)
radeon_bo_unreserve(bo);
}
+
struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
int flags)
{