Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • scripts
  • Makefile.compiler
Find file BlameHistoryPermalink
  • Nathan Chancellor's avatar
    kbuild: Add -Wa,--fatal-warnings to as-instr invocation · 0ee695a4
    Nathan Chancellor authored Jan 25, 2024
    
    
    Certain assembler instruction tests may only induce warnings from the
    assembler on an unsupported instruction or option, which causes as-instr
    to succeed when it was expected to fail. Some tests workaround this
    limitation by additionally testing that invalid input fails as expected.
    However, this is fragile if the assembler is changed to accept the
    invalid input, as it will cause the instruction/option to be unavailable
    like it was unsupported even when it is.
    
    Use '-Wa,--fatal-warnings' in the as-instr macro to turn these warnings
    into hard errors, which avoids this fragility and makes tests more
    robust and well formed.
    
    Cc: stable@vger.kernel.org
    Suggested-by: default avatarEric Biggers <ebiggers@kernel.org>
    Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
    Tested-by: default avatarEric Biggers <ebiggers@google.com>
    Tested-by: default avatarAndy Chiu <andybnac@gmail.com>
    Reviewed-by: default avatarAndy Chiu <andybnac@gmail.com>
    Tested-by: default avatarConor Dooley <conor.dooley@microchip.com>
    Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
    Acked-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Link: https://lore.kernel.org/r/20240125-fix-riscv-option-arch-llvm-18-v1-1-390ac9cc3cd0@kernel.org
    
    
    Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
    0ee695a4
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7