Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/mmu_context.h
- This file was added.
#ifndef _LINUX_MMU_CONTEXT_H | |||||
#define _LINUX_MMU_CONTEXT_H | |||||
hselasky: This file also lacks a copyright.
I don't see why we need this in the LinuxKPI.
Can this file… | |||||
struct mm_struct; | |||||
static inline void | |||||
use_mm(struct mm_struct *mm) | |||||
{ | |||||
printf("%s: missing implementation!\n", __func__); | |||||
Not Done Inline ActionsThis print should be under some debug check. hselasky: This print should be under some debug check. | |||||
Not Done Inline ActionsAll these functions should do is: MPASS(current->mm != NULL); or panic(); We don't support this functions. hselasky: All these functions should do is:
MPASS(current->mm != NULL);
or
panic();
We don't support… | |||||
Not Done Inline ActionsThis is one of the things I wanted to discuss about. Can we safely ignore these functions or we risk breaking something by doing nothing? They are used by i915 gvt and amdkfd code so currently not used but will be used when we port amdkfd. I can move to gplv2 for now. johalun0_gmail.com: This is one of the things I wanted to discuss about. Can we safely ignore these functions or we… | |||||
Not Done Inline Actionscurrent->mm is always set in FreeBSD. These functions can just do nothing for now. hselasky: current->mm is always set in FreeBSD. These functions can just do nothing for now. | |||||
} | |||||
static inline void | |||||
unuse_mm(struct mm_struct *mm) | |||||
{ | |||||
printf("%s: missing implementation!\n", __func__); | |||||
} | |||||
#endif |
This file also lacks a copyright.
I don't see why we need this in the LinuxKPI.
Can this file be part of the LGPLv2 LinuxKPI ?