• Jaswinder Singh Rajput's avatar
    x86: k8 convert node_to_k8_nb_misc() from a macro to an inline function · b206525a
    Jaswinder Singh Rajput authored
    Converting node_to_k8_nb_misc() from a macro to an inline function
    makes compiler see the 'node' parameter in the !CONFIG_K8_NB too,
    which eliminates these compiler warnings:
    
      arch/x86/kernel/cpu/intel_cacheinfo.c: In function ‘show_cache_disable’:
      arch/x86/kernel/cpu/intel_cacheinfo.c:712: warning: unused variable ‘node’
      arch/x86/kernel/cpu/intel_cacheinfo.c: In function ‘store_cache_disable’:
      arch/x86/kernel/cpu/intel_cacheinfo.c:739: warning: unused variable ‘node’
    Signed-off-by: default avatarJaswinder Singh Rajput <jaswinderrajput@gmail.com>
    Cc: Andreas Herrmann <andreas.herrmann3@amd.com>
    Cc: Mark Langsdorf <mark.langsdorf@amd.com>
    LKML-Reference: <1239730477.2966.26.camel@ht.satnam>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    b206525a
k8.h 634 Bytes