From 534ccd7bbfadde557eeffe986e5462455c8111ea Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Thu, 3 Mar 2016 05:07:35 +0000 Subject: Replace all resource occurrences of '0UL/~0UL' with '0/~0'. Summary: The idea behind this is '~0ul' is well-defined, and casting to uintmax_t, on a 32-bit platform, will leave the upper 32 bits as 0. The maximum range of a resource is 0xFFF.... (all bits of the full type set). By dropping the 'ul' suffix, C type promotion rules apply, and the sign extension of ~0 on 32 bit platforms gets it to a type-independent 'unsigned max'. Reviewed By: cem Sponsored by: Alex Perez/Inertial Computing Differential Revision: https://reviews.freebsd.org/D5255 --- sys/kern/bus_if.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/bus_if.m') diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m index 8acadd7c10b7..3a6a9d625935 100644 --- a/sys/kern/bus_if.m +++ b/sys/kern/bus_if.m @@ -247,9 +247,9 @@ METHOD device_t add_child { * @param _type the type of resource to allocate * @param _rid a pointer to the resource identifier * @param _start hint at the start of the resource range - pass - * @c 0UL for any start address + * @c 0 for any start address * @param _end hint at the end of the resource range - pass - * @c ~0UL for any end address + * @c ~0 for any end address * @param _count hint at the size of range required - pass @c 1 * for any size * @param _flags any extra flags to control the resource -- cgit v1.2.3