[Openpvrsgx-devgroup] Building the 1.7.862890 branch for x86

Julius Schwartzenberg julius.vrijheid at freedom.nl
Sat May 25 00:13:16 CEST 2024


Hi all,

I have been trying to build the 1.7.862890 branch which has the 
Cedarview version. I added the missing files and managed to solve quite 
a few build errors by looking at the same files from a newer branch (I 
checked 1.17.4948957), but now I'm running into an error I'm not quickly 
sure how to solve:

   CC [M] 
drivers/gpu/drm/pvrsgx/1.7.862890/pvr/services4/srvkm/env/linux/osfunc.o
In file included from ./include/linux/workqueue.h:9,
                  from ./include/linux/srcu.h:21,
                  from ./include/linux/notifier.h:16,
                  from ./arch/x86/include/asm/uprobes.h:13,
                  from ./include/linux/uprobes.h:49,
                  from ./include/linux/mm_types.h:16,
                  from ./include/linux/mmzone.h:22,
                  from ./include/linux/gfp.h:7,
                  from ./include/linux/mm.h:7,
                  from ./arch/x86/include/asm/cacheflush.h:5,
                  from 
drivers/gpu/drm/pvrsgx/1.7.862890/pvr/services4/srvkm/env/linux/osfunc.c:40:
drivers/gpu/drm/pvrsgx/1.7.862890/pvr/services4/srvkm/env/linux/osfunc.c: 
In function ‘OSAddTimer’:
./include/linux/timer.h:111:34: error: passing argument 2 of 
‘init_timer_key’ from incompatible pointer type 
[-Werror=incompatible-pointer-types]
   111 |         init_timer_key((_timer), (_fn), (_flags), NULL, NULL)
       |                                  ^~~~~
       |                                  |
       |                                  IMG_VOID (*)(IMG_UINT32) {aka 
void (*)(unsigned int)}
./include/linux/timer.h:127:9: note: in expansion of macro ‘__init_timer’
   127 |         __init_timer((timer), (callback), (flags))
       |         ^~~~~~~~~~~~
drivers/gpu/drm/pvrsgx/1.7.862890/pvr/services4/srvkm/env/linux/osfunc.c:1917:5: 
note: in expansion of macro ‘timer_setup’
  1917 |     timer_setup(&psTimerCBData->sTimer, OSTimerCallbackWrapper, 0);
       |     ^~~~~~~~~~~
./include/linux/timer.h:77:28: note: expected ‘void (*)(struct 
timer_list *)’ but argument is of type ‘IMG_VOID (*)(IMG_UINT32)’ {aka 
‘void (*)(unsigned int)’}
    77 |                     void (*func)(struct timer_list *), unsigned 
int flags,
       |                     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

The code is matching up with the 1.17.4948957 version now. You can find 
my branch here:
https://github.com/jschwartzenberg/linux_openpvrsgx/tree/letux/pvrsrvkm-1.7.862890

Any idea what I could try to get past this one?

Many thanks in advance!!

Best regards,
Julius


More information about the openpvrsgx-devgroup mailing list