diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-08-29 02:58:14 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-08-29 02:58:14 +0000 |
commit | 209e6f81de6ea3eb825178e9ab0d853ace9b4fe4 (patch) | |
tree | 39557a0a8b1c511b83377c548b8367be1ea9fb3c /sys/uvm | |
parent | f8187a6eb66878b0b0b80568b5d8df62b948285d (diff) |
static inline, not inline static
c99 6.11.5:
"The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature."
ok guenther@
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_aobj.c | 4 | ||||
-rw-r--r-- | sys/uvm/uvm_page.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/uvm/uvm_aobj.c b/sys/uvm/uvm_aobj.c index 5e7098adbb2..faea505fbea 100644 --- a/sys/uvm/uvm_aobj.c +++ b/sys/uvm/uvm_aobj.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_aobj.c,v 1.106 2022/08/01 14:15:46 mpi Exp $ */ +/* $OpenBSD: uvm_aobj.c,v 1.107 2022/08/29 02:58:13 jsg Exp $ */ /* $NetBSD: uvm_aobj.c,v 1.39 2001/02/18 21:19:08 chs Exp $ */ /* @@ -241,7 +241,7 @@ uao_find_swhash_elt(struct uvm_aobj *aobj, int pageidx, boolean_t create) /* * uao_find_swslot: find the swap slot number for an aobj/pageidx */ -inline static int +static inline int uao_find_swslot(struct uvm_object *uobj, int pageidx) { struct uvm_aobj *aobj = (struct uvm_aobj *)uobj; diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c index 4af64e2d4ca..020cfb56765 100644 --- a/sys/uvm/uvm_page.c +++ b/sys/uvm/uvm_page.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_page.c,v 1.169 2022/08/01 14:15:46 mpi Exp $ */ +/* $OpenBSD: uvm_page.c,v 1.170 2022/08/29 02:58:13 jsg Exp $ */ /* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */ /* @@ -130,7 +130,7 @@ int uvm_page_owner_locked_p(struct vm_page *); * => call should have already set pg's object and offset pointers * and bumped the version counter */ -inline static void +static inline void uvm_pageinsert(struct vm_page *pg) { struct vm_page *dupe; |