aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/racct.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2014-11-23 08:25:44 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2014-11-23 08:25:44 +0000
commitdff9862c0ecb4f4ac6a176a997e26fc8c45595fd (patch)
treec9e32e45f83a185f1608ae2f2056b8a1dc2e3df6 /sys/sys/racct.h
parentdbfd8ef2e4b2856062a7218bc88244ce03e0bc8a (diff)
downloadsrc-dff9862c0ecb4f4ac6a176a997e26fc8c45595fd.tar.gz
src-dff9862c0ecb4f4ac6a176a997e26fc8c45595fd.zip
ifdef RACCT ui_racct_foreach and struct uidinfo's ui_racct
Change racct_ create and destroy to macros evaluating to nothing without RACCT so that their callers passing ui_racct don't have to be ifdefed.
Notes
Notes: svn path=/head/; revision=274911
Diffstat (limited to 'sys/sys/racct.h')
-rw-r--r--sys/sys/racct.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/sys/racct.h b/sys/sys/racct.h
index 362529c4857b..966d27a11183 100644
--- a/sys/sys/racct.h
+++ b/sys/sys/racct.h
@@ -220,15 +220,8 @@ racct_get_available(struct proc *p, int resource)
return (UINT64_MAX);
}
-static inline void
-racct_create(struct racct **racctp)
-{
-}
-
-static inline void
-racct_destroy(struct racct **racctp)
-{
-}
+#define racct_create(x)
+#define racct_destroy(x)
static inline int
racct_proc_fork(struct proc *parent, struct proc *child)