forked from torvalds/linux
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-Wignored-attributes in arch/powerpc/platforms/embedded6xx/wii.c #989
Labels
-Wignored-attributes
[ARCH] powerpc
This bug impacts ARCH=powerpc
[BUG] linux
A bug that should be fixed in the mainline kernel.
[FIXED][LINUX] 5.8
This bug was fixed in Linux 5.8
[Reported-by] kbuild test robot
Reported-by: kbuild test robot <lkp@intel.com>
Comments
ruscur
pushed a commit
to ruscur/linux
that referenced
this issue
Apr 14, 2020
A 0day randconfig uncovered an error with clang, trimmed for brevity:
arch/powerpc/platforms/embedded6xx/wii.c:195:7: error: attribute
declaration must precede definition [-Werror,-Wignored-attributes]
if (!machine_is(wii))
^
The macro machine_is declares mach_##name but define_machine actually
defines mach_##name, hence the warning.
To fix this, move define_machine after the is_machine usage.
Fixes: 5a7ee31 ("powerpc: wii: platform support")
Reported-by: kbuild test robot <lkp@intel.com>
Link: ClangBuiltLinux#989
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
ruscur
pushed a commit
to ruscur/linux
that referenced
this issue
May 26, 2020
A 0day randconfig uncovered an error with clang, trimmed for brevity:
arch/powerpc/platforms/embedded6xx/wii.c:195:7: error: attribute
declaration must precede definition [-Werror,-Wignored-attributes]
if (!machine_is(wii))
^
The macro machine_is declares mach_##name but define_machine actually
defines mach_##name, hence the warning.
To fix this, move define_machine after the machine_is usage.
Fixes: 5a7ee31 ("powerpc: wii: platform support")
Reported-by: kbuild test robot <lkp@intel.com>
Link: ClangBuiltLinux#989
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
mpe
pushed a commit
to linuxppc/linux
that referenced
this issue
Jun 2, 2020
A 0day randconfig uncovered an error with clang, trimmed for brevity:
arch/powerpc/platforms/embedded6xx/wii.c:195:7: error: attribute
declaration must precede definition [-Werror,-Wignored-attributes]
if (!machine_is(wii))
^
The macro machine_is declares mach_##name but define_machine actually
defines mach_##name, hence the warning.
To fix this, move define_machine after the is_machine usage.
Fixes: 5a7ee31 ("powerpc: wii: platform support")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: ClangBuiltLinux#989
Link: https://lore.kernel.org/r/20200413190644.16757-1-natechancellor@gmail.com
|
not yet in mainline |
|
Merged into mainline: https://git.kernel.org/linus/91ffeaa7e5dd62753e23a1204dc7ecd11f26eadc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
-Wignored-attributes
[ARCH] powerpc
This bug impacts ARCH=powerpc
[BUG] linux
A bug that should be fixed in the mainline kernel.
[FIXED][LINUX] 5.8
This bug was fixed in Linux 5.8
[Reported-by] kbuild test robot
Reported-by: kbuild test robot <lkp@intel.com>
nickdesaulniers commentedApr 13, 2020
via 0day bot:
The attribute in on the wrong side of a declaration
The text was updated successfully, but these errors were encountered: