Skip to content

-Wuninitialized in kernel/trace/trace_probe.c #2110

Closed
@nathanchance

Description

@nathanchance
kernel/trace/trace_probe.c:660:19: warning: variable 'params' is uninitialized when used here [-Wuninitialized]
  660 |                         return PTR_ERR(params);
      |                                        ^~~~~~
kernel/trace/trace_probe.c:618:32: note: initialize the variable 'params' to silence this warning
  618 |         const struct btf_param *params;
      |                                       ^
      |                                        = NULL

Visible after llvm/llvm-project@2464313

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions