lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202211291946.ibgd5NuI-lkp@intel.com>
Date:   Tue, 29 Nov 2022 19:23:46 +0800
From:   kernel test robot <lkp@...el.com>
To:     Perry Yuan <perry.yuan@....com>, rafael.j.wysocki@...el.com,
        Mario.Limonciello@....com, ray.huang@....com,
        viresh.kumar@...aro.org
Cc:     oe-kbuild-all@...ts.linux.dev, Deepak.Sharma@....com,
        Nathan.Fontenot@....com, Alexander.Deucher@....com,
        Shimmer.Huang@....com, Xiaojian.Du@....com, Li.Meng@....com,
        wyes.karny@....com, linux-pm@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5 3/9] cpufreq: amd_pstate: implement Pstate EPP support
 for the AMD processors

Hi Perry,

I love your patch! Perhaps something to improve:

[auto build test WARNING on rafael-pm/linux-next]
[also build test WARNING on linus/master v6.1-rc7 next-20221129]
[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/Perry-Yuan/Implement-AMD-Pstate-EPP-Driver/20221129-011556
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link:    https://lore.kernel.org/r/20221128170314.2276636-4-perry.yuan%40amd.com
patch subject: [PATCH v5 3/9] cpufreq: amd_pstate: implement Pstate EPP support for the AMD processors
config: i386-randconfig-a002-20221128
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel-lab-lkp/linux/commit/e353f533252a9e07649872be9e9012c4500d9133
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Perry-Yuan/Implement-AMD-Pstate-EPP-Driver/20221129-011556
        git checkout e353f533252a9e07649872be9e9012c4500d9133
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/cpufreq/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/cpufreq/amd-pstate-ut.c:29:
>> include/linux/amd-pstate.h:150:21: warning: 'epp_values' defined but not used [-Wunused-variable]
     150 | static unsigned int epp_values[] = {
         |                     ^~~~~~~~~~
>> include/linux/amd-pstate.h:141:27: warning: 'energy_perf_strings' defined but not used [-Wunused-const-variable=]
     141 | static const char * const energy_perf_strings[] = {
         |                           ^~~~~~~~~~~~~~~~~~~


vim +/epp_values +150 include/linux/amd-pstate.h

   140	
 > 141	static const char * const energy_perf_strings[] = {
   142		[EPP_INDEX_DEFAULT] = "default",
   143		[EPP_INDEX_PERFORMANCE] = "performance",
   144		[EPP_INDEX_BALANCE_PERFORMANCE] = "balance_performance",
   145		[EPP_INDEX_BALANCE_POWERSAVE] = "balance_power",
   146		[EPP_INDEX_POWERSAVE] = "power",
   147		NULL
   148	};
   149	
 > 150	static unsigned int epp_values[] = {
   151		[EPP_INDEX_DEFAULT] = 0,
   152		[EPP_INDEX_PERFORMANCE] = AMD_CPPC_EPP_PERFORMANCE,
   153		[EPP_INDEX_BALANCE_PERFORMANCE] = AMD_CPPC_EPP_BALANCE_PERFORMANCE,
   154		[EPP_INDEX_BALANCE_POWERSAVE] = AMD_CPPC_EPP_BALANCE_POWERSAVE,
   155		[EPP_INDEX_POWERSAVE] = AMD_CPPC_EPP_POWERSAVE,
   156	};
   157	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (140461 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ