Tree/Branch: v4.0.9
Git describe: v4.0.9
Commit: 391b01b08d Linux 4.0.9
Build Time: 84 min 52 sec
Passed: 9 / 9 (100.00 %)
Failed: 0 / 9 ( 0.00 %)
Errors: 0
Warnings: 25
Section Mismatches: 0
-------------------------------------------------------------------------------
defconfigs with issues (other than build errors):
18 warnings 0 mismatches : arm64-allmodconfig
2 warnings 0 mismatches : arm-multi_v7_defconfig
9 warnings 0 mismatches : arm-allmodconfig
-------------------------------------------------------------------------------
Warnings Summary: 25
3 ../drivers/media/v4l2-core/videobuf2-core.c:3228:26: warning: unused variable 'fileio' [-Wunused-variable]
2 ../drivers/staging/sm7xxfb/sm7xxfb.c:117:19: warning: 'sm7xx_vga_setup' defined but not used [-Wunused-function]
2 ../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
1 ../sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../kernel/acct.c:174:2: warning: value computed is not used [-Wunused-value]
1 ../drivers/usb/renesas_usbhs/common.c:482:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/staging/fbtft/fbtft-io.c:63:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=]
1 ../drivers/staging/fbtft/fbtft-io.c:110:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=]
1 ../drivers/staging/fbtft/fbtft-core.c:1004:4: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
1 ../drivers/staging/dgap/dgap.h:124:0: warning: "PCI_IO_SIZE" redefined
1 ../drivers/spi/spi-s3c64xx.c:336:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/spi/spi-s3c64xx.c:327:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/rtc/rtc-armada38x.c:91:22: warning: unused variable 'flags' [-Wunused-variable]
1 ../drivers/rtc/rtc-armada38x.c:67:34: warning: unused variable 'flags' [-Wunused-variable]
1 ../drivers/net/ethernet/intel/igb/igb_ptp.c:395:21: warning: 'pin' may be used uninitialized in this function [-Wmaybe-uninitialized]
1 ../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
1 ../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
1 ../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1224 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
1 ../drivers/gpio/gpio-74xx-mmio.c:132:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
1 ../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
1 ../crypto/wp512.c:987:1: warning: the frame size of 1112 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../arch/arm/mach-cns3xxx/pcie.c:266:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
===============================================================================
Detailed per-defconfig build reports below:
-------------------------------------------------------------------------------
arm64-allmodconfig : PASS, 0 errors, 18 warnings, 0 section mismatches
Warnings:
../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
../drivers/gpio/gpio-74xx-mmio.c:132:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
../drivers/media/v4l2-core/videobuf2-core.c:3228:26: warning: unused variable 'fileio' [-Wunused-variable]
../drivers/spi/spi-s3c64xx.c:327:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/spi/spi-s3c64xx.c:336:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
../drivers/staging/dgap/dgap.h:124:0: warning: "PCI_IO_SIZE" redefined
../drivers/staging/fbtft/fbtft-core.c:1004:4: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
../drivers/staging/fbtft/fbtft-io.c:63:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=]
../drivers/staging/fbtft/fbtft-io.c:110:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
../drivers/usb/renesas_usbhs/common.c:482:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/staging/sm7xxfb/sm7xxfb.c:117:19: warning: 'sm7xx_vga_setup' defined but not used [-Wunused-function]
-------------------------------------------------------------------------------
arm-multi_v7_defconfig : PASS, 0 errors, 2 warnings, 0 section mismatches
Warnings:
../drivers/media/v4l2-core/videobuf2-core.c:3228:26: warning: unused variable 'fileio' [-Wunused-variable]
../drivers/net/ethernet/intel/igb/igb_ptp.c:395:21: warning: 'pin' may be used uninitialized in this function [-Wmaybe-uninitialized]
-------------------------------------------------------------------------------
arm-allmodconfig : PASS, 0 errors, 9 warnings, 0 section mismatches
Warnings:
../arch/arm/mach-cns3xxx/pcie.c:266:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../crypto/wp512.c:987:1: warning: the frame size of 1112 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../kernel/acct.c:174:2: warning: value computed is not used [-Wunused-value]
../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1224 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../drivers/media/v4l2-core/videobuf2-core.c:3228:26: warning: unused variable 'fileio' [-Wunused-variable]
../drivers/rtc/rtc-armada38x.c:67:34: warning: unused variable 'flags' [-Wunused-variable]
../drivers/rtc/rtc-armada38x.c:91:22: warning: unused variable 'flags' [-Wunused-variable]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
../drivers/staging/sm7xxfb/sm7xxfb.c:117:19: warning: 'sm7xx_vga_setup' defined but not used [-Wunused-function]
-------------------------------------------------------------------------------
Passed with no errors, warnings or mismatches:
arm64-allnoconfig
arm-multi_v5_defconfig
x86_64-defconfig
arm-allnoconfig
x86_64-allnoconfig
arm64-defconfig
Consider a dual core (0/1) system with two CPUs:
- sharing clock/voltage rails and hence cpufreq-policy
- CPU1 is offline while the cpufreq driver is registered
- cpufreq_add_dev() is called from subsys callback for CPU0 and we
create the policy for the CPUs and create link for CPU1.
- cpufreq_add_dev() is called from subsys callback for CPU1, we find
that the cpu is offline and we try to create a sysfs link for CPU1.
- This results in double addition of the sysfs link and we get this:
WARNING: CPU: 0 PID: 1 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x60/0x7c()
sysfs: cannot create duplicate filename '/devices/system/cpu/cpu1/cpufreq'
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.2.0-rc2+ #1704
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
Backtrace:
[<c0013248>] (dump_backtrace) from [<c00133e4>] (show_stack+0x18/0x1c)
r6:c01a1f30 r5:0000001f r4:00000000 r3:00000000
[<c00133cc>] (show_stack) from [<c076920c>] (dump_stack+0x7c/0x98)
[<c0769190>] (dump_stack) from [<c0029ab4>] (warn_slowpath_common+0x80/0xbc)
r4:d74abbd0 r3:d74c0000
[<c0029a34>] (warn_slowpath_common) from [<c0029b94>] (warn_slowpath_fmt+0x38/0x40)
r8:ffffffef r7:00000000 r6:d75a8960 r5:c0993280 r4:d6b4d000
[<c0029b60>] (warn_slowpath_fmt) from [<c01a1f30>] (sysfs_warn_dup+0x60/0x7c)
r3:d6b4dfe7 r2:c0930750
[<c01a1ed0>] (sysfs_warn_dup) from [<c01a22c8>] (sysfs_do_create_link_sd+0xb8/0xc0)
r6:d75a8960 r5:c0993280 r4:d00aba20
[<c01a2210>] (sysfs_do_create_link_sd) from [<c01a22fc>] (sysfs_create_link+0x2c/0x3c)
r10:00000001 r8:c14db3c8 r7:d7b89010 r6:c0ae7c60 r5:d7b89010 r4:d00d1200
[<c01a22d0>] (sysfs_create_link) from [<c0506160>] (add_cpu_dev_symlink+0x34/0x5c)
[<c050612c>] (add_cpu_dev_symlink) from [<c05084d0>] (cpufreq_add_dev+0x674/0x794)
r5:00000001 r4:00000000
[<c0507e5c>] (cpufreq_add_dev) from [<c03db114>] (subsys_interface_register+0x8c/0xd0)
r10:00000003 r9:d7bb01f0 r8:c14db3c8 r7:00106738 r6:c0ae7c60 r5:c0acbd08
r4:c0ae7e20
[<c03db088>] (subsys_interface_register) from [<c0508a2c>] (cpufreq_register_driver+0x104/0x1f4)
The check for offline-cpu in cpufreq_add_dev() is present to ensure that
link gets added for the CPUs, that weren't physically present earlier
and we missed the case where a CPU is offline while registering the
driver.
Fix this by keeping track of CPUs for which link is already created, and
avoiding duplicate sysfs entries.
Fixes: 87549141d516 ("cpufreq: Stop migrating sysfs files on hotplug")
Reported-by: Russell King <linux(a)arm.linux.org.uk>
Signed-off-by: Viresh Kumar <viresh.kumar(a)linaro.org>
---
Russell,
Can you please give this a try? (completely untested).
drivers/cpufreq/cpufreq.c | 26 +++++++++++++++++++++++---
include/linux/cpufreq.h | 1 +
2 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index cdbe0676d246..12d089b78cad 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -984,17 +984,26 @@ EXPORT_SYMBOL(cpufreq_sysfs_remove_file);
static int add_cpu_dev_symlink(struct cpufreq_policy *policy, int cpu)
{
struct device *cpu_dev;
+ int ret;
pr_debug("%s: Adding symlink for CPU: %u\n", __func__, cpu);
if (!policy)
return 0;
+ /* Already added for offline CPUS from subsys callback */
+ if (cpumask_test_cpu(cpu, policy->symlinks))
+ return 0;
+
cpu_dev = get_cpu_device(cpu);
if (WARN_ON(!cpu_dev))
return 0;
- return sysfs_create_link(&cpu_dev->kobj, &policy->kobj, "cpufreq");
+ ret = sysfs_create_link(&cpu_dev->kobj, &policy->kobj, "cpufreq");
+ if (!ret)
+ cpumask_set_cpu(cpu, policy->symlinks);
+
+ return ret;
}
static void remove_cpu_dev_symlink(struct cpufreq_policy *policy, int cpu)
@@ -1007,6 +1016,7 @@ static void remove_cpu_dev_symlink(struct cpufreq_policy *policy, int cpu)
if (WARN_ON(!cpu_dev))
return;
+ cpumask_clear_cpu(cpu, policy->symlinks);
sysfs_remove_link(&cpu_dev->kobj, "cpufreq");
}
@@ -1038,6 +1048,10 @@ static void cpufreq_remove_dev_symlink(struct cpufreq_policy *policy)
if (j == policy->kobj_cpu)
continue;
+ /* Already removed for offline CPUS from subsys callback */
+ if (!cpumask_test_cpu(j, policy->symlinks))
+ continue;
+
remove_cpu_dev_symlink(policy, j);
}
}
@@ -1172,11 +1186,14 @@ static struct cpufreq_policy *cpufreq_policy_alloc(struct device *dev)
if (!zalloc_cpumask_var(&policy->related_cpus, GFP_KERNEL))
goto err_free_cpumask;
+ if (!zalloc_cpumask_var(&policy->symlinks, GFP_KERNEL))
+ goto err_free_related_cpumask;
+
ret = kobject_init_and_add(&policy->kobj, &ktype_cpufreq, &dev->kobj,
"cpufreq");
if (ret) {
pr_err("%s: failed to init policy->kobj: %d\n", __func__, ret);
- goto err_free_rcpumask;
+ goto err_free_symlink_cpumask;
}
INIT_LIST_HEAD(&policy->policy_list);
@@ -1193,7 +1210,9 @@ static struct cpufreq_policy *cpufreq_policy_alloc(struct device *dev)
return policy;
-err_free_rcpumask:
+err_free_symlink_cpumask:
+ free_cpumask_var(policy->symlinks);
+err_free_related_cpumask:
free_cpumask_var(policy->related_cpus);
err_free_cpumask:
free_cpumask_var(policy->cpus);
@@ -1243,6 +1262,7 @@ static void cpufreq_policy_free(struct cpufreq_policy *policy, bool notify)
write_unlock_irqrestore(&cpufreq_driver_lock, flags);
cpufreq_policy_put_kobj(policy, notify);
+ free_cpumask_var(policy->symlinks);
free_cpumask_var(policy->related_cpus);
free_cpumask_var(policy->cpus);
kfree(policy);
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index a82049683016..b4812f6977c6 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -62,6 +62,7 @@ struct cpufreq_policy {
/* CPUs sharing clock, require sw coordination */
cpumask_var_t cpus; /* Online CPUs only */
cpumask_var_t related_cpus; /* Online + Offline CPUs */
+ cpumask_var_t symlinks; /* CPUs for which cpufreq sysfs directory is present */
unsigned int shared_type; /* ACPI: ANY or ALL affected CPUs
should set cpufreq */
--
2.4.0
Tree/Branch: v3.18.19
Git describe: v3.18.19
Commit: 22a6cbf9f3 Linux 3.18.19
Build Time: 151 min 49 sec
Passed: 9 / 9 (100.00 %)
Failed: 0 / 9 ( 0.00 %)
Errors: 0
Warnings: 33
Section Mismatches: 0
-------------------------------------------------------------------------------
defconfigs with issues (other than build errors):
14 warnings 0 mismatches : arm64-allmodconfig
1 warnings 0 mismatches : arm-multi_v5_defconfig
2 warnings 0 mismatches : arm-multi_v7_defconfig
2 warnings 0 mismatches : x86_64-defconfig
22 warnings 0 mismatches : arm-allmodconfig
1 warnings 0 mismatches : arm64-defconfig
-------------------------------------------------------------------------------
Warnings Summary: 33
6 ../net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
3 ../drivers/media/v4l2-core/videobuf2-core.c:3224:26: warning: unused variable 'fileio' [-Wunused-variable]
2 ../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
2 ../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
1 ../fs/btrfs/extent_io.c:2166:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/usb/renesas_usbhs/common.c:469:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/usb/gadget/udc/udc-xilinx.c:2136:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/usb/gadget/function/f_ncm.c:203:0: warning: "NCAPS" redefined
1 ../drivers/tty/isicom.c:1058:2: warning: integer overflow in expression [-Woverflow]
1 ../drivers/staging/vt6655/device_main.c:2997:1: warning: the frame size of 1296 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../drivers/staging/bcm/CmHost.c:1564:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/staging/bcm/CmHost.c:1546:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/staging/bcm/CmHost.c:1503:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/pci/host/pcie-xilinx.c:154:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:467:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:307:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
1 ../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1224 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../drivers/isdn/hardware/mISDN/w6692.c:1181:2: warning: unsupported argument to '__builtin_return_address' [enabled by default]
1 ../drivers/isdn/hardware/mISDN/mISDNipac.c:759:2: warning: unsupported argument to '__builtin_return_address' [enabled by default]
1 ../drivers/iommu/intel-iommu.c:1749:25: warning: unused variable 'drhd' [-Wunused-variable]
1 ../drivers/infiniband/ulp/iser/iser_verbs.c:1206:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/infiniband/ulp/iser/iser_verbs.c:1201:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/infiniband/ulp/iser/iser_verbs.c:1175:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/infiniband/ulp/iser/iser_verbs.c:1174:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
1 ../drivers/infiniband/hw/mlx5/mem.c:72:9: warning: comparison of distinct pointer types lacks a cast [enabled by default]
1 ../drivers/hsi/controllers/omap_ssi_port.c:1121:10: warning: 'err' may be used uninitialized in this function [-Wuninitialized]
1 ../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
1 ../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
1 ../crypto/wp512.c:987:1: warning: the frame size of 1112 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../arch/arm/mach-cns3xxx/pcie.c:313:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
===============================================================================
Detailed per-defconfig build reports below:
-------------------------------------------------------------------------------
arm64-allmodconfig : PASS, 0 errors, 14 warnings, 0 section mismatches
Warnings:
../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
../net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
../drivers/media/v4l2-core/videobuf2-core.c:3224:26: warning: unused variable 'fileio' [-Wunused-variable]
../drivers/staging/bcm/CmHost.c:1503:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/staging/bcm/CmHost.c:1546:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/staging/bcm/CmHost.c:1564:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/usb/gadget/function/f_ncm.c:203:0: warning: "NCAPS" redefined
../drivers/usb/gadget/udc/udc-xilinx.c:2136:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
../drivers/usb/renesas_usbhs/common.c:469:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
-------------------------------------------------------------------------------
arm-multi_v5_defconfig : PASS, 0 errors, 1 warnings, 0 section mismatches
Warnings:
../net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
-------------------------------------------------------------------------------
arm-multi_v7_defconfig : PASS, 0 errors, 2 warnings, 0 section mismatches
Warnings:
../net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
../drivers/media/v4l2-core/videobuf2-core.c:3224:26: warning: unused variable 'fileio' [-Wunused-variable]
-------------------------------------------------------------------------------
x86_64-defconfig : PASS, 0 errors, 2 warnings, 0 section mismatches
Warnings:
../net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
../drivers/iommu/intel-iommu.c:1749:25: warning: unused variable 'drhd' [-Wunused-variable]
-------------------------------------------------------------------------------
arm-allmodconfig : PASS, 0 errors, 22 warnings, 0 section mismatches
Warnings:
../arch/arm/mach-cns3xxx/pcie.c:313:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../fs/btrfs/extent_io.c:2166:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../crypto/wp512.c:987:1: warning: the frame size of 1112 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
../drivers/hsi/controllers/omap_ssi_port.c:1121:10: warning: 'err' may be used uninitialized in this function [-Wuninitialized]
../drivers/infiniband/hw/mlx5/mem.c:72:9: warning: comparison of distinct pointer types lacks a cast [enabled by default]
../drivers/infiniband/ulp/iser/iser_verbs.c:1174:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/infiniband/ulp/iser/iser_verbs.c:1175:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/infiniband/ulp/iser/iser_verbs.c:1201:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/infiniband/ulp/iser/iser_verbs.c:1206:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/isdn/hardware/mISDN/w6692.c:1181:2: warning: unsupported argument to '__builtin_return_address' [enabled by default]
../drivers/isdn/hardware/mISDN/mISDNipac.c:759:2: warning: unsupported argument to '__builtin_return_address' [enabled by default]
../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1224 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../drivers/pci/host/pcie-xilinx.c:154:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat]
../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
../drivers/tty/isicom.c:1058:2: warning: integer overflow in expression [-Woverflow]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:307:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:467:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
../drivers/media/v4l2-core/videobuf2-core.c:3224:26: warning: unused variable 'fileio' [-Wunused-variable]
../drivers/staging/vt6655/device_main.c:2997:1: warning: the frame size of 1296 bytes is larger than 1024 bytes [-Wframe-larger-than=]
-------------------------------------------------------------------------------
arm64-defconfig : PASS, 0 errors, 1 warnings, 0 section mismatches
Warnings:
../net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
-------------------------------------------------------------------------------
Passed with no errors, warnings or mismatches:
x86_64-allnoconfig
arm64-allnoconfig
arm-allnoconfig
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
Hi Guys,
This series migrates Miscellaneous architecture clockevent drivers to
the new set-state interface. This would enable these drivers to use new
states (like: ONESHOT_STOPPED, etc.) of a clockevent device (if
required), as the set-mode interface is marked obsolete now and wouldn't
be expanded to handle new states.
Rebased over: v4.2-rc2
Target kernel: v4.3
This has been build/boot tested by two bots on various platforms for few
days now, not sure if we had a good coverage for these architectures
though:
- kernelci, http://kernelci.org/
- 0-DAY kernel test infrastructure, kbuild test robot
Can be applied directly by respective maintainers.
Viresh Kumar (23):
alpha/time: Migrate to new 'set-state' interface
ARC/time: Migrate to new 'set-state' interface
AVR32/time: Migrate to new 'set-state' interface
blackfin/time-ts: Migrate to new 'set-state' interface
c6x/timer64: Migrate to new 'set-state' interface
cris/time: Migrate to new 'set-state' interface
hexagon/time: Migrate to new 'set-state' interface
m68k/coldfire/pit: Migrate to new 'set-state' interface
microblaze/timer: Migrate to new 'set-state' interface
mn10300/cevt-mn10300: Migrate to new 'set-state' interface
nios2/time: Migrate to new 'set-state' interface
openrisc/time: Migrate to new 'set-state' interface
powerpc/time: Migrate to new 'set-state' interface
s390/time: Migrate to new 'set-state' interface
score/time: Migrate to new 'set-state' interface
sh/localtimer: Migrate to new 'set-state' interface
sparc/time: Migrate to new 'set-state' interface
tile/time: Migrate to new 'set-state' interface
um/time: Migrate to new 'set-state' interface
unicore/time: Migrate to new 'set-state' interface
xtensa/time: Migrate to new 'set-state' interface
drivers/hv: Migrate to new 'set-state' interface
kernel: broadcast-hrtimer: Migrate to new 'set-state' interface
arch/alpha/kernel/time.c | 18 ++---
arch/arc/kernel/time.c | 40 ++++-------
arch/avr32/kernel/time.c | 65 ++++++++---------
arch/blackfin/kernel/time-ts.c | 136 ++++++++++++++++++-----------------
arch/c6x/platforms/timer64.c | 52 +++++++-------
arch/cris/arch-v32/kernel/time.c | 8 ++-
arch/hexagon/kernel/time.c | 17 +----
arch/m68k/coldfire/pit.c | 66 ++++++++---------
arch/microblaze/kernel/timer.c | 46 +++++-------
arch/mn10300/kernel/cevt-mn10300.c | 7 --
arch/nios2/kernel/time.c | 49 +++++++------
arch/openrisc/kernel/time.c | 24 -------
arch/powerpc/kernel/time.c | 24 +++----
arch/s390/kernel/time.c | 6 --
arch/score/kernel/time.c | 31 +++-----
arch/sh/kernel/localtimer.c | 6 --
arch/sparc/kernel/sun4m_smp.c | 2 +-
arch/sparc/kernel/time_32.c | 57 +++++++--------
arch/sparc/kernel/time_64.c | 33 +++------
arch/tile/kernel/time.c | 8 ++-
arch/um/kernel/time.c | 44 ++++++------
arch/unicore32/kernel/time.c | 29 +++-----
arch/xtensa/kernel/time.c | 53 +++++++-------
drivers/hv/hv.c | 45 +++++-------
kernel/time/tick-broadcast-hrtimer.c | 49 ++++++-------
25 files changed, 395 insertions(+), 520 deletions(-)
--
2.4.0
Tree/Branch: next-20150720
Git describe: next-20150720
Commit: 708e764f20 Add linux-next specific files for 20150720
Build Time: 0 min 9 sec
Passed: 5 / 6 ( 83.33 %)
Failed: 1 / 6 ( 16.67 %)
Errors: 4
Warnings: 21
Section Mismatches: 0
Failed defconfigs:
arm-allmodconfig
Errors:
arm-allmodconfig
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/sched.h:1899:21: error: static declaration of 'task_pid_nr' follows non-static declaration
../include/linux/sched.h:2427:28: error: conflicting types for 'find_task_by_vpid'
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
-------------------------------------------------------------------------------
defconfigs with issues (other than build errors):
10 warnings 0 mismatches : arm-multi_v7_defconfig
25 warnings 0 mismatches : arm-allmodconfig
4 warnings 0 mismatches : arm-allnoconfig
9 warnings 0 mismatches : arm-multi_v5_defconfig
-------------------------------------------------------------------------------
Errors summary: 4
8 ../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
8 ../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
1 ../include/linux/sched.h:2427:28: error: conflicting types for 'find_task_by_vpid'
1 ../include/linux/sched.h:1899:21: error: static declaration of 'task_pid_nr' follows non-static declaration
Warnings Summary: 21
8 ../include/linux/coresight.h:259:7: warning: assignment makes pointer from integer without a cast [enabled by default]
6 <stdin>:1262:2: warning: #warning syscall munlockall2 not implemented [-Wcpp]
6 <stdin>:1259:2: warning: #warning syscall munlock2 not implemented [-Wcpp]
6 <stdin>:1256:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
6 <stdin>:1253:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
1 ../sound/soc/codecs/rt5645.c:2931:3: warning: 'return' with a value, in function returning void [enabled by default]
1 ../net/ipv4/inet_hashtables.c:617:13: warning: division by zero [-Wdiv-by-zero]
1 ../net/bluetooth/mgmt.c:6613:8: warning: 'r192' may be used uninitialized in this function [-Wmaybe-uninitialized]
1 ../net/bluetooth/mgmt.c:6613:8: warning: 'h192' may be used uninitialized in this function [-Wmaybe-uninitialized]
1 ../ipc/kdbus/connection.c:2049:1: warning: the frame size of 1280 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../drivers/scsi/advansys.c:7806:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]
1 ../drivers/ntb/ntb_transport.c:778:3: warning: right shift count >= width of type [enabled by default]
1 ../drivers/infiniband/hw/cxgb4/mem.c:147:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/infiniband/core/uverbs_cmd.c:1466:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/gpu/drm/virtio/virtgpu_fence.c:64:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'long long int' [-Wformat]
1 ../drivers/gpu/drm/virtio/virtgpu_debugfs.c:39:6: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat]
1 ../drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm204.c:975:1: warning: the frame size of 1208 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../drivers/block/nvme-core.c:1849:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/block/nvme-core.c:1807:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../crypto/wp512.c:987:1: warning: the frame size of 1112 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../arch/arm/mach-cns3xxx/pcie.c:266:1: warning: the frame size of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
===============================================================================
Detailed per-defconfig build reports below:
-------------------------------------------------------------------------------
arm-multi_v7_defconfig : PASS, 0 errors, 10 warnings, 0 section mismatches
Warnings:
<stdin>:1253:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1256:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
<stdin>:1259:2: warning: #warning syscall munlock2 not implemented [-Wcpp]
<stdin>:1262:2: warning: #warning syscall munlockall2 not implemented [-Wcpp]
../net/bluetooth/mgmt.c:6613:8: warning: 'r192' may be used uninitialized in this function [-Wmaybe-uninitialized]
../net/bluetooth/mgmt.c:6613:8: warning: 'h192' may be used uninitialized in this function [-Wmaybe-uninitialized]
<stdin>:1253:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1256:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
<stdin>:1259:2: warning: #warning syscall munlock2 not implemented [-Wcpp]
<stdin>:1262:2: warning: #warning syscall munlockall2 not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm-allmodconfig : FAIL, 18 errors, 25 warnings, 0 section mismatches
Errors:
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/sched.h:1899:21: error: static declaration of 'task_pid_nr' follows non-static declaration
../include/linux/sched.h:2427:28: error: conflicting types for 'find_task_by_vpid'
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:259:2: error: implicit declaration of function 'find_task_by_vpid' [-Werror=implicit-function-declaration]
../include/linux/coresight.h:261:3: error: implicit declaration of function 'task_pid_nr' [-Werror=implicit-function-declaration]
Warnings:
<stdin>:1253:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1256:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
<stdin>:1259:2: warning: #warning syscall munlock2 not implemented [-Wcpp]
<stdin>:1262:2: warning: #warning syscall munlockall2 not implemented [-Wcpp]
../arch/arm/mach-cns3xxx/pcie.c:266:1: warning: the frame size of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../ipc/kdbus/connection.c:2049:1: warning: the frame size of 1280 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../crypto/wp512.c:987:1: warning: the frame size of 1112 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../drivers/block/nvme-core.c:1807:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/block/nvme-core.c:1849:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../sound/soc/codecs/rt5645.c:2931:3: warning: 'return' with a value, in function returning void [enabled by default]
../include/linux/coresight.h:259:7: warning: assignment makes pointer from integer without a cast [enabled by default]
../include/linux/coresight.h:259:7: warning: assignment makes pointer from integer without a cast [enabled by default]
../include/linux/coresight.h:259:7: warning: assignment makes pointer from integer without a cast [enabled by default]
../include/linux/coresight.h:259:7: warning: assignment makes pointer from integer without a cast [enabled by default]
../include/linux/coresight.h:259:7: warning: assignment makes pointer from integer without a cast [enabled by default]
../include/linux/coresight.h:259:7: warning: assignment makes pointer from integer without a cast [enabled by default]
../include/linux/coresight.h:259:7: warning: assignment makes pointer from integer without a cast [enabled by default]
../include/linux/coresight.h:259:7: warning: assignment makes pointer from integer without a cast [enabled by default]
../drivers/infiniband/core/uverbs_cmd.c:1466:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/infiniband/hw/cxgb4/mem.c:147:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm204.c:975:1: warning: the frame size of 1208 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../drivers/gpu/drm/virtio/virtgpu_fence.c:64:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'long long int' [-Wformat]
../drivers/gpu/drm/virtio/virtgpu_debugfs.c:39:6: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat]
../drivers/ntb/ntb_transport.c:778:3: warning: right shift count >= width of type [enabled by default]
../drivers/scsi/advansys.c:7806:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]
-------------------------------------------------------------------------------
arm-allnoconfig : PASS, 0 errors, 4 warnings, 0 section mismatches
Warnings:
<stdin>:1253:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1256:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
<stdin>:1259:2: warning: #warning syscall munlock2 not implemented [-Wcpp]
<stdin>:1262:2: warning: #warning syscall munlockall2 not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm-multi_v5_defconfig : PASS, 0 errors, 9 warnings, 0 section mismatches
Warnings:
<stdin>:1253:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1256:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
<stdin>:1259:2: warning: #warning syscall munlock2 not implemented [-Wcpp]
<stdin>:1262:2: warning: #warning syscall munlockall2 not implemented [-Wcpp]
../net/ipv4/inet_hashtables.c:617:13: warning: division by zero [-Wdiv-by-zero]
<stdin>:1253:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1256:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
<stdin>:1259:2: warning: #warning syscall munlock2 not implemented [-Wcpp]
<stdin>:1262:2: warning: #warning syscall munlockall2 not implemented [-Wcpp]
-------------------------------------------------------------------------------
Passed with no errors, warnings or mismatches:
x86_64-allnoconfig
x86_64-defconfig