[Openpvrsgx-devgroup] Building the 1.7.862890 branch for x86

Julius Schwartzenberg julius.vrijheid at freedom.nl
Sun May 26 10:43:27 CEST 2024


On 25.05.24 21:33, Julius Schwartzenberg wrote:
> I'm past this file now after copy-pasting based on what you pointed out. 
> Thanks!! Incorporating more fixes now. I'll report here again when I'm 
> stuck :)

I'm now stuck here:

   CC [M] 
drivers/gpu/drm/pvrsgx/1.7.862890/pvr/services4/srvkm/env/linux/proc.o
drivers/gpu/drm/pvrsgx/1.7.862890/pvr/services4/srvkm/env/linux/proc.c: 
In function ‘RemovePerProcessProcDir’:
drivers/gpu/drm/pvrsgx/1.7.862890/pvr/services4/srvkm/env/linux/proc.c:691:36: 
error: invalid use of undefined type ‘struct proc_dir_entry’
   691 |         while (psPerProc->psProcDir->subdir)
       |                                    ^~
drivers/gpu/drm/pvrsgx/1.7.862890/pvr/services4/srvkm/env/linux/proc.c:695:49: 
error: invalid use of undefined type ‘struct proc_dir_entry’
   695 |             RemoveProcEntry(psPerProc->psProcDir->subdir->name);
       |                                                 ^~
drivers/gpu/drm/pvrsgx/1.7.862890/pvr/services4/srvkm/env/linux/proc.c:697:45: 
error: invalid use of undefined type ‘struct proc_dir_entry’
   697 |         RemoveProcEntry(psPerProc->psProcDir->name);
       |                                             ^~
drivers/gpu/drm/pvrsgx/1.7.862890/pvr/services4/srvkm/env/linux/proc.c: 
At top level:
drivers/gpu/drm/pvrsgx/1.7.862890/pvr/services4/srvkm/env/linux/proc.c:434:16: 
error: ‘pvr_read_proc’ defined but not used [-Werror=unused-function]
   434 | static IMG_INT pvr_read_proc(IMG_CHAR *page, IMG_CHAR **start, 
off_t off,
       |

It seems the code to clean up the /proc entries is using the 
proc_dir_entry directly. According to this topic, these internals 
shouldn't be used anymore:
https://stackoverflow.com/questions/38972005/proc-dir-entry-structure-linux-3-13

They still seem to be used by the 1.17.4948957 branch though, which I 
would not expect to compile either.

Did was this part to use the modern way of handling /proc already get 
rewritten in any spot from which I could copy it?

Many thanks in advance!
Julius


More information about the openpvrsgx-devgroup mailing list