Re: [PATCH v4 1/5] fbdev: Avoid file argument in fb_pgprotect()
Thomas Zimmermann <[email protected]>
| Newsgroups | gmane.linux.ports.ia64,gmane.linux.kernel.cross-arch,gmane.linux.ports.mips,gmane.comp.video.dri.devel,gmane.linux.ports.sparc,gmane.linux.ports.ppc64.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Javier Am 20.09.23 um 10:01 schrieb Javier Martinez Canillas: > Thomas Zimmermann <[email protected]> writes: > > Hello Thomas, > >> Only PowerPC's fb_pgprotect() needs the file argument, although >> the implementation does not use it. Pass NULL to the internal > > Can you please mention the function that's the implementation for Sure > PowerPC ? If I'm looking at the code correctly, that function is > phys_mem_access_prot() defined in the arch/powerpc/mm/mem.c file: > > pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, > unsigned long size, pgprot_t vma_prot) > { > if (ppc_md.phys_mem_access_prot) > return ppc_md.phys_mem_access_prot(file, pfn, size, vma_prot); > > if (!page_is_ram(pfn)) > vma_prot = pgprot_noncached(vma_prot); > > return vma_prot; > } > > and if set, ppc_md.phys_mem_access_prot is pci_phys_mem_access_prot() > that is defined in the arch/powerpc/kernel/pci-common.c source file: > > https://elixir.bootlin.com/linux/v6.6-rc2/source/arch/powerpc/kernel/pci-common.c#L524 Yes, that's correct. The only value for that function pointer appears to be pci_phys_mem_access_prot() > > That function indeed doesn't use the file argument. So your patch looks > correct to me. > > Reviewed-by: Javier Martinez Canillas <[email protected]> Thanks Best regards Thomas > -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEExndm/fpuMUdwYFFolh/E3EQov+AFAmUNRQgFAwAAAAAACgkQlh/E3EQov+D1 wBAAkkU6MKDBuTUiaD5TKHmO7dXPKVu+AbeDL4Nke0dAJDVIT+UBb+vi1qxDQB8YYspeiMfvCzWG cgvmtKC2LLNIvGbNIgSr3lxDRjIVhAMtz2vgO46C3YYKmC+2yvbkf1kpPqO/RshwRPGSq1MaL10P 945+zfGtItDzcX7eq3vaeyE+4NjnlHY4RAolQTyks2slRTKCEZ4yMhrf5gWegjGdLHWq+Z30mZht 1s3wXdSHhpo29wiBcIkPHWCJHbmVafC+xAfbjvCu5H4oK8Ftj5/Ina3RCDxC9p3UaZ+t326qCNjJ nzWbrs4IP/eLt/tA3x0zfF914RJa8IobSscsWTWhM6Cth+vxh3h8P0IXgJAiU+T9WFTQL0beFmyq aeDDx0UFVbD74FrgyETElnCygHLpuwt7SGRSAncJcYHIqxYgrqIZj5+3PjTz2TLyzCy2HVtEzLJe c+aIxxt1A9DpBD2/FuoL2dnOg8wPHVDg1IW8eL5nnTI/H8V5APzplncFtAN+DFaKzU0Rh+hJX70O AZkJze0bICeSTuN9EG6wVMzo7fY+jN9WcWoA64sUd92rLr9PicSDovOn4DQKDKRikp1HOMHwGz1A U/VS8zMmskbqpUSuCDszZDUNJaP9DVC1GMZ2aJjiK3s0878gJNCOKxUyA/FgII+GJle1GwblCwJB DOs= =tnOC -----END PGP SIGNATURE-----