Re: [Patch v4 2/2] ACPI: processor: reduce CPUFREQ thermal reduction pctg for Tegra241

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Hi Sumit,

kernel test robot noticed the following build errors:

Thank you for the report.


[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on next-20231009]
[cannot apply to linus/master v6.6-rc5]

[...]

All errors (new ones prefixed by >>):

    ld: arch/x86/kernel/setup.o: in function `acpi_thermal_cpufreq_pctg':
setup.c:(.text+0x3): multiple definition of `acpi_thermal_cpufreq_pctg'; init/main.o:main.c:(.text+0x32): first defined here
    ld: arch/x86/kernel/x86_init.o: in function `acpi_thermal_cpufreq_pctg':

[...]

    cpu.c:(.text+0x128): multiple definition of `acpi_thermal_cpufreq_pctg'; init/main.o:main.c:(.text+0x32): first defined here
    ld: drivers/base/property.o: in function `acpi_thermal_cpufreq_pctg':
    property.c:(.text+0xa87): multiple definition of `acpi_thermal_cpufreq_pctg'; init/main.o:main.c:(.text+0x32): first defined here
    ld: drivers/base/cacheinfo.o: in function `acpi_thermal_cpufreq_pctg':
    cacheinfo.c:(.text+0x231): multiple definition of `acpi_thermal_cpufreq_pctg'; init/main.o:main.c:(.text+0x32): first defined here

Below change fixes the issue for me.
 +++ b/include/linux/acpi.h
@@ -1542,7 +1542,7 @@ static inline void acpi_device_notify_remove(struct device *dev) { }
 #ifdef CONFIG_HAVE_ARM_SMCCC_DISCOVERY
 int acpi_thermal_cpufreq_pctg(void);
 #else
-inline int acpi_thermal_cpufreq_pctg(void)
+static inline int acpi_thermal_cpufreq_pctg(void)
 {
        return 0;
 }


Best Regards,
Sumit Gupta




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux