Remove duplicated empty lines from kern/*.c

No functional changes.
This commit is contained in:
Mateusz Guzik 2020-01-30 20:05:05 +00:00
parent 2823710f05
commit 3ff65f71cb
62 changed files with 0 additions and 111 deletions

View File

@ -609,7 +609,6 @@ imgact_binmisc_exec(struct image_params *imgp)
fname = sbuf_data(sname); fname = sbuf_data(sname);
} }
/* /*
* We need to "push" the interpreter in the arg[] list. To do this, * We need to "push" the interpreter in the arg[] list. To do this,
* we first shift all the other values in the `begin_argv' area to * we first shift all the other values in the `begin_argv' area to
@ -707,7 +706,6 @@ imgact_binmisc_exec(struct image_params *imgp)
if (!error) if (!error)
imgp->interpreter_name = imgp->args->begin_argv; imgp->interpreter_name = imgp->args->begin_argv;
done: done:
if (sname) if (sname)
sbuf_delete(sname); sbuf_delete(sname);

View File

@ -630,7 +630,6 @@ __elfN(load_section)(struct image_params *imgp, vm_ooffset_t offset,
return (0); return (0);
} }
/* /*
* We have to get the remaining bit of the file into the first part * We have to get the remaining bit of the file into the first part
* of the oversized map segment. This is normally because the .data * of the oversized map segment. This is normally because the .data

View File

@ -115,7 +115,6 @@ linux_alloc_current_noop(struct thread *td __unused, int flags __unused)
} }
int (*lkpi_alloc_current)(struct thread *, int) = linux_alloc_current_noop; int (*lkpi_alloc_current)(struct thread *, int) = linux_alloc_current_noop;
#ifndef BOOTHOWTO #ifndef BOOTHOWTO
#define BOOTHOWTO 0 #define BOOTHOWTO 0
#endif #endif

View File

@ -120,7 +120,6 @@ static void alq_shutdown(struct alq *);
static void alq_destroy(struct alq *); static void alq_destroy(struct alq *);
static int alq_doio(struct alq *); static int alq_doio(struct alq *);
/* /*
* Add a new queue to the global list. Fail if we're shutting down. * Add a new queue to the global list. Fail if we're shutting down.
*/ */
@ -422,7 +421,6 @@ static struct kproc_desc ald_kp = {
SYSINIT(aldthread, SI_SUB_KTHREAD_IDLE, SI_ORDER_ANY, kproc_start, &ald_kp); SYSINIT(aldthread, SI_SUB_KTHREAD_IDLE, SI_ORDER_ANY, kproc_start, &ald_kp);
SYSINIT(ald, SI_SUB_LOCK, SI_ORDER_ANY, ald_startup, NULL); SYSINIT(ald, SI_SUB_LOCK, SI_ORDER_ANY, ald_startup, NULL);
/* User visible queue functions */ /* User visible queue functions */
/* /*
@ -502,7 +500,6 @@ alq_open(struct alq **alqp, const char *file, struct ucred *cred, int cmode,
return (ret); return (ret);
} }
/* /*
* Copy a new entry into the queue. If the operation would block either * Copy a new entry into the queue. If the operation would block either
* wait or return an error depending on the value of waitok. * wait or return an error depending on the value of waitok.

View File

@ -950,7 +950,6 @@ dev_dependsl(struct cdev *pdev, struct cdev *cdev)
LIST_INSERT_HEAD(&pdev->si_children, cdev, si_siblings); LIST_INSERT_HEAD(&pdev->si_children, cdev, si_siblings);
} }
void void
dev_depends(struct cdev *pdev, struct cdev *cdev) dev_depends(struct cdev *pdev, struct cdev *cdev)
{ {
@ -1325,7 +1324,6 @@ clone_create(struct clonedevs **cdp, struct cdevsw *csw, int *up,
KASSERT(csw->d_flags & D_NEEDMINOR, KASSERT(csw->d_flags & D_NEEDMINOR,
("clone_create() on cdevsw without minor numbers")); ("clone_create() on cdevsw without minor numbers"));
/* /*
* Search the list for a lot of things in one go: * Search the list for a lot of things in one go:
* A preexisting match is returned immediately. * A preexisting match is returned immediately.

View File

@ -686,7 +686,6 @@ exit1(struct thread *td, int rval, int signo)
thread_exit(); thread_exit();
} }
#ifndef _SYS_SYSPROTO_H_ #ifndef _SYS_SYSPROTO_H_
struct abort2_args { struct abort2_args {
char *why; char *why;
@ -763,7 +762,6 @@ out:
return (0); return (0);
} }
#ifdef COMPAT_43 #ifdef COMPAT_43
/* /*
* The dirty work is handled by kern_wait(). * The dirty work is handled by kern_wait().

View File

@ -508,7 +508,6 @@ hhook_vnet_uninit(const void *unused __unused)
HHHLIST_UNLOCK(); HHHLIST_UNLOCK();
} }
/* /*
* When a vnet is created and being initialised, init the V_hhook_vhead_list. * When a vnet is created and being initialised, init the V_hhook_vhead_list.
*/ */

View File

@ -436,7 +436,6 @@ kern_jail(struct thread *td, struct jail *j)
return (error); return (error);
} }
/* /*
* struct jail_set_args { * struct jail_set_args {
* struct iovec *iovp; * struct iovec *iovp;
@ -1896,7 +1895,6 @@ kern_jail_set(struct thread *td, struct uio *optuio, int flags)
return (error); return (error);
} }
/* /*
* struct jail_get_args { * struct jail_get_args {
* struct iovec *iovp; * struct iovec *iovp;
@ -2208,7 +2206,6 @@ kern_jail_get(struct thread *td, struct uio *optuio, int flags)
return (error); return (error);
} }
/* /*
* struct jail_remove_args { * struct jail_remove_args {
* int jid; * int jid;
@ -2308,7 +2305,6 @@ prison_remove_one(struct prison *pr)
prison_deref(pr, deuref | PD_DEREF); prison_deref(pr, deuref | PD_DEREF);
} }
/* /*
* struct jail_attach_args { * struct jail_attach_args {
* int jid; * int jid;
@ -2425,7 +2421,6 @@ do_jail_attach(struct thread *td, struct prison *pr)
return (error); return (error);
} }
/* /*
* Returns a locked prison instance, or NULL on failure. * Returns a locked prison instance, or NULL on failure.
*/ */
@ -3427,7 +3422,6 @@ prison_path(struct prison *pr1, struct prison *pr2)
return (path2); return (path2);
} }
/* /*
* Jail-related sysctls. * Jail-related sysctls.
*/ */

View File

@ -321,7 +321,6 @@ kcov_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
struct kcov_info *info; struct kcov_info *info;
int error; int error;
if ((error = devfs_get_cdevpriv((void **)&info)) != 0) if ((error = devfs_get_cdevpriv((void **)&info)) != 0)
return (error); return (error);

View File

@ -230,7 +230,6 @@ kproc_suspend_check(struct proc *p)
PROC_UNLOCK(p); PROC_UNLOCK(p);
} }
/* /*
* Start a kernel thread. * Start a kernel thread.
* *

View File

@ -133,7 +133,6 @@ retry: \
(a) = next_file_id; \ (a) = next_file_id; \
} while(0) } while(0)
/* XXX wrong name; we're looking at version provision tags here, not modules */ /* XXX wrong name; we're looking at version provision tags here, not modules */
typedef TAILQ_HEAD(, modlist) modlisthead_t; typedef TAILQ_HEAD(, modlist) modlisthead_t;
struct modlist { struct modlist {

View File

@ -886,7 +886,6 @@ lf_free_edge(struct lockf_edge *e)
free(e, M_LOCKF); free(e, M_LOCKF);
} }
/* /*
* Ensure that the lock's owner has a corresponding vertex in the * Ensure that the lock's owner has a corresponding vertex in the
* owner graph. * owner graph.

View File

@ -518,7 +518,6 @@ sysctl_build_id(SYSCTL_HANDLER_ARGS)
return (ENOENT); return (ENOENT);
} }
hashlen = sectionlen - BUILD_ID_HEADER_LEN; hashlen = sectionlen - BUILD_ID_HEADER_LEN;
for (int i = 0; i < hashlen; i++) { for (int i = 0; i < hashlen; i++) {
uint8_t c = __build_id_start[i+BUILD_ID_HEADER_LEN]; uint8_t c = __build_id_start[i+BUILD_ID_HEADER_LEN];

View File

@ -57,7 +57,6 @@ __FBSDID("$FreeBSD$");
#include <sys/mutex.h> #include <sys/mutex.h>
#include <sys/systm.h> #include <sys/systm.h>
static MALLOC_DEFINE(M_MTXPOOL, "mtx_pool", "mutex pool"); static MALLOC_DEFINE(M_MTXPOOL, "mtx_pool", "mutex pool");
/* Pool sizes must be a power of two */ /* Pool sizes must be a power of two */

View File

@ -183,7 +183,6 @@ pmc_cpu_is_primary(int cpu)
#endif #endif
} }
/* /*
* Return the maximum CPU number supported by the system. The return * Return the maximum CPU number supported by the system. The return
* value is used for scaling internal data structures and for runtime * value is used for scaling internal data structures and for runtime

View File

@ -247,7 +247,6 @@ static uint32_t idlepoll_sleeping; /* idlepoll is sleeping */
SYSCTL_UINT(_kern_polling, OID_AUTO, idlepoll_sleeping, CTLFLAG_RD, SYSCTL_UINT(_kern_polling, OID_AUTO, idlepoll_sleeping, CTLFLAG_RD,
&idlepoll_sleeping, 0, "idlepoll is sleeping"); &idlepoll_sleeping, 0, "idlepoll is sleeping");
#define POLL_LIST_LEN 128 #define POLL_LIST_LEN 128
struct pollrec { struct pollrec {
poll_handler_t *handler; poll_handler_t *handler;
@ -273,7 +272,6 @@ init_device_poll(void)
} }
SYSINIT(device_poll, SI_SUB_SOFTINTR, SI_ORDER_MIDDLE, init_device_poll, NULL); SYSINIT(device_poll, SI_SUB_SOFTINTR, SI_ORDER_MIDDLE, init_device_poll, NULL);
/* /*
* Hook from hardclock. Tries to schedule a netisr, but keeps track * Hook from hardclock. Tries to schedule a netisr, but keeps track
* of lost ticks due to the previous handler taking too long. * of lost ticks due to the previous handler taking too long.

View File

@ -66,7 +66,6 @@ __FBSDID("$FreeBSD$");
#include <vm/pmap.h> #include <vm/pmap.h>
#include <vm/vm_map.h> #include <vm/vm_map.h>
static MALLOC_DEFINE(M_PLIMIT, "plimit", "plimit structures"); static MALLOC_DEFINE(M_PLIMIT, "plimit", "plimit structures");
static MALLOC_DEFINE(M_UIDINFO, "uidinfo", "uidinfo structures"); static MALLOC_DEFINE(M_UIDINFO, "uidinfo", "uidinfo structures");
#define UIHASH(uid) (&uihashtbl[(uid) & uihash]) #define UIHASH(uid) (&uihashtbl[(uid) & uihash])

View File

@ -865,7 +865,6 @@ freebsd4_sigaction(struct thread *td, struct freebsd4_sigaction_args *uap)
struct sigaction *actp, *oactp; struct sigaction *actp, *oactp;
int error; int error;
actp = (uap->act != NULL) ? &act : NULL; actp = (uap->act != NULL) ? &act : NULL;
oactp = (uap->oact != NULL) ? &oact : NULL; oactp = (uap->oact != NULL) ? &oact : NULL;
if (actp) { if (actp) {
@ -1964,7 +1963,6 @@ pgsignal(struct pgrp *pgrp, int sig, int checkctty, ksiginfo_t *ksi)
} }
} }
/* /*
* Recalculate the signal mask and reset the signal disposition after * Recalculate the signal mask and reset the signal disposition after
* usermode frame for delivery is formed. Should be called after * usermode frame for delivery is formed. Should be called after
@ -1987,7 +1985,6 @@ postsig_done(int sig, struct thread *td, struct sigacts *ps)
sigdflt(ps, sig); sigdflt(ps, sig);
} }
/* /*
* Send a signal caused by a trap to the current thread. If it will be * Send a signal caused by a trap to the current thread. If it will be
* caught immediately, deliver it with correct code. Otherwise, post it * caught immediately, deliver it with correct code. Otherwise, post it

View File

@ -26,7 +26,6 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");

View File

@ -737,7 +737,6 @@ sysctl_remove_name(struct sysctl_oid *parent, const char *name,
return (error); return (error);
} }
static int static int
sysctl_remove_oid_locked(struct sysctl_oid *oidp, int del, int recurse) sysctl_remove_oid_locked(struct sysctl_oid *oidp, int del, int recurse)
{ {
@ -1293,7 +1292,6 @@ sysctl_sysctl_oidfmt(SYSCTL_HANDLER_ARGS)
return (error); return (error);
} }
static SYSCTL_NODE(_sysctl, CTL_SYSCTL_OIDFMT, oidfmt, CTLFLAG_RD | static SYSCTL_NODE(_sysctl, CTL_SYSCTL_OIDFMT, oidfmt, CTLFLAG_RD |
CTLFLAG_MPSAFE | CTLFLAG_CAPRD, sysctl_sysctl_oidfmt, ""); CTLFLAG_MPSAFE | CTLFLAG_CAPRD, sysctl_sysctl_oidfmt, "");
@ -1546,7 +1544,6 @@ sysctl_msec_to_ticks(SYSCTL_HANDLER_ARGS)
return (0); return (0);
} }
/* /*
* Handle a long, signed or unsigned. * Handle a long, signed or unsigned.
* Two cases: * Two cases:

View File

@ -1540,7 +1540,6 @@ SYSCTL_PROC(_kern_timecounter, OID_AUTO, hardware, CTLTYPE_STRING | CTLFLAG_RW,
0, 0, sysctl_kern_timecounter_hardware, "A", 0, 0, sysctl_kern_timecounter_hardware, "A",
"Timecounter hardware selected"); "Timecounter hardware selected");
/* Report the available timecounter hardware. */ /* Report the available timecounter hardware. */
static int static int
sysctl_kern_timecounter_choice(SYSCTL_HANDLER_ARGS) sysctl_kern_timecounter_choice(SYSCTL_HANDLER_ARGS)

View File

@ -118,7 +118,6 @@ int itimespecfix(struct timespec *ts);
SYSINIT(posix_timer, SI_SUB_P1003_1B, SI_ORDER_FIRST+4, itimer_start, NULL); SYSINIT(posix_timer, SI_SUB_P1003_1B, SI_ORDER_FIRST+4, itimer_start, NULL);
static int static int
settime(struct thread *td, struct timeval *tv) settime(struct thread *td, struct timeval *tv)
{ {

View File

@ -26,7 +26,6 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
/* /*
* The micro UBSan implementation for the userland (uUBSan) and kernel (kUBSan). * The micro UBSan implementation for the userland (uUBSan) and kernel (kUBSan).
* The uBSSan versions is suitable for inclusion into libc or used standalone * The uBSSan versions is suitable for inclusion into libc or used standalone

View File

@ -715,7 +715,6 @@ umtxq_signal_queue(struct umtx_key *key, int n_wake, int q)
return (ret); return (ret);
} }
/* /*
* Wake up specified thread. * Wake up specified thread.
*/ */
@ -1578,7 +1577,6 @@ umtx_pi_setowner(struct umtx_pi *pi, struct thread *owner)
TAILQ_INSERT_TAIL(&uq_owner->uq_pi_contested, pi, pi_link); TAILQ_INSERT_TAIL(&uq_owner->uq_pi_contested, pi, pi_link);
} }
/* /*
* Disown a PI mutex, and remove it from the owned list. * Disown a PI mutex, and remove it from the owned list.
*/ */

View File

@ -1314,7 +1314,6 @@ elf_relocaddr(linker_file_t lf, Elf_Addr x)
return (x); return (x);
} }
static void static void
link_elf_unload_file(linker_file_t file) link_elf_unload_file(linker_file_t file)
{ {

View File

@ -87,7 +87,6 @@ typedef struct {
int sec; int sec;
} Elf_relaent; } Elf_relaent;
typedef struct elf_file { typedef struct elf_file {
struct linker_file lf; /* Common fields */ struct linker_file lf; /* Common fields */
@ -1270,7 +1269,6 @@ relocate_file(elf_file_t ef)
Elf_Size symidx; Elf_Size symidx;
Elf_Addr base; Elf_Addr base;
/* Perform relocations without addend if there are any: */ /* Perform relocations without addend if there are any: */
for (i = 0; i < ef->nreltab; i++) { for (i = 0; i < ef->nreltab; i++) {
rel = ef->reltab[i].rel; rel = ef->reltab[i].rel;

View File

@ -828,7 +828,6 @@ static void
sched_priority(struct thread *td, u_char prio) sched_priority(struct thread *td, u_char prio)
{ {
KTR_POINT3(KTR_SCHED, "thread", sched_tdname(td), "priority change", KTR_POINT3(KTR_SCHED, "thread", sched_tdname(td), "priority change",
"prio:%d", td->td_priority, "new prio:%d", prio, KTR_ATTR_LINKED, "prio:%d", td->td_priority, "new prio:%d", prio, KTR_ATTR_LINKED,
sched_tdname(curthread)); sched_tdname(curthread));
@ -1298,7 +1297,6 @@ sched_add(struct thread *td, int flags)
SDT_PROBE4(sched, , , enqueue, td, td->td_proc, NULL, SDT_PROBE4(sched, , , enqueue, td, td->td_proc, NULL,
flags & SRQ_PREEMPTED); flags & SRQ_PREEMPTED);
/* /*
* Now that the thread is moving to the run-queue, set the lock * Now that the thread is moving to the run-queue, set the lock
* to the scheduler's lock. * to the scheduler's lock.

View File

@ -1506,7 +1506,6 @@ sched_initticks(void *dummy)
sched_idlespinthresh = 2 * max(10000, 6 * hz) / realstathz; sched_idlespinthresh = 2 * max(10000, 6 * hz) / realstathz;
} }
/* /*
* This is the core of the interactivity algorithm. Determines a score based * This is the core of the interactivity algorithm. Determines a score based
* on past behavior. It is the ratio of sleep time to run time scaled to * on past behavior. It is the ratio of sleep time to run time scaled to

View File

@ -652,7 +652,6 @@ acl_posix1e_newfilemode(mode_t cmode, struct acl *dacl)
return (mode); return (mode);
} }
static int static int
acl_posix1e_modload(module_t mod, int what, void *arg) acl_posix1e_modload(module_t mod, int what, void *arg)
{ {

View File

@ -192,7 +192,6 @@ bitrange(int n, int count)
((u_daddr_t)-1 >> (BLIST_BMAP_RADIX - (n + count)))); ((u_daddr_t)-1 >> (BLIST_BMAP_RADIX - (n + count))));
} }
/* /*
* Find the first bit set in a u_daddr_t. * Find the first bit set in a u_daddr_t.
*/ */

View File

@ -29,7 +29,6 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
#include <sys/kernel.h> #include <sys/kernel.h>
@ -37,7 +36,6 @@ __FBSDID("$FreeBSD$");
#include <sys/ktr.h> #include <sys/ktr.h>
#include <sys/buf_ring.h> #include <sys/buf_ring.h>
struct buf_ring * struct buf_ring *
buf_ring_alloc(int count, struct malloc_type *type, int flags, struct mtx *lock) buf_ring_alloc(int count, struct malloc_type *type, int flags, struct mtx *lock)
{ {

View File

@ -3591,7 +3591,6 @@ resource_list_release_active(struct resource_list *rl, device_t bus,
return (retval); return (retval);
} }
/** /**
* @brief Fully release a reserved resource * @brief Fully release a reserved resource
* *
@ -3907,7 +3906,6 @@ bus_generic_resume(device_t dev)
return (0); return (0);
} }
/** /**
* @brief Helper function for implementing BUS_RESET_POST * @brief Helper function for implementing BUS_RESET_POST
* *

View File

@ -84,7 +84,6 @@ SYSCTL_INT(_machdep, OID_AUTO, wall_cmos_clock, CTLFLAG_RW,
* Derived from NetBSD arch/hp300/hp300/clock.c * Derived from NetBSD arch/hp300/hp300/clock.c
*/ */
#define FEBRUARY 2 #define FEBRUARY 2
#define days_in_year(y) (leapyear(y) ? 366 : 365) #define days_in_year(y) (leapyear(y) ? 366 : 365)
#define days_in_month(y, m) \ #define days_in_month(y, m) \

View File

@ -493,7 +493,6 @@ kcsan_copyout(const void *kaddr, void *uaddr, size_t len)
atomic_subtract_##name(ptr, val); \ atomic_subtract_##name(ptr, val); \
} }
#define CSAN_ATOMIC_FUNC_SUBTRACT(name, type) \ #define CSAN_ATOMIC_FUNC_SUBTRACT(name, type) \
_CSAN_ATOMIC_FUNC_SUBTRACT(name, type) \ _CSAN_ATOMIC_FUNC_SUBTRACT(name, type) \
_CSAN_ATOMIC_FUNC_SUBTRACT(acq_##name, type) \ _CSAN_ATOMIC_FUNC_SUBTRACT(acq_##name, type) \
@ -535,7 +534,6 @@ kcsan_copyout(const void *kaddr, void *uaddr, size_t len)
return (atomic_testandset_##name(ptr, val)); \ return (atomic_testandset_##name(ptr, val)); \
} }
CSAN_ATOMIC_FUNC_ADD(8, uint8_t) CSAN_ATOMIC_FUNC_ADD(8, uint8_t)
CSAN_ATOMIC_FUNC_CLEAR(8, uint8_t) CSAN_ATOMIC_FUNC_CLEAR(8, uint8_t)
CSAN_ATOMIC_FUNC_CMPSET(8, uint8_t) CSAN_ATOMIC_FUNC_CMPSET(8, uint8_t)
@ -660,7 +658,6 @@ CSAN_ATOMIC_FUNC_TESTANDSET(ptr, uintptr_t)
atomic_thread_fence_##name(); \ atomic_thread_fence_##name(); \
} }
CSAN_ATOMIC_FUNC_THREAD_FENCE(acq) CSAN_ATOMIC_FUNC_THREAD_FENCE(acq)
CSAN_ATOMIC_FUNC_THREAD_FENCE(acq_rel) CSAN_ATOMIC_FUNC_THREAD_FENCE(acq_rel)
CSAN_ATOMIC_FUNC_THREAD_FENCE(rel) CSAN_ATOMIC_FUNC_THREAD_FENCE(rel)

View File

@ -135,7 +135,6 @@ static const struct {
{ NOV + 3 * YEAR + 1, ENC(3, 12) } { NOV + 3 * YEAR + 1, ENC(3, 12) }
}; };
void void
timespec2fattime(const struct timespec *tsp, int utc, uint16_t *ddp, timespec2fattime(const struct timespec *tsp, int utc, uint16_t *ddp,
uint16_t *dtp, uint8_t *dhp) uint16_t *dtp, uint8_t *dhp)

View File

@ -133,7 +133,6 @@ setup_time_filter_small(struct time_filter_small *tf, int fil_type, uint32_t tim
return(0); return(0);
} }
static void static void
check_update_times(struct time_filter *tf, uint64_t value, uint32_t now) check_update_times(struct time_filter *tf, uint64_t value, uint32_t now)
{ {
@ -204,8 +203,6 @@ check_update_times_small(struct time_filter_small *tf, uint32_t value, uint32_t
} }
} }
void void
filter_reduce_by(struct time_filter *tf, uint64_t reduce_by, uint32_t now) filter_reduce_by(struct time_filter *tf, uint64_t reduce_by, uint32_t now)
{ {
@ -294,7 +291,6 @@ forward_filter_clock(struct time_filter *tf, uint32_t ticks_forward)
} }
} }
void void
forward_filter_clock_small(struct time_filter_small *tf, uint32_t ticks_forward) forward_filter_clock_small(struct time_filter_small *tf, uint32_t ticks_forward)
{ {
@ -309,7 +305,6 @@ forward_filter_clock_small(struct time_filter_small *tf, uint32_t ticks_forward)
} }
} }
void void
tick_filter_clock(struct time_filter *tf, uint32_t now) tick_filter_clock(struct time_filter *tf, uint32_t now)
{ {
@ -453,7 +448,6 @@ apply_filter_max(struct time_filter *tf, uint64_t value, uint32_t now)
return (tf->entries[0].value); return (tf->entries[0].value);
} }
uint32_t uint32_t
apply_filter_max_small(struct time_filter_small *tf, apply_filter_max_small(struct time_filter_small *tf,
uint32_t value, uint32_t now) uint32_t value, uint32_t now)

View File

@ -156,7 +156,6 @@ _gtaskqueue_create(const char *name, int mflags,
return (queue); return (queue);
} }
/* /*
* Signal a taskqueue thread to terminate. * Signal a taskqueue thread to terminate.
*/ */
@ -570,7 +569,6 @@ gtaskqueue_thread_enqueue(void *context)
wakeup_any(tq); wakeup_any(tq);
} }
static struct gtaskqueue * static struct gtaskqueue *
gtaskqueue_create_fast(const char *name, int mflags, gtaskqueue_create_fast(const char *name, int mflags,
taskqueue_enqueue_fn enqueue, void *context) taskqueue_enqueue_fn enqueue, void *context)
@ -579,7 +577,6 @@ gtaskqueue_create_fast(const char *name, int mflags,
MTX_SPIN, "fast_taskqueue"); MTX_SPIN, "fast_taskqueue");
} }
struct taskqgroup_cpu { struct taskqgroup_cpu {
LIST_HEAD(, grouptask) tgc_tasks; LIST_HEAD(, grouptask) tgc_tasks;
struct gtaskqueue *tgc_taskq; struct gtaskqueue *tgc_taskq;

View File

@ -135,7 +135,6 @@ res_find(char **hintp_cookie, int *line, int *startln,
char *hintp, *p; char *hintp, *p;
bool dyn_used = false; bool dyn_used = false;
/* /*
* We are expecting that the caller will pass us a hintp_cookie that * We are expecting that the caller will pass us a hintp_cookie that
* they are tracking. Upon entry, if *hintp_cookie is *not* set, this * they are tracking. Upon entry, if *hintp_cookie is *not* set, this
@ -449,7 +448,6 @@ resource_find_match(int *anchor, const char **name, int *unit,
return ret; return ret;
} }
/* /*
* err = resource_find_dev(&anchor, name, &unit, res, value); * err = resource_find_dev(&anchor, name, &unit, res, value);
* Iterate through a list of devices, returning their unit numbers. * Iterate through a list of devices, returning their unit numbers.

View File

@ -1262,7 +1262,6 @@ void intr_free_intr_map_data(struct intr_map_data *data)
free(data, M_INTRNG); free(data, M_INTRNG);
} }
/* /*
* Register a MSI/MSI-X interrupt controller * Register a MSI/MSI-X interrupt controller
*/ */
@ -1376,7 +1375,6 @@ intr_alloc_msix(device_t pci, device_t child, intptr_t xref, int *irq)
("%s: Found a non-MSI controller: %s", __func__, ("%s: Found a non-MSI controller: %s", __func__,
device_get_name(pic->pic_dev))); device_get_name(pic->pic_dev)));
err = MSI_ALLOC_MSIX(pic->pic_dev, child, &pdev, &isrc); err = MSI_ALLOC_MSIX(pic->pic_dev, child, &pdev, &isrc);
if (err != 0) if (err != 0)
return (err); return (err);
@ -1445,7 +1443,6 @@ intr_map_msi(device_t pci, device_t child, intptr_t xref, int irq,
return (err); return (err);
} }
void dosoftints(void); void dosoftints(void);
void void
dosoftints(void) dosoftints(void)
@ -1595,7 +1592,6 @@ intr_map_copy_map_data(u_int res_id, device_t *map_dev, intptr_t *map_xref,
mtx_unlock(&irq_map_lock); mtx_unlock(&irq_map_lock);
} }
/* /*
* Allocate and fill new entry in irq_map table. * Allocate and fill new entry in irq_map table.
*/ */

View File

@ -258,7 +258,6 @@ kdb_sysctl_stack_overflow(SYSCTL_HANDLER_ARGS)
return (0); return (0);
} }
void void
kdb_panic(const char *msg) kdb_panic(const char *msg)
{ {

View File

@ -302,7 +302,6 @@ void
sbuf_set_flags(struct sbuf *s, int flags) sbuf_set_flags(struct sbuf *s, int flags)
{ {
s->s_flags |= (flags & SBUF_USRFLAGMSK); s->s_flags |= (flags & SBUF_USRFLAGMSK);
} }

View File

@ -92,7 +92,6 @@ __FBSDID("$FreeBSD$");
#include <ddb/ddb.h> #include <ddb/ddb.h>
#endif #endif
/* /*
* Constants for the hash table of sleep queue chains. * Constants for the hash table of sleep queue chains.
* SC_TABLESIZE must be a power of two for SC_MASK to work properly. * SC_TABLESIZE must be a power of two for SC_MASK to work properly.

View File

@ -803,7 +803,6 @@ smp_topo_2level(int l2share, int l2count, int l1share, int l1count,
return (top); return (top);
} }
struct cpu_group * struct cpu_group *
smp_topo_find(struct cpu_group *top, int cpu) smp_topo_find(struct cpu_group *top, int cpu)
{ {
@ -1006,7 +1005,6 @@ sysctl_kern_smp_active(SYSCTL_HANDLER_ARGS)
return (error); return (error);
} }
#ifdef SMP #ifdef SMP
void void
topo_init_node(struct topo_node *node) topo_init_node(struct topo_node *node)

View File

@ -1733,7 +1733,6 @@ stats_voistatdata_tdgst_tostr(enum vsd_dtype voi_dtype __unused,
sizeof(qstr)); sizeof(qstr));
sbuf_cat(buf, qstr); sbuf_cat(buf, qstr);
switch (fmt) { switch (fmt) {
case SB_STRFMT_FREEFORM: case SB_STRFMT_FREEFORM:
fmtstr = is32bit ? ",cnt=%u}" : ",cnt=%ju}"; fmtstr = is32bit ? ",cnt=%u}" : ",cnt=%ju}";

View File

@ -143,7 +143,6 @@ _Malloc(size_t foo, int line)
struct unrhdr; struct unrhdr;
struct mtx { struct mtx {
int state; int state;
} unitmtx; } unitmtx;
@ -225,7 +224,6 @@ ub_full(struct unrb *ub, int len)
return (first_clear == -1); return (first_clear == -1);
} }
#if defined(DIAGNOSTIC) || !defined(_KERNEL) #if defined(DIAGNOSTIC) || !defined(_KERNEL)
/* /*
* Consistency check function. * Consistency check function.
@ -276,7 +274,6 @@ check_unrhdr(struct unrhdr *uh __unused, int line __unused)
#endif #endif
/* /*
* Userland memory management. Just use calloc and keep track of how * Userland memory management. Just use calloc and keep track of how
* many elements we have allocated for check_unrhdr(). * many elements we have allocated for check_unrhdr().
@ -1045,7 +1042,6 @@ main(int argc, char **argv)
exit(2); exit(2);
} }
} }
setbuf(stdout, NULL); setbuf(stdout, NULL);

View File

@ -201,7 +201,6 @@ static uma_zone_t vmem_zone;
#define VMEM_CONDVAR_WAIT(vm) cv_wait(&vm->vm_cv, &vm->vm_lock) #define VMEM_CONDVAR_WAIT(vm) cv_wait(&vm->vm_cv, &vm->vm_lock)
#define VMEM_CONDVAR_BROADCAST(vm) cv_broadcast(&vm->vm_cv) #define VMEM_CONDVAR_BROADCAST(vm) cv_broadcast(&vm->vm_cv)
#define VMEM_LOCK(vm) mtx_lock(&vm->vm_lock) #define VMEM_LOCK(vm) mtx_lock(&vm->vm_lock)
#define VMEM_TRYLOCK(vm) mtx_trylock(&vm->vm_lock) #define VMEM_TRYLOCK(vm) mtx_trylock(&vm->vm_lock)
#define VMEM_UNLOCK(vm) mtx_unlock(&vm->vm_lock) #define VMEM_UNLOCK(vm) mtx_unlock(&vm->vm_lock)

View File

@ -1915,7 +1915,6 @@ depart(struct witness *w)
witness_increment_graph_generation(); witness_increment_graph_generation();
} }
static void static void
adopt(struct witness *parent, struct witness *child) adopt(struct witness *parent, struct witness *child)
{ {
@ -2893,7 +2892,6 @@ witness_hash_djb2(const uint8_t *key, uint32_t size)
return (hash); return (hash);
} }
/* /*
* Initializes the two witness hash tables. Called exactly once from * Initializes the two witness hash tables. Called exactly once from
* witness_initialize(). * witness_initialize().
@ -2966,7 +2964,6 @@ witness_hash_put(struct witness *w)
w_hash.wh_count++; w_hash.wh_count++;
} }
static struct witness_lock_order_data * static struct witness_lock_order_data *
witness_lock_order_get(struct witness *parent, struct witness *child) witness_lock_order_get(struct witness *parent, struct witness *child)
{ {

View File

@ -1525,7 +1525,6 @@ pollrescan(struct thread *td)
return (0); return (0);
} }
static int static int
pollout(struct thread *td, struct pollfd *fds, struct pollfd *ufds, u_int nfd) pollout(struct thread *td, struct pollfd *fds, struct pollfd *ufds, u_int nfd)
{ {

View File

@ -1606,7 +1606,6 @@ pipeclose(struct pipe *cpipe)
pipelock(cpipe, 0); pipelock(cpipe, 0);
} }
/* /*
* Disconnect from peer, if any. * Disconnect from peer, if any.
*/ */

View File

@ -880,7 +880,6 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data)
} }
} }
/* OK */ /* OK */
break; break;

View File

@ -99,7 +99,6 @@ static int msg_prison_get(void *, void *);
static int msg_prison_remove(void *, void *); static int msg_prison_remove(void *, void *);
static void msg_prison_cleanup(struct prison *); static void msg_prison_cleanup(struct prison *);
#ifdef MSG_DEBUG #ifdef MSG_DEBUG
#define DPRINTF(a) printf a #define DPRINTF(a) printf a
#else #else
@ -352,7 +351,6 @@ msgunload()
return (0); return (0);
} }
static int static int
sysvmsg_modload(struct module *module, int cmd, void *arg) sysvmsg_modload(struct module *module, int cmd, void *arg)
{ {

View File

@ -609,7 +609,6 @@ kern_shmctl(struct thread *td, int shmid, int cmd, void *buf, size_t *bufsz)
return (error); return (error);
} }
#ifndef _SYS_SYSPROTO_H_ #ifndef _SYS_SYSPROTO_H_
struct shmctl_args { struct shmctl_args {
int shmid; int shmid;
@ -658,7 +657,6 @@ done:
return (error); return (error);
} }
static int static int
shmget_existing(struct thread *td, struct shmget_args *uap, int mode, shmget_existing(struct thread *td, struct shmget_args *uap, int mode,
int segnum) int segnum)

View File

@ -2113,7 +2113,6 @@ mbprof_clr_handler(SYSCTL_HANDLER_ARGS)
return (error); return (error);
} }
SYSCTL_PROC(_kern_ipc, OID_AUTO, mbufprofile, CTLTYPE_STRING|CTLFLAG_RD, SYSCTL_PROC(_kern_ipc, OID_AUTO, mbufprofile, CTLTYPE_STRING|CTLFLAG_RD,
NULL, 0, mbprof_handler, "A", "mbuf profiling statistics"); NULL, 0, mbprof_handler, "A", "mbuf profiling statistics");

View File

@ -316,7 +316,6 @@ static int unp_externalize_fp(struct file *);
static struct mbuf *unp_addsockcred(struct thread *, struct mbuf *); static struct mbuf *unp_addsockcred(struct thread *, struct mbuf *);
static void unp_process_defers(void * __unused, int); static void unp_process_defers(void * __unused, int);
static void static void
unp_pcb_hold(struct unpcb *unp) unp_pcb_hold(struct unpcb *unp)
{ {
@ -385,7 +384,6 @@ unp_pcb_owned_lock2_slowpath(struct unpcb *unp, struct unpcb **unp2p,
unp_pcb_owned_lock2_slowpath((unp), &(unp2), &freed); \ unp_pcb_owned_lock2_slowpath((unp), &(unp2), &freed); \
} while (0) } while (0)
/* /*
* Definitions of protocols supported in the LOCAL domain. * Definitions of protocols supported in the LOCAL domain.
*/ */
@ -705,7 +703,6 @@ uipc_close(struct socket *so)
unp = sotounpcb(so); unp = sotounpcb(so);
KASSERT(unp != NULL, ("uipc_close: unp == NULL")); KASSERT(unp != NULL, ("uipc_close: unp == NULL"));
vplock = NULL; vplock = NULL;
if ((vp = unp->unp_vnode) != NULL) { if ((vp = unp->unp_vnode) != NULL) {
vplock = mtx_pool_find(mtxpool_sleep, vp); vplock = mtx_pool_find(mtxpool_sleep, vp);
@ -1026,7 +1023,6 @@ connect_internal(struct socket *so, struct sockaddr *nam, struct thread *td)
return (error); return (error);
} }
static int static int
uipc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam, uipc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
struct mbuf *control, struct thread *td) struct mbuf *control, struct thread *td)

View File

@ -67,7 +67,6 @@ CTASSERT(ACL_MAX_ENTRIES >= OLDACL_MAX_ENTRIES);
MALLOC_DEFINE(M_ACL, "acl", "Access Control Lists"); MALLOC_DEFINE(M_ACL, "acl", "Access Control Lists");
static int kern___acl_aclcheck_path(struct thread *td, const char *path, static int kern___acl_aclcheck_path(struct thread *td, const char *path,
acl_type_t type, struct acl *aclp, int follow); acl_type_t type, struct acl *aclp, int follow);
static int kern___acl_delete_path(struct thread *td, const char *path, static int kern___acl_delete_path(struct thread *td, const char *path,

View File

@ -779,7 +779,6 @@ bufspace_wait(struct bufdomain *bd, struct vnode *vp, int gbflags,
BD_UNLOCK(bd); BD_UNLOCK(bd);
} }
/* /*
* bufspace_daemon: * bufspace_daemon:
* *
@ -942,7 +941,6 @@ waitrunningbufspace(void)
mtx_unlock(&rbreqlock); mtx_unlock(&rbreqlock);
} }
/* /*
* vfs_buf_test_cache: * vfs_buf_test_cache:
* *

View File

@ -802,7 +802,6 @@ cluster_write(struct vnode *vp, struct buf *bp, u_quad_t filesize, int seqcount,
vp->v_lasta = bp->b_blkno; vp->v_lasta = bp->b_blkno;
} }
/* /*
* This is an awful lot like cluster_rbuild...wish they could be combined. * This is an awful lot like cluster_rbuild...wish they could be combined.
* The last lbn argument is the current block on which I/O is being * The last lbn argument is the current block on which I/O is being

View File

@ -673,7 +673,6 @@ extattr_list_vp(struct vnode *vp, int attrnamespace, void *data,
return (error); return (error);
} }
#ifndef _SYS_SYSPROTO_H_ #ifndef _SYS_SYSPROTO_H_
struct extattr_list_fd_args { struct extattr_list_fd_args {
int fd; int fd;

View File

@ -523,7 +523,6 @@ vfs_register(struct vfsconf *vfc)
return (0); return (0);
} }
/* Remove registration of a filesystem type */ /* Remove registration of a filesystem type */
static int static int
vfs_unregister(struct vfsconf *vfc) vfs_unregister(struct vfsconf *vfc)

View File

@ -699,7 +699,6 @@ vntblinit(void *dummy __unused)
} }
SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vntblinit, NULL); SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vntblinit, NULL);
/* /*
* Mark a mount point as busy. Used to synchronize access and to delay * Mark a mount point as busy. Used to synchronize access and to delay
* unmounting. Eventually, mountlist_mtx is not released on failure. * unmounting. Eventually, mountlist_mtx is not released on failure.
@ -6130,7 +6129,6 @@ vfs_cache_root_set(struct mount *mp, struct vnode *vp)
* This interface replaces MNT_VNODE_FOREACH. * This interface replaces MNT_VNODE_FOREACH.
*/ */
struct vnode * struct vnode *
__mnt_vnode_next_all(struct vnode **mvp, struct mount *mp) __mnt_vnode_next_all(struct vnode **mvp, struct mount *mp)
{ {

View File

@ -4199,7 +4199,6 @@ getvnode(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp)
return (0); return (0);
} }
/* /*
* Get an (NFS) file handle. * Get an (NFS) file handle.
*/ */

View File

@ -1293,7 +1293,6 @@ vn_io_fault_pgmove(vm_page_t ma[], vm_offset_t offset, int xfersize,
return (0); return (0);
} }
/* /*
* File table truncate routine. * File table truncate routine.
*/ */
@ -1855,7 +1854,6 @@ vn_finished_write(struct mount *mp)
MNT_IUNLOCK(mp); MNT_IUNLOCK(mp);
} }
/* /*
* Filesystem secondary write operation has completed. If we are * Filesystem secondary write operation has completed. If we are
* suspending and this operation is the last one, notify the suspender * suspending and this operation is the last one, notify the suspender
@ -1877,8 +1875,6 @@ vn_finished_secondary_write(struct mount *mp)
MNT_IUNLOCK(mp); MNT_IUNLOCK(mp);
} }
/* /*
* Request a filesystem to suspend write operations. * Request a filesystem to suspend write operations.
*/ */