Skip to content

-Wsometimes-uninitialized in arch/arm64/include/asm/percpu.h #174

Description

@nickdesaulniers

Reported-by: Prasad Sodagudi psodagud@quicinc.com psodagud@codeaurora.org

./arch/arm64/include/asm/percpu.h:105:1: warning: variable 'ret' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]

I think that you can initialize ret in the default case
besides calling BUILD_BUG_ON();.

Metadata

Metadata

Assignees

Labels

[ARCH] arm64This bug impacts ARCH=arm64[BUG] linuxA bug that should be fixed in the mainline kernel.[FIXED][LINUX] 4.20This bug was fixed in Linux 4.20

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions