mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
virt: hvc_sysfs: Another build fix for Linux v6.13
In Linux v6.13, commit 94a20fb9af16 ("sysfs: treewide: constify
attribute callback of bin_attribute::mmap()") changed the type of
the 'struct bin_attribute' argument of the bin_attribute:mmap function
pointer to const.
One instance of this change has already been fixed in the hvc_sysfs
driver but another case was recently introduced breaking the build for
Linux v6.13. Fix this in the same way as the previous instance.
Bug 4985113
Bug 4991705
Change-Id: I7f68138f3b484ebfe7a4ff5032c7b4365865f248
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3287044
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
This commit is contained in:
@@ -63,7 +63,12 @@ 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 nvlog_buffer_mmap(struct file *fp, struct kobject *ko,
|
||||
struct bin_attribute *attr, struct vm_area_struct *vma)
|
||||
#if defined(NV_BIN_ATTRIBUTE_STRUCT_MMAP_HAS_CONST_BIN_ATTRIBUTE_ARG) /* Linux v6.13 */
|
||||
const struct bin_attribute *attr,
|
||||
#else
|
||||
struct bin_attribute *attr,
|
||||
#endif
|
||||
struct vm_area_struct *vma)
|
||||
{
|
||||
struct nvlog_shmem_info *info = container_of(attr, struct nvlog_shmem_info, attr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user