Hi Giovanni,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tip/x86/core]
[also build test ERROR on tip/master v5.10-rc3 next-20201110]
[cannot apply to bp/for-next]
[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]
url:
https://github.com/0day-ci/linux/commits/Giovanni-Gherdovich/Add-support-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
238c91115cd05c71447ea071624a4c9fe661f970
config: x86_64-randconfig-s021-20201110 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-76-gf680124b-dirty
#
https://github.com/0day-ci/linux/commit/5a6d809273fed25f523b18d553f61b6d7...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Giovanni-Gherdovich/Add-support-for-frequency-invariance-to-AMD-EPYC-Zen2/20201110-164202
git checkout 5a6d809273fed25f523b18d553f61b6d746eed76
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: arch/x86/kernel/smpboot.o: in function `amd_set_max_freq_ratio':
> > arch/x86/kernel/smpboot.c:2042: undefined reference to
`cppc_get_perf_caps'
vim +2042 arch/x86/kernel/smpboot.c
2033
2034 #ifdef CONFIG_ACPI
2035 static bool amd_set_max_freq_ratio(void)
2036 {
2037 struct cppc_perf_caps perf_caps;
2038 u64 highest_perf, nominal_perf;
2039 u64 perf_ratio;
2040 int rc;
2041
> 2042 rc = cppc_get_perf_caps(0, &perf_caps);
Right, compilation of drivers/acpi/cppc_acpi.c is conditional to
CONFIG_ACPI_CPPC_LIB, not just CONFIG_ACPI. I've sent a v4.
Giovanni