[DragonFlyBSD - Bug #2737] i386 drm_bufs.c:259:2 '%lx' offset type 'resource_size_t'
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Wed Nov 19 08:50:03 PST 2014
Issue #2737 has been updated by herrgard.
Are you using drm on i386 or just trying to build?
----------------------------------------
Bug #2737: i386 drm_bufs.c:259:2 '%lx' offset type 'resource_size_t'
http://bugs.dragonflybsd.org/issues/2737#change-12321
* Author: davshao
* Status: New
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
i386 GENERIC kernel compilation fails with
/usr/src/sys/dev/drm/drm/../drm_bufs.c: In function 'drm_addmap':
/usr/src/sys/dev/drm/drm/../drm_bufs.c:259:2: error: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'resource_size_t' [-Werror=format]
cc1: all warnings being treated as errors
Argument offset is type resource_size_t which appears to be vm_paddr_t and thus __unit64_t.
A patch similar to the below fixes compilation problems on i386:
diff --git a/sys/dev/drm/drm_bufs.c b/sys/dev/drm/drm_bufs.c
index 575dbcf..7c66ea8 100644
--- a/sys/dev/drm/drm_bufs.c
+++ b/sys/dev/drm/drm_bufs.c
@@ -256,7 +256,7 @@ int drm_addmap(struct drm_device * dev, resource_size_t offset,
done:
/* Jumped to, with lock held, when a kernel map is found. */
- DRM_DEBUG("Added map %d 0x%lx/0x%lx\n", map->type, map->offset,
+ DRM_DEBUG("Added map %d 0x%lx/0x%lx\n", map->type, (unsigned long)map->offset,
map->size);
*map_ptr = map;
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Bugs
mailing list