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
  • scripts
  • checkpatch.pl
Find file BlameHistoryPermalink
  • Peng Wang's avatar
    checkpatch: ignore warning designated initializers using NR_CPUS · 35cdcbfc
    Peng Wang authored Feb 25, 2021
    Some max_length wants to hold as large room as possible to ensure enough
    size to tackle with the biggest NR_CPUS.  An example below:
    
    kernel/cgroup/cpuset.c:
    static struct cftype legacy_files[] = {
            {
                    .name = "cpus",
                    .seq_show = cpuset_common_seq_show,
                    .write = cpuset_write_resmask,
                    .max_write_len = (100U + 6 * NR_CPUS),
                    .private = FILE_CPULIST,
            },
    	...
    }
    
    Link: https://lkml.kernel.org/r/5d4998aa8a8ac7efada2c7daffa9e73559f8b186.1609331255.git.rocking@linux.alibaba.com
    
    
    Signed-off-by: default avatarPeng Wang <rocking@linux.alibaba.com>
    Acked-by: default avatarJoe Perches <joe@perches.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    35cdcbfc
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7