lkml.org 
[lkml]   [2020]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v1] sched/topology: Make compiler happy about unused constant definitions
    Date

    Hi,

    On 24/08/20 16:39, Andy Shevchenko wrote:
    > Compilation of almost each file ends up with
    >
    > In file included from .../include/linux/energy_model.h:10,
    > from .../include/linux/device.h:16,
    > from .../drivers/spi/spi.c:8:
    > .../include/linux/sched/topology.h:30:27: warning: ‘SD_DEGENERATE_GROUPS_MASK’ defined but not used [-Wunused-const-variable=]
    > 30 | static const unsigned int SD_DEGENERATE_GROUPS_MASK =
    > | ^~~~~~~~~~~~~~~~~~~~~~~~~
    > ...
    >
    > Make compiler happy by annotating the static constants with __maybwe_unused.
    >

    That should see some use as long as the build is for SMP. This whole region
    is guarded by #ifdef CONFIG_SMP, so an !SMP build shouldn't trigger this.

    With what config/kernel are you getting this?

    \
     
     \ /
      Last update: 2020-08-24 19:11    [W:3.331 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site