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
You need to sign in or sign up before continuing.
  • linux
  • include
  • sound
  • sof
  • control.h
Find file BlameHistoryPermalink
  • Gustavo A. R. Silva's avatar
    ASoC: SOF: control.h: Replace zero-length array with DECLARE_FLEX_ARRAY() helper · b264ef79
    Gustavo A. R. Silva authored Sep 26, 2022
    Zero-length arrays are deprecated and we are moving towards adopting
    C99 flexible-array members, instead. So, replace zero-length arrays
    declarations in anonymous union with the new DECLARE_FLEX_ARRAY()
    helper macro.
    
    This helper allows for flexible-array members in unions.
    
    Link: https://github.com/KSPP/linux/issues/193
    Link: https://github.com/KSPP/linux/issues/211
    Link: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
    
    
    Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
    Reviewed-by: default avatarKees Cook <keescook@chromium.org>
    Link: https://lore.kernel.org/r/YzIcZ11k8RiQtS2T@work
    
    
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    b264ef79
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7