lkml.org 
[lkml]   [2023]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 08/17] PM: EM: Introduce runtime modifiable table
    Hi Lukasz,

    kernel test robot noticed the following build warnings:

    [auto build test WARNING on rafael-pm/linux-next]
    [also build test WARNING on rafael-pm/thermal linus/master]
    [If your patch is applied to the wrong git tree, kindly drop us a note.
    And when submitting patch, we suggest to use '--base' as documented in
    https://git-scm.com/docs/git-format-patch#_base_tree_information]

    url: https://github.com/intel-lab-lkp/linux/commits/Lukasz-Luba/PM-EM-Refactor-em_cpufreq_update_efficiencies-arguments/20230512-180158
    base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
    patch link: https://lore.kernel.org/r/20230512095743.3393563-9-lukasz.luba%40arm.com
    patch subject: [PATCH v2 08/17] PM: EM: Introduce runtime modifiable table
    config: arm64-randconfig-s041-20230514 (https://download.01.org/0day-ci/archive/20230514/202305141200.aaTHzYOJ-lkp@intel.com/config)
    compiler: aarch64-linux-gcc (GCC) 12.1.0
    reproduce:
    wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
    chmod +x ~/bin/make.cross
    # apt-get install sparse
    # sparse version: v0.6.4-39-gce1a6720-dirty
    # https://github.com/intel-lab-lkp/linux/commit/d12d8d1010d7b093d6b64c204d77484d6fc268ab
    git remote add linux-review https://github.com/intel-lab-lkp/linux
    git fetch --no-tags linux-review Lukasz-Luba/PM-EM-Refactor-em_cpufreq_update_efficiencies-arguments/20230512-180158
    git checkout d12d8d1010d7b093d6b64c204d77484d6fc268ab
    # save the config file
    mkdir build_dir && cp config build_dir/.config
    COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 olddefconfig
    COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash kernel/power/

    If you fix the issue, kindly add following tag where applicable
    | Reported-by: kernel test robot <lkp@intel.com>
    | Link: https://lore.kernel.org/oe-kbuild-all/202305141200.aaTHzYOJ-lkp@intel.com/

    sparse warnings: (new ones prefixed by >>)
    >> kernel/power/energy_model.c:472:13: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct em_perf_table *tmp @@ got struct em_perf_table [noderef] __rcu *runtime_table @@
    kernel/power/energy_model.c:472:13: sparse: expected struct em_perf_table *tmp
    kernel/power/energy_model.c:472:13: sparse: got struct em_perf_table [noderef] __rcu *runtime_table

    vim +472 kernel/power/energy_model.c

    444
    445 /**
    446 * em_dev_unregister_perf_domain() - Unregister Energy Model (EM) for a device
    447 * @dev : Device for which the EM is registered
    448 *
    449 * Unregister the EM for the specified @dev (but not a CPU device).
    450 */
    451 void em_dev_unregister_perf_domain(struct device *dev)
    452 {
    453 struct em_perf_domain *pd;
    454 struct em_perf_table *tmp;
    455
    456 if (IS_ERR_OR_NULL(dev) || !dev->em_pd)
    457 return;
    458
    459 if (_is_cpu_device(dev))
    460 return;
    461
    462 pd = dev->em_pd;
    463 /*
    464 * The mutex separates all register/unregister requests and protects
    465 * from potential clean-up/setup issues in the debugfs directories.
    466 * The debugfs directory name is the same as device's name.
    467 */
    468 mutex_lock(&em_pd_mutex);
    469
    470 em_debug_remove_pd(dev);
    471
    > 472 tmp = pd->runtime_table;

    --
    0-DAY CI Kernel Test Service
    https://github.com/intel/lkp-tests

    \
     
     \ /
      Last update: 2023-05-14 06:30    [W:7.218 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site