File 0001-hvc_sysfs_mmap-on-SLE16.patch of Package nvidia-jetson-36-jp7

From 18be863d086fd20d6f8688997fd09b3b011216d1 Mon Sep 17 00:00:00 2001
From: Stefan Dirsch <sndirsch@suse.de>
Date: Sat, 15 Mar 2025 17:46:23 +0100
Subject: [PATCH] hvc_sysfs_mmap on SLE16

---
 drivers/virt/tegra/hvc_sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/virt/tegra/hvc_sysfs.c b/drivers/virt/tegra/hvc_sysfs.c
index 39152c1e..a60e87b7 100644
--- a/drivers/virt/tegra/hvc_sysfs.c
+++ b/drivers/virt/tegra/hvc_sysfs.c
@@ -52,7 +52,7 @@ static struct hyp_shared_memory_info hyp_shared_memory_attrs[HYP_SHM_ID_NUM];
 
 /* Map the HV trace buffer to the calling user process */
 static int hvc_sysfs_mmap(struct file *fp, struct kobject *ko,
-	struct bin_attribute *attr, struct vm_area_struct *vma)
+	const struct bin_attribute *attr, struct vm_area_struct *vma)
 {
 	struct hyp_shared_memory_info *hyp_shm_info =
 		container_of(attr, struct hyp_shared_memory_info, attr);
-- 
2.43.0

openSUSE Build Service is sponsored by