Skip to content

Commit

Permalink
git subrepo pull --force sys/contrib/subrepo-openzfs
Browse files Browse the repository at this point in the history
subrepo:
  subdir:   "sys/contrib/subrepo-openzfs"
  merged:   "814d89e91ecd"
upstream:
  origin:   "https://github.com/CTSRD-CHERI/zfs.git"
  branch:   "cheri-hybrid"
  commit:   "814d89e91ecd"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
  • Loading branch information
bsdjhb committed Aug 19, 2023
1 parent 1230eea commit 5b06101
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sys/contrib/subrepo-openzfs/.gitrepo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[subrepo]
remote = https://github.com/CTSRD-CHERI/zfs.git
branch = cheri-hybrid
commit = 5a6334a98a401987721ce9745d05a170c192de06
parent = 8d0ce2406490ebbb8c587fcba219559cc67a641f
commit = 814d89e91ecd28a2b4106901cda2a83669dbcf64
parent = 1230eeac69cc90bd86a6da27e24513c4013e1b1c
method = merge
cmdver = 0.4.3
5 changes: 5 additions & 0 deletions sys/contrib/subrepo-openzfs/include/sys/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ typedef __ptraddr_t ptraddr_t;
#define _PTRADDR_T_DECLARED
#endif

#ifndef _INT64PTR_T_DECLARED
typedef long long int64ptr_t;
#define _INT64PTR_T_DECLARED
#endif

#ifndef _UINT64PTR_T_DECLARED
typedef unsigned long long uint64ptr_t;
#define _UINT64PTR_T_DECLARED
Expand Down
6 changes: 3 additions & 3 deletions sys/contrib/subrepo-openzfs/module/zfs/zcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ zcp_lua_alloc(void *ud, void *ptr, size_t osize, size_t nsize)

if (nsize == 0) {
if (ptr != NULL) {
int64_t *allocbuf = (int64_t *)ptr - 1;
int64ptr_t *allocbuf = (int64ptr_t *)ptr - 1;
int64_t allocsize = *allocbuf;
ASSERT3S(allocsize, >, 0);
ASSERT3S(allocargs->aa_alloc_remaining + allocsize, <=,
Expand All @@ -736,8 +736,8 @@ zcp_lua_alloc(void *ud, void *ptr, size_t osize, size_t nsize)
}
return (NULL);
} else if (ptr == NULL) {
int64_t *allocbuf;
int64_t allocsize = nsize + sizeof (int64_t);
int64ptr_t *allocbuf;
int64_t allocsize = nsize + sizeof (int64ptr_t);

if (!allocargs->aa_must_succeed &&
(allocsize <= 0 ||
Expand Down

0 comments on commit 5b06101

Please sign in to comment.