Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

xen/drm: switch xen_drm_front to use INVALID_GRANT_REF

Instead of using a private macro for an invalid grant reference use
the common one.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Tested-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com> # Arm64 only
Signed-off-by: Juergen Gross <jgross@suse.com>

+2 -11
-9
drivers/gpu/drm/xen/xen_drm_front.h
··· 80 80 /* timeout in ms to wait for backend to respond */ 81 81 #define XEN_DRM_FRONT_WAIT_BACK_MS 3000 82 82 83 - #ifndef GRANT_INVALID_REF 84 - /* 85 - * Note on usage of grant reference 0 as invalid grant reference: 86 - * grant reference 0 is valid, but never exposed to a PV driver, 87 - * because of the fact it is already in use/reserved by the PV console. 88 - */ 89 - #define GRANT_INVALID_REF 0 90 - #endif 91 - 92 83 struct xen_drm_front_info { 93 84 struct xenbus_device *xb_dev; 94 85 struct xen_drm_front_drm_info *drm_info;
+2 -2
drivers/gpu/drm/xen/xen_drm_front_evtchnl.c
··· 147 147 xenbus_free_evtchn(front_info->xb_dev, evtchnl->port); 148 148 149 149 /* end access and free the page */ 150 - if (evtchnl->gref != GRANT_INVALID_REF) 150 + if (evtchnl->gref != INVALID_GRANT_REF) 151 151 gnttab_end_foreign_access(evtchnl->gref, page); 152 152 153 153 memset(evtchnl, 0, sizeof(*evtchnl)); ··· 168 168 evtchnl->index = index; 169 169 evtchnl->front_info = front_info; 170 170 evtchnl->state = EVTCHNL_STATE_DISCONNECTED; 171 - evtchnl->gref = GRANT_INVALID_REF; 171 + evtchnl->gref = INVALID_GRANT_REF; 172 172 173 173 page = get_zeroed_page(GFP_NOIO | __GFP_HIGH); 174 174 if (!page) {