aboutsummaryrefslogtreecommitdiffstats
path: root/sys/targets
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-04-18 17:43:49 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-04-19 10:26:57 +0200
commit2152cfbcb2be527366289e08536f7acce254d3f5 (patch)
tree143587e689fab20996af08790fffa66d66a3f9c4 /sys/targets
parent815daeab0fe9e740284119987e2921c980368d9d (diff)
all: fix liner errors
pkg/compiler/compiler.go:182: line is 125 characters func (comp *compiler) parseAttrs(descs map[string]*attrDesc, parent ast.Node, attrs []*ast.Type) (res map[*attrDesc]uint64) { sys/targets/common.go:47:21: unnecessary conversion makeMmap(^uint64(target.PageSize)+1, target.PageSize, 0), ^ sys/targets/common.go:61: File is not `gofmt`-ed with `-s` &prog.Call{ sys/windows/init.go:35: File is not `gofmt`-ed with `-s` &prog.Call{
Diffstat (limited to 'sys/targets')
-rw-r--r--sys/targets/common.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/targets/common.go b/sys/targets/common.go
index d7ee71983..beac7004d 100644
--- a/sys/targets/common.go
+++ b/sys/targets/common.go
@@ -44,7 +44,7 @@ func MakePosixMmap(target *prog.Target, exec, contain bool) func() []*prog.Call
return func() []*prog.Call {
if contain {
return []*prog.Call{
- makeMmap(^uint64(target.PageSize)+1, target.PageSize, 0),
+ makeMmap(^target.PageSize+1, target.PageSize, 0),
makeMmap(0, size, protRW),
makeMmap(size, target.PageSize, 0),
}
@@ -58,7 +58,7 @@ func MakeSyzMmap(target *prog.Target) func() []*prog.Call {
size := target.NumPages * target.PageSize
return func() []*prog.Call {
return []*prog.Call{
- &prog.Call{
+ {
Meta: meta,
Args: []prog.Arg{
prog.MakeVmaPointerArg(meta.Args[0], 0, size),