Skip to content

Commit

Permalink
FreeBSD: Remove unused kidmap/sid functions
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
  • Loading branch information
Ryan Moeller authored and Ryan Moeller committed Mar 17, 2022
1 parent f2aae33 commit e3937f3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 67 deletions.
1 change: 0 additions & 1 deletion include/os/freebsd/spl/sys/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ KERNEL_H = \
inttypes.h \
isa_defs.h \
kmem_cache.h \
kidmap.h \
kmem.h \
kstat.h \
list_impl.h \
Expand Down
41 changes: 0 additions & 41 deletions include/os/freebsd/spl/sys/kidmap.h

This file was deleted.

25 changes: 0 additions & 25 deletions include/os/freebsd/spl/sys/sid.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#ifndef _OPENSOLARIS_SYS_SID_H_
#define _OPENSOLARIS_SYS_SID_H_
#include <sys/idmap.h>
#include <sys/kidmap.h>

typedef struct ksiddomain {
char *kd_name; /* Domain part of SID */
Expand Down Expand Up @@ -59,28 +58,4 @@ ksiddomain_rele(ksiddomain_t *kd)
kmem_free(kd, sizeof (*kd));
}

static __inline uint_t
ksid_getid(ksid_t *ks)
{

panic("%s has been unexpectedly called", __func__);
}

static __inline const char *
ksid_getdomain(ksid_t *ks)
{

panic("%s has been unexpectedly called", __func__);
}

static __inline uint_t
ksid_getrid(ksid_t *ks)
{

panic("%s has been unexpectedly called", __func__);
}

#define kidmap_getsidbyuid(zone, uid, sid_prefix, rid) (1)
#define kidmap_getsidbygid(zone, gid, sid_prefix, rid) (1)

#endif /* _OPENSOLARIS_SYS_SID_H_ */

0 comments on commit e3937f3

Please sign in to comment.