git: sys/vfs/hammer: Adjust and cleanup _KERNEL

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Sep 24 07:46:32 PDT 2015


commit cbf26eb24be3dfb91f64ba606722b48db875baf7
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Sep 6 04:47:16 2015 +0900

    sys/vfs/hammer: Adjust and cleanup _KERNEL
    
    Remove no longer necessary _KERNEL that was originally
    added for usr.bin/fstat/hammer.c to include
    <vfs/hammer/hammer.h> by 872a7eee.
    
    <vfs/hammer/hammer.h> isn't supposed to be necessary by
    userspace except for a few (actually only above file)
    unusual userspace programs that want to access in-kernel
    data structures (like incore inode), so it's better not
    to pollute <vfs/hammer/hammer.h> with bunch of _KERNEL
    ifdefs in the first place if possible.
    
    Also see 23e66b3b and 1caa2035.

Summary of changes:
 sys/vfs/hammer/hammer.h        | 3 ---
 sys/vfs/hammer/hammer_signal.c | 2 ++
 2 files changed, 2 insertions(+), 3 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list