diff options
author | James Zhu <James.Zhu@amd.com> | 2023-08-07 10:06:32 -0400 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2023-08-16 09:28:57 -0400 |
commit | 7130cb163eb860d4a965c6708b64fe87cee881d6 (patch) | |
tree | b52147b7c4536ac7f8c4862839858612fd9b45e7 | |
parent | c6013245ce9ce287bb86d327f9b6420a320a08e6 (diff) |
xf86drm: update DRM_NODE_NAME_MAX supporting more nodes
Current DRM_NODE_NAME_MAX only can support up to 999 nodes,
Update to support up to 2^MINORBITS nodes.
Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
-rw-r--r-- | xf86drm.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ extern "C" { + MAX3(sizeof(DRM_PRIMARY_MINOR_NAME), \ sizeof(DRM_CONTROL_MINOR_NAME), \ sizeof(DRM_RENDER_MINOR_NAME)) \ - + sizeof("144") /* highest possible node number */ \ + + sizeof("1048575") /* highest possible node number 2^MINORBITS - 1 */ \ + 1) /* NULL-terminator */ #define DRM_ERR_NO_DEVICE (-1001) |