• Jim Cromie's avatar
    module: already_uses() - reduce pr_debug output volume · 33c951f6
    Jim Cromie authored
    already_uses() is unnecessarily chatty.
    
    `modprobe i915` yields 491 messages like:
    
      [   64.108744] i915 uses drm!
    
    This is a normal situation, and isn't worth all the log entries.
    
    NOTE: I've preserved the "does not use %s" messages, which happens
    less often, but does happen.  Its not clear to me what it tells a
    reader, or what info might improve the pr_debug's utility.
    
    [ 6847.584999] main:already_uses:569: amdgpu does not use ttm!
    [ 6847.585001] main:add_module_usage:584: Allocating new usage for amdgpu.
    [ 6847.585014] main:already_uses:569: amdgpu does not use drm!
    [ 6847.585016] main:add_module_usage:584: Allocating new usage for amdgpu.
    [ 6847.585024] main:already_uses:569: amdgpu does not use drm_display_helper!
    [ 6847.585025] main:add_module_usage:584: Allocating new usage for amdgpu.
    [ 6847.585084] main:already_uses:569: amdgpu does not use drm_kms_helper!
    [ 6847.585086] main:add_module_usage:584: Allocating new usage for amdgpu.
    [ 6847.585175] main:already_uses:569: amdgpu does not use drm_buddy!
    [ 6847.585176] main:add_module_usage:584: Allocating new usage for amdgpu.
    [ 6847.585202] main:already_uses:569: amdgpu does not use i2c_algo_bit!
    [ 6847.585204] main:add_module_usage:584: Allocating new usage for amdgpu.
    [ 6847.585249] main:already_uses:569: amdgpu does not use gpu_sched!
    [ 6847.585250] main:add_module_usage:584: Allocating new usage for amdgpu.
    [ 6847.585314] main:already_uses:569: amdgpu does not use video!
    [ 6847.585315] main:add_module_usage:584: Allocating new usage for amdgpu.
    [ 6847.585409] main:already_uses:569: amdgpu does not use iommu_v2!
    [ 6847.585410] main:add_module_usage:584: Allocating new usage for amdgpu.
    [ 6847.585816] main:already_uses:569: amdgpu does not use drm_ttm_helper!
    [ 6847.585818] main:add_module_usage:584: Allocating new usage for amdgpu.
    [ 6848.762268] dyndbg: add-module: amdgpu.2533 sites
    
    no functional changes.
    Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
    Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
    33c951f6
main.c 81.3 KB