Skip to content

Commit

Permalink
kernel/freebsd: fix function parameter list
Browse files Browse the repository at this point in the history
[ upstream commit 12b7ef3c4a6262e1c0f747bd0037a3a8df38ab4c ]

Functions which take no parameters should explicitly have "(void)" as
the parameter list, rather than "()".

Reported upstream on FreeBSD ports collection [1].

[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271524

Fixes: 764bf26 ("add FreeBSD support")

Reported-by: John Baldwin <jhb@freebsd.org>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
  • Loading branch information
bruce-richardson authored and bluca committed Jun 12, 2023
1 parent 550db84 commit 4bf90a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/freebsd/contigmem/contigmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static struct cdevsw contigmem_ops = {
};

static int
contigmem_load()
contigmem_load(void)
{
char index_string[8], description[32];
int i, error = 0;
Expand Down Expand Up @@ -178,7 +178,7 @@ contigmem_load()
}

static int
contigmem_unload()
contigmem_unload(void)
{
int i;

Expand Down

0 comments on commit 4bf90a1

Please sign in to comment.