summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/pgalloc/pgalloc_state_autogen.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/pgalloc/pgalloc_state_autogen.go')
-rw-r--r--pkg/sentry/pgalloc/pgalloc_state_autogen.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkg/sentry/pgalloc/pgalloc_state_autogen.go b/pkg/sentry/pgalloc/pgalloc_state_autogen.go
index 272186381..e1df238fb 100644
--- a/pkg/sentry/pgalloc/pgalloc_state_autogen.go
+++ b/pkg/sentry/pgalloc/pgalloc_state_autogen.go
@@ -49,7 +49,8 @@ func (s *evictableRangeSet) beforeSave() {}
// +checklocksignore
func (s *evictableRangeSet) StateSave(stateSinkObject state.Sink) {
s.beforeSave()
- var rootValue *evictableRangeSegmentDataSlices = s.saveRoot()
+ var rootValue *evictableRangeSegmentDataSlices
+ rootValue = s.saveRoot()
stateSinkObject.SaveValue(0, rootValue)
}
@@ -183,7 +184,8 @@ func (s *reclaimSet) beforeSave() {}
// +checklocksignore
func (s *reclaimSet) StateSave(stateSinkObject state.Sink) {
s.beforeSave()
- var rootValue *reclaimSegmentDataSlices = s.saveRoot()
+ var rootValue *reclaimSegmentDataSlices
+ rootValue = s.saveRoot()
stateSinkObject.SaveValue(0, rootValue)
}
@@ -286,7 +288,8 @@ func (s *usageSet) beforeSave() {}
// +checklocksignore
func (s *usageSet) StateSave(stateSinkObject state.Sink) {
s.beforeSave()
- var rootValue *usageSegmentDataSlices = s.saveRoot()
+ var rootValue *usageSegmentDataSlices
+ rootValue = s.saveRoot()
stateSinkObject.SaveValue(0, rootValue)
}