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
  • lib
  • debugobjects.c
Find file BlameHistoryPermalink
  • Arnd Bergmann's avatar
    debugobjects: Fix debug_objects_freed accounting · 04148187
    Arnd Bergmann authored Feb 22, 2018
    The removal of the batched object freeing has caused the debug_objects_freed
    to become read-only, and the reading is inside an ifdef, so gcc warns that it
    is completely unused without CONFIG_DEBUG_FS:
    
    lib/debugobjects.c:71:14: error: 'debug_objects_freed' defined but not used [-Werror=unused-variable]
    
    Assuming we are still interested in this number, this adds back code to
    keep track of the freed objects.
    
    Fixes: 636e1970
    
     ("debugobjects: Use global free list in free_object()")
    Suggested-by: default avatarWaiman Long <longman@redhat.com>
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Acked-by: default avatarYang Shi <yang.shi@linux.alibaba.com>
    Acked-by: default avatarWaiman Long <longman@redhat.com>
    Link: https://lkml.kernel.org/r/20180222155335.1647466-1-arnd@arndb.de
    04148187
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7