[Openpvrsgx-devgroup] [PATCH 1/2] pvrsrv: 1.17: Fix most of build for v6.6

Tony Lindgren tony at atomide.com
Wed Nov 15 08:00:48 CET 2023


Fix most of build for v6.6. Do the follow_pte() change separately.

Signed-off-by: Tony Lindgren <tony at atomide.com>
---
 .../1.17.4948957/eurasia_km/services4/srvkm/env/linux/osfunc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/services4/srvkm/env/linux/osfunc.c b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/services4/srvkm/env/linux/osfunc.c
--- a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/services4/srvkm/env/linux/osfunc.c
+++ b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/services4/srvkm/env/linux/osfunc.c
@@ -39,6 +39,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */ /**************************************************************************/
 
+#include <linux/mm.h>
 #include <linux/version.h>
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38))
@@ -3786,7 +3787,7 @@ PVRSRV_ERROR OSAcquirePhysPageAddr(IMG_VOID *pvCPUVAddr,
 		uStartAddr, psInfo->iNumPages, 1, 0, psInfo->ppsPages, NULL);
 #else
     psInfo->iNumPagesMapped = get_user_pages(
-		uStartAddr, psInfo->iNumPages, 1, psInfo->ppsPages, NULL);
+		uStartAddr, psInfo->iNumPages, 1, psInfo->ppsPages);
 #endif
 
     if (psInfo->iNumPagesMapped >= 0)
-- 
2.42.1


More information about the openpvrsgx-devgroup mailing list