Style fixes for function prototypes and definitions.

Reviewed by:	markj
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D27066
This commit is contained in:
John Baldwin 2020-11-05 23:28:05 +00:00
parent 84fea065db
commit 5973f4922d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367404
2 changed files with 28 additions and 37 deletions

View File

@ -286,7 +286,9 @@ keybuf_init(void)
} }
/* It'd be nice if we could store these in some kind of secure memory... */ /* It'd be nice if we could store these in some kind of secure memory... */
struct keybuf * get_keybuf(void) { struct keybuf *
get_keybuf(void)
{
return (keybuf); return (keybuf);
} }

View File

@ -351,13 +351,13 @@ SYSCTL_TIMEVAL_SEC(_kern, OID_AUTO, cryptodev_warn_interval, CTLFLAG_RW,
&warninterval, &warninterval,
"Delay in seconds between warnings of deprecated /dev/crypto algorithms"); "Delay in seconds between warnings of deprecated /dev/crypto algorithms");
static int cryptof_ioctl(struct file *, u_long, void *, static int cryptof_ioctl(struct file *, u_long, void *, struct ucred *,
struct ucred *, struct thread *); struct thread *);
static int cryptof_stat(struct file *, struct stat *, static int cryptof_stat(struct file *, struct stat *, struct ucred *,
struct ucred *, struct thread *); struct thread *);
static int cryptof_close(struct file *, struct thread *); static int cryptof_close(struct file *, struct thread *);
static int cryptof_fill_kinfo(struct file *, struct kinfo_file *, static int cryptof_fill_kinfo(struct file *, struct kinfo_file *,
struct filedesc *); struct filedesc *);
static struct fileops cryptofops = { static struct fileops cryptofops = {
.fo_read = invfo_rdwr, .fo_read = invfo_rdwr,
@ -381,12 +381,12 @@ static struct csession *csecreate(struct fcrypt *, crypto_session_t,
struct auth_hash *, void *); struct auth_hash *, void *);
static void csefree(struct csession *); static void csefree(struct csession *);
static int cryptodev_op(struct csession *, const struct crypt_op *, static int cryptodev_op(struct csession *, const struct crypt_op *,
struct ucred *, struct thread *td); struct ucred *, struct thread *);
static int cryptodev_aead(struct csession *, struct crypt_aead *, static int cryptodev_aead(struct csession *, struct crypt_aead *,
struct ucred *, struct thread *); struct ucred *, struct thread *);
static int cryptodev_key(struct crypt_kop *); static int cryptodev_key(struct crypt_kop *);
static int cryptodev_find(struct crypt_find_op *); static int cryptodev_find(struct crypt_find_op *);
/* /*
* Check a crypto identifier to see if it requested * Check a crypto identifier to see if it requested
@ -417,12 +417,8 @@ checkforsoftware(int *cridp)
/* ARGSUSED */ /* ARGSUSED */
static int static int
cryptof_ioctl( cryptof_ioctl(struct file *fp, u_long cmd, void *data,
struct file *fp, struct ucred *active_cred, struct thread *td)
u_long cmd,
void *data,
struct ucred *active_cred,
struct thread *td)
{ {
static struct timeval keywarn, featwarn; static struct timeval keywarn, featwarn;
struct crypto_session_params csp; struct crypto_session_params csp;
@ -940,11 +936,8 @@ cod_free(struct cryptop_data *cod)
} }
static int static int
cryptodev_op( cryptodev_op(struct csession *cse, const struct crypt_op *cop,
struct csession *cse, struct ucred *active_cred, struct thread *td)
const struct crypt_op *cop,
struct ucred *active_cred,
struct thread *td)
{ {
struct cryptop_data *cod = NULL; struct cryptop_data *cod = NULL;
struct cryptop *crp = NULL; struct cryptop *crp = NULL;
@ -1154,11 +1147,8 @@ cryptodev_op(
} }
static int static int
cryptodev_aead( cryptodev_aead(struct csession *cse, struct crypt_aead *caead,
struct csession *cse, struct ucred *active_cred, struct thread *td)
struct crypt_aead *caead,
struct ucred *active_cred,
struct thread *td)
{ {
struct cryptop_data *cod = NULL; struct cryptop_data *cod = NULL;
struct cryptop *crp = NULL; struct cryptop *crp = NULL;
@ -1515,11 +1505,8 @@ cryptodev_find(struct crypt_find_op *find)
/* ARGSUSED */ /* ARGSUSED */
static int static int
cryptof_stat( cryptof_stat(struct file *fp, struct stat *sb, struct ucred *active_cred,
struct file *fp, struct thread *td)
struct stat *sb,
struct ucred *active_cred,
struct thread *td)
{ {
return (EOPNOTSUPP); return (EOPNOTSUPP);
@ -1545,7 +1532,8 @@ cryptof_close(struct file *fp, struct thread *td)
} }
static int static int
cryptof_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp) cryptof_fill_kinfo(struct file *fp, struct kinfo_file *kif,
struct filedesc *fdp)
{ {
kif->kf_type = KF_TYPE_CRYPTO; kif->kf_type = KF_TYPE_CRYPTO;
@ -1634,7 +1622,8 @@ csefree(struct csession *cse)
} }
static int static int
cryptoioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td) cryptoioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag,
struct thread *td)
{ {
struct file *f; struct file *f;
struct fcrypt *fcr; struct fcrypt *fcr;