Skip to content

Commit 4a3b7d7

Browse files
committed
chore: inline function args
Signed-off-by: shun159 <[email protected]>
1 parent 2c19f88 commit 4a3b7d7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

elf_reader.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,9 +1396,7 @@ func (ec *elfCode) loadKsymsSection() error {
13961396

13971397
// associateStructOpsRelocs handles `.struct_ops.link`
13981398
// and associates the target function with the correct struct member in the map.
1399-
func (ec *elfCode) associateStructOpsRelocs(
1400-
progs map[string]*ProgramSpec,
1401-
) error {
1399+
func (ec *elfCode) associateStructOpsRelocs(progs map[string]*ProgramSpec) error {
14021400
for _, sec := range ec.sections {
14031401
if sec.kind != structOpsSection {
14041402
continue
@@ -1437,11 +1435,7 @@ func (ec *elfCode) associateStructOpsRelocs(
14371435
}
14381436

14391437
// createStructOpsMap() creates and registers a MapSpec for a struct_ops
1440-
func (ec *elfCode) createStructOpsMap(
1441-
vsi btf.VarSecinfo,
1442-
userData []byte,
1443-
flags uint32,
1444-
) (*btf.Struct, uint32, error) {
1438+
func (ec *elfCode) createStructOpsMap(vsi btf.VarSecinfo, userData []byte, flags uint32) (*btf.Struct, uint32, error) {
14451439
varType, ok := btf.As[*btf.Var](vsi.Type)
14461440
if !ok {
14471441
return nil, 0, fmt.Errorf("vsi: expect var, got %T", vsi.Type)

0 commit comments

Comments
 (0)