git: world: Eliminate custom uintfptr_t/fptrdiff_t types.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Oct 6 03:42:36 PDT 2019


commit e63f92998d853b901a27a28c2793fbb92d5936a0
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Sun Oct 6 10:28:35 2019 +0300

    world: Eliminate custom uintfptr_t/fptrdiff_t types.
    
     These were not used consistently and have visibility limitations,
     types.h - #indef _KERNEL while profile.h - publicly.  Use cases like:
      "uintfptr_t selfpcdiff;" and "fptrdiff_t frompci;" only confuse.
     Given that underlying structs uprof, rawarc already use plain u_long
     types, there are plenty (u_long) casts elsewhere in the kernel code,
     follow OpenBSD and use use (u_long) casts that are clear what they do.
     The unused intfptr_t type does not make much sense anyway.

Summary of changes:
 lib/libc/gmon/mcount.c           | 24 +++++++++++-------------
 sys/cpu/x86_64/include/profile.h | 10 +---------
 sys/cpu/x86_64/include/types.h   |  5 -----
 sys/kern/kern_module.c           |  2 +-
 sys/kern/sys_process.c           |  3 +--
 sys/sys/gmon.h                   |  4 ++--
 6 files changed, 16 insertions(+), 32 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e63f92998d853b901a27a28c2793fbb92d5936a0


-- 
DragonFly BSD source repository


More information about the Commits mailing list