summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-22 16:57:42 +0000
committerpfg <pfg@FreeBSD.org>2016-04-22 16:57:42 +0000
commitb4106812fd1c346ae831c1eb688667161c4e60bb (patch)
tree7803bf8af81703bf32df733b7c34c420e33402e5 /sys/amd64
parent2b13469532a58b64cb4ffe5d52467db287a68a31 (diff)
downloadFreeBSD-src-b4106812fd1c346ae831c1eb688667161c4e60bb.zip
FreeBSD-src-b4106812fd1c346ae831c1eb688667161c4e60bb.tar.gz
Cleanup redundant parenthesis from existing howmany()/roundup() macro uses.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c2
-rw-r--r--sys/amd64/linux/linux_sysvec.c2
-rw-r--r--sys/amd64/linux32/linux32_sysvec.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index dedf9e5..486ec39 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -676,7 +676,7 @@ allocpages(vm_paddr_t *firstaddr, int n)
CTASSERT(powerof2(NDMPML4E));
/* number of kernel PDP slots */
-#define NKPDPE(ptpgs) howmany((ptpgs), NPDEPG)
+#define NKPDPE(ptpgs) howmany(ptpgs, NPDEPG)
static void
nkpt_init(vm_paddr_t addr)
diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c
index 07efcb5..c9f8302 100644
--- a/sys/amd64/linux/linux_sysvec.c
+++ b/sys/amd64/linux/linux_sysvec.c
@@ -346,7 +346,7 @@ linux_copyout_strings(struct image_params *imgp)
destp = (caddr_t)arginfo - SPARE_USRSPACE -
roundup(sizeof(canary), sizeof(char *)) -
roundup(execpath_len, sizeof(char *)) -
- roundup((ARG_MAX - imgp->args->stringspace), sizeof(char *));
+ roundup(ARG_MAX - imgp->args->stringspace, sizeof(char *));
if (execpath_len != 0) {
imgp->execpathp = (uintptr_t)arginfo - execpath_len;
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c
index 7bbc48e..c264f3a 100644
--- a/sys/amd64/linux32/linux32_sysvec.c
+++ b/sys/amd64/linux32/linux32_sysvec.c
@@ -862,7 +862,7 @@ linux_copyout_strings(struct image_params *imgp)
destp = (caddr_t)arginfo - SPARE_USRSPACE -
roundup(sizeof(canary), sizeof(char *)) -
roundup(execpath_len, sizeof(char *)) -
- roundup((ARG_MAX - imgp->args->stringspace), sizeof(char *));
+ roundup(ARG_MAX - imgp->args->stringspace, sizeof(char *));
if (execpath_len != 0) {
imgp->execpathp = (uintptr_t)arginfo - execpath_len;
OpenPOWER on IntegriCloud