->add_dev() may fail and the error returned from it can be useful for
the caller.
For example, if some of the resources aren't ready yet and -EPROBE_DEFER
is returned from ->add_dev(), then the owner of 'struct
subsys_interface' may want to try probing again at a later point of
time. And that requires a proper return value from ->add_dev().
Also, if we hit an error while registering subsys_interface, then we
should stop proceeding further and rollback whatever has been done until
then. Break part of subsys_interface_unregister() into another routine,
which lets us call ->remove_dev() for all devices for which ->add_dev()
is already called.
Cc: 3.3+ <stable(a)vger.kernel.org> # 3.3+
Fixes: ca22e56debc5 ("driver-core: implement 'sysdev' functionality for regular devices and buses")
Reported-and-tested-by: Pi-Cheng Chen <pi-cheng.chen(a)linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar(a)linaro.org>
---
drivers/base/bus.c | 55 ++++++++++++++++++++++++++++++++++--------------------
1 file changed, 35 insertions(+), 20 deletions(-)
diff --git a/drivers/base/bus.c b/drivers/base/bus.c
index 79bc203f51ef..d92dc109ba51 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -1112,11 +1112,36 @@ void subsys_dev_iter_exit(struct subsys_dev_iter *iter)
}
EXPORT_SYMBOL_GPL(subsys_dev_iter_exit);
+static void __subsys_interface_unregister(struct subsys_interface *sif,
+ struct device *lastdev)
+{
+ struct bus_type *subsys = sif->subsys;
+ struct subsys_dev_iter iter;
+ struct device *dev;
+
+ mutex_lock(&subsys->p->mutex);
+ list_del_init(&sif->node);
+ if (sif->remove_dev) {
+ subsys_dev_iter_init(&iter, subsys, NULL, NULL);
+ while ((dev = subsys_dev_iter_next(&iter))) {
+ if (dev == lastdev)
+ break;
+
+ sif->remove_dev(dev, sif);
+ }
+ subsys_dev_iter_exit(&iter);
+ }
+ mutex_unlock(&subsys->p->mutex);
+
+ bus_put(subsys);
+}
+
int subsys_interface_register(struct subsys_interface *sif)
{
struct bus_type *subsys;
struct subsys_dev_iter iter;
struct device *dev;
+ int ret = 0;
if (!sif || !sif->subsys)
return -ENODEV;
@@ -1129,38 +1154,28 @@ int subsys_interface_register(struct subsys_interface *sif)
list_add_tail(&sif->node, &subsys->p->interfaces);
if (sif->add_dev) {
subsys_dev_iter_init(&iter, subsys, NULL, NULL);
- while ((dev = subsys_dev_iter_next(&iter)))
- sif->add_dev(dev, sif);
+ while ((dev = subsys_dev_iter_next(&iter))) {
+ ret = sif->add_dev(dev, sif);
+ if (ret)
+ break;
+ }
subsys_dev_iter_exit(&iter);
}
mutex_unlock(&subsys->p->mutex);
- return 0;
+ if (ret)
+ __subsys_interface_unregister(sif, dev);
+
+ return ret;
}
EXPORT_SYMBOL_GPL(subsys_interface_register);
void subsys_interface_unregister(struct subsys_interface *sif)
{
- struct bus_type *subsys;
- struct subsys_dev_iter iter;
- struct device *dev;
-
if (!sif || !sif->subsys)
return;
- subsys = sif->subsys;
-
- mutex_lock(&subsys->p->mutex);
- list_del_init(&sif->node);
- if (sif->remove_dev) {
- subsys_dev_iter_init(&iter, subsys, NULL, NULL);
- while ((dev = subsys_dev_iter_next(&iter)))
- sif->remove_dev(dev, sif);
- subsys_dev_iter_exit(&iter);
- }
- mutex_unlock(&subsys->p->mutex);
-
- bus_put(subsys);
+ __subsys_interface_unregister(sif, NULL);
}
EXPORT_SYMBOL_GPL(subsys_interface_unregister);
--
2.4.0
Tree/Branch: next-20150731
Git describe: next-20150731
Commit: 37bd1ea52d Add linux-next specific files for 20150731
Build Time: 69 min 58 sec
Passed: 7 / 9 ( 77.78 %)
Failed: 2 / 9 ( 22.22 %)
Errors: 13
Warnings: 55
Section Mismatches: 1
Failed defconfigs:
arm64-allmodconfig
arm-allmodconfig
Errors:
arm64-allmodconfig
../include/linux/platform_device.h:245:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
../include/linux/platform_device.h:250:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
arm-allmodconfig
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: initialization from incompatible pointer type [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_begin') [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: initialization from incompatible pointer type [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_flush') [-Werror]
../drivers/pci/host/pcie-xilinx.c:235:3: error: implicit declaration of function 'msi_desc_to_pci_sys_data' [-Werror=implicit-function-declaration]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
-------------------------------------------------------------------------------
defconfigs with issues (other than build errors):
3 warnings 0 mismatches : arm64-allnoconfig
115 warnings 1 mismatches : arm64-allmodconfig
5 warnings 0 mismatches : arm-multi_v5_defconfig
8 warnings 0 mismatches : arm-multi_v7_defconfig
2 warnings 0 mismatches : x86_64-defconfig
27 warnings 0 mismatches : arm-allmodconfig
3 warnings 0 mismatches : arm-allnoconfig
2 warnings 0 mismatches : x86_64-allnoconfig
3 warnings 0 mismatches : arm64-defconfig
-------------------------------------------------------------------------------
Errors summary: 13
15 ../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
15 ../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
15 ../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
15 ../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
1 ../include/linux/platform_device.h:250:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
1 ../include/linux/platform_device.h:245:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
1 ../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
1 ../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
1 ../drivers/pci/host/pcie-xilinx.c:235:3: error: implicit declaration of function 'msi_desc_to_pci_sys_data' [-Werror=implicit-function-declaration]
1 ../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: initialization from incompatible pointer type [-Werror]
1 ../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_flush') [-Werror]
1 ../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: initialization from incompatible pointer type [-Werror]
1 ../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_begin') [-Werror]
Warnings Summary: 55
17 ../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
17 ../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
14 ../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
14 ../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
10 <stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
10 ../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
10 ../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
9 ../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
6 <stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
4 ../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:32:0: warning: "TRUE" redefined
4 ../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:31:0: warning: "FALSE" redefined
3 warning: (MFD_CROS_EC) selects CHROME_PLATFORMS which has unmet direct dependencies (X86 || ARM)
3 ../drivers/net/ethernet/mellanox/mlxsw/item.h:65:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat]
2 ../include/linux/export.h:36:30: warning: parameter names (without types) in function declaration
2 ../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: parameter names (without types) in function declaration [enabled by default]
2 ../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: data definition has no type or storage class [enabled by default]
2 ../drivers/gpio/gpio-omap.c:504:3: warning: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type [enabled by default]
2 ../arch/x86/kernel/irq.c:237:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
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 ../net/bluetooth/mgmt.c:6636:8: warning: 'r192' may be used uninitialized in this function [-Wmaybe-uninitialized]
1 ../net/bluetooth/mgmt.c:6636:8: warning: 'h192' may be used uninitialized in this function [-Wmaybe-uninitialized]
1 ../kernel/sched/rt.c:68:13: warning: 'push_irq_work_func' declared 'static' but never defined [-Wunused-function]
1 ../ipc/kdbus/connection.c:2049:1: warning: the frame size of 1280 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../include/uapi/linux/byteorder/big_endian.h:32:26: warning: large integer implicitly truncated to unsigned type [-Woverflow]
1 ../include/linux/platform_device.h:250:1: warning: data definition has no type or storage class
1 ../include/linux/platform_device.h:245:1: warning: data definition has no type or storage class
1 ../include/linux/bitops.h:6:19: warning: large integer implicitly truncated to unsigned type [-Woverflow]
1 ../drivers/usb/renesas_usbhs/common.c:496:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/soc/mediatek/mtk-scpsys.c:487:30: warning: 'scpsys_drv_init' defined but not used [-Wunused-function]
1 ../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: 'scpsys_drv_init' defined but not used [-Wunused-function]
1 ../drivers/scsi/advansys.c:7806:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]
1 ../drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c:766:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c:675:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/pci/host/pcie-xilinx.c:235:3: warning: passing argument 1 of 'sys_to_pcie' makes pointer from integer without a cast [enabled by default]
1 ../drivers/ntb/ntb_transport.c:778:3: warning: right shift count >= width of type [enabled by default]
1 ../drivers/net/ethernet/mellanox/mlxsw/pci.c:1548:2: warning: right shift count >= width of type [enabled by default]
1 ../drivers/net/ethernet/mellanox/mlxsw/pci.c:1536:2: warning: right shift count >= width of type [enabled by default]
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/mmc/host/sh_mmcif.c:418:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/mmc/host/sh_mmcif.c:417:4: 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/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:1888:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/block/nvme-core.c:1846:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-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 ../drivers/atm/iphase.h:127:0: warning: "isprint" 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 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
Section Mismatch Summary: 1
1 WARNING: drivers/staging/fsl-mc/bus/mc-bus-driver.o(.init.text+0x18c): Section mismatch in reference from the function init_module() to the function .exit.text:dprc_driver_exit()
===============================================================================
Detailed per-defconfig build reports below:
-------------------------------------------------------------------------------
arm64-allnoconfig : PASS, 0 errors, 3 warnings, 0 section mismatches
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../kernel/sched/rt.c:68:13: warning: 'push_irq_work_func' declared 'static' but never defined [-Wunused-function]
-------------------------------------------------------------------------------
arm64-allmodconfig : FAIL, 2 errors, 115 warnings, 1 section mismatches
Errors:
../include/linux/platform_device.h:245:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
../include/linux/platform_device.h:250:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
Warnings:
warning: (MFD_CROS_EC) selects CHROME_PLATFORMS which has unmet direct dependencies (X86 || ARM)
warning: (MFD_CROS_EC) selects CHROME_PLATFORMS which has unmet direct dependencies (X86 || ARM)
warning: (MFD_CROS_EC) selects CHROME_PLATFORMS which has unmet direct dependencies (X86 || ARM)
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../drivers/atm/iphase.h:127:0: warning: "isprint" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../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
../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/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/mmc/host/sh_mmcif.c:417:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/mmc/host/sh_mmcif.c:418:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c:675:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c:766:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../include/linux/platform_device.h:245:1: warning: data definition has no type or storage class
../include/linux/export.h:36:30: warning: parameter names (without types) in function declaration
../include/linux/platform_device.h:250:1: warning: data definition has no type or storage class
../include/linux/export.h:36:30: warning: parameter names (without types) in function declaration
../drivers/soc/mediatek/mtk-scpsys.c:487:30: warning: 'scpsys_drv_init' defined but not used [-Wunused-function]
../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/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:31:0: warning: "FALSE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:32:0: warning: "TRUE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:31:0: warning: "FALSE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:32:0: warning: "TRUE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:31:0: warning: "FALSE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:32:0: warning: "TRUE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:31:0: warning: "FALSE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:32:0: warning: "TRUE" redefined
../include/uapi/linux/byteorder/big_endian.h:32:26: warning: large integer implicitly truncated to unsigned type [-Woverflow]
../drivers/usb/renesas_usbhs/common.c:496:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../include/linux/bitops.h:6:19: warning: large integer implicitly truncated to unsigned type [-Woverflow]
Section Mismatches:
WARNING: drivers/staging/fsl-mc/bus/mc-bus-driver.o(.init.text+0x18c): Section mismatch in reference from the function init_module() to the function .exit.text:dprc_driver_exit()
-------------------------------------------------------------------------------
arm-multi_v5_defconfig : PASS, 0 errors, 5 warnings, 0 section mismatches
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm-multi_v7_defconfig : PASS, 0 errors, 8 warnings, 0 section mismatches
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../net/bluetooth/mgmt.c:6636:8: warning: 'r192' may be used uninitialized in this function [-Wmaybe-uninitialized]
../net/bluetooth/mgmt.c:6636:8: warning: 'h192' may be used uninitialized in this function [-Wmaybe-uninitialized]
../drivers/gpio/gpio-omap.c:504:3: warning: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type [enabled by default]
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
-------------------------------------------------------------------------------
x86_64-defconfig : PASS, 0 errors, 2 warnings, 0 section mismatches
Warnings:
../arch/x86/kernel/irq.c:237:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
-------------------------------------------------------------------------------
arm-allmodconfig : FAIL, 67 errors, 27 warnings, 0 section mismatches
Errors:
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: initialization from incompatible pointer type [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_begin') [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: initialization from incompatible pointer type [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_flush') [-Werror]
../drivers/pci/host/pcie-xilinx.c:235:3: error: implicit declaration of function 'msi_desc_to_pci_sys_data' [-Werror=implicit-function-declaration]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 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=]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../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:1846:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/block/nvme-core.c:1888:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/gpio/gpio-omap.c:504:3: warning: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type [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/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/infiniband/hw/cxgb4/mem.c:147:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../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/pci/host/pcie-xilinx.c:235:3: warning: passing argument 1 of 'sys_to_pcie' makes pointer from integer without a cast [enabled by default]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: data definition has no type or storage class [enabled by default]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: parameter names (without types) in function declaration [enabled by default]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: data definition has no type or storage class [enabled by default]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: parameter names (without types) in function declaration [enabled by default]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: 'scpsys_drv_init' defined but not used [-Wunused-function]
../drivers/net/ethernet/mellanox/mlxsw/item.h:65:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat]
../drivers/net/ethernet/mellanox/mlxsw/item.h:65:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat]
../drivers/net/ethernet/mellanox/mlxsw/pci.c:1536:2: warning: right shift count >= width of type [enabled by default]
../drivers/net/ethernet/mellanox/mlxsw/pci.c:1548:2: warning: right shift count >= width of type [enabled by default]
../drivers/net/ethernet/mellanox/mlxsw/item.h:65:3: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat]
../drivers/scsi/advansys.c:7806:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]
-------------------------------------------------------------------------------
arm-allnoconfig : PASS, 0 errors, 3 warnings, 0 section mismatches
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
-------------------------------------------------------------------------------
x86_64-allnoconfig : PASS, 0 errors, 2 warnings, 0 section mismatches
Warnings:
../arch/x86/kernel/irq.c:237:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
-------------------------------------------------------------------------------
arm64-defconfig : PASS, 0 errors, 3 warnings, 0 section mismatches
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
-------------------------------------------------------------------------------
Passed with no errors, warnings or mismatches:
CPUFreq drivers today support a ->get(cpu) callback, which returns
current rate of a CPU. The problem with ->get() is that it takes a cpu
number as parameter and this unnecessarily makes things complex.
Firstly the core gets the cpu number by doing operation 'policy->cpu' on
the policy and then many drivers need to get the policy back and so do
cpufreq_cpu_get(cpu) on the passed cpu.
As cpufreq core works on policies, it would be better if we pass them
'policy' directly and drivers can use policy->cpu if that's all they
need.
Hence, this patch adds in another callback, ->get_rate() which does
exactly the same work as ->get(), just that we pass 'policy' as
parameter instead of 'cpu'.
The plan is to migrate all drivers to this new callback and remove
->get() after that.
Signed-off-by: Viresh Kumar <viresh.kumar(a)linaro.org>
---
Hi Rafael,
I hope you are fine with this stuff :), once you approve I will get
other patches to migrate existing drivers to this interface.
drivers/cpufreq/cpufreq.c | 50 ++++++++++++++++++++++++++++++++---------------
include/linux/cpufreq.h | 1 +
2 files changed, 35 insertions(+), 16 deletions(-)
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index b612411655f9..b66e169601e8 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -154,6 +154,20 @@ void disable_cpufreq(void)
}
static DEFINE_MUTEX(cpufreq_governor_mutex);
+/* Operations for ->get() and ->get_rate() operations */
+static inline bool driver_supports_get_rate(void)
+{
+ return cpufreq_driver->get || cpufreq_driver->get_rate;
+}
+
+static inline unsigned int policy_get_rate(struct cpufreq_policy *policy)
+{
+ if (cpufreq_driver->get)
+ return cpufreq_driver->get(policy->cpu);
+ else
+ return cpufreq_driver->get_rate(policy);
+}
+
bool have_governor_per_policy(void)
{
return !!(cpufreq_driver->flags & CPUFREQ_HAVE_GOVERNOR_PER_POLICY);
@@ -596,8 +610,9 @@ static ssize_t show_scaling_cur_freq(struct cpufreq_policy *policy, char *buf)
{
ssize_t ret;
- if (cpufreq_driver && cpufreq_driver->setpolicy && cpufreq_driver->get)
- ret = sprintf(buf, "%u\n", cpufreq_driver->get(policy->cpu));
+ if (cpufreq_driver && cpufreq_driver->setpolicy &&
+ driver_supports_get_rate())
+ ret = sprintf(buf, "%u\n", policy_get_rate(policy));
else
ret = sprintf(buf, "%u\n", policy->cur);
return ret;
@@ -1032,7 +1047,7 @@ static int cpufreq_add_dev_interface(struct cpufreq_policy *policy,
return ret;
drv_attr++;
}
- if (cpufreq_driver->get) {
+ if (driver_supports_get_rate()) {
ret = sysfs_create_file(&policy->kobj, &cpuinfo_cur_freq.attr);
if (ret)
return ret;
@@ -1313,10 +1328,10 @@ static int cpufreq_add_dev(struct device *dev, struct subsys_interface *sif)
write_unlock_irqrestore(&cpufreq_driver_lock, flags);
}
- if (cpufreq_driver->get && !cpufreq_driver->setpolicy) {
- policy->cur = cpufreq_driver->get(policy->cpu);
+ if (driver_supports_get_rate() && !cpufreq_driver->setpolicy) {
+ policy->cur = policy_get_rate(policy);
if (!policy->cur) {
- pr_err("%s: ->get() failed\n", __func__);
+ pr_err("%s: ->get_rate() failed\n", __func__);
goto err_get_freq;
}
}
@@ -1594,14 +1609,17 @@ unsigned int cpufreq_quick_get(unsigned int cpu)
struct cpufreq_policy *policy;
unsigned int ret_freq = 0;
- if (cpufreq_driver && cpufreq_driver->setpolicy && cpufreq_driver->get)
- return cpufreq_driver->get(cpu);
-
policy = cpufreq_cpu_get(cpu);
- if (policy) {
+ if (!policy)
+ return 0;
+
+ if (cpufreq_driver && cpufreq_driver->setpolicy &&
+ driver_supports_get_rate())
+ ret_freq = policy_get_rate(policy);
+ else
ret_freq = policy->cur;
- cpufreq_cpu_put(policy);
- }
+
+ cpufreq_cpu_put(policy);
return ret_freq;
}
@@ -1631,10 +1649,10 @@ static unsigned int __cpufreq_get(struct cpufreq_policy *policy)
{
unsigned int ret_freq = 0;
- if (!cpufreq_driver->get)
+ if (!driver_supports_get_rate())
return ret_freq;
- ret_freq = cpufreq_driver->get(policy->cpu);
+ ret_freq = policy_get_rate(policy);
/* Updating inactive policies is invalid, so avoid doing that. */
if (unlikely(policy_is_inactive(policy)))
@@ -2345,8 +2363,8 @@ int cpufreq_update_policy(unsigned int cpu)
* BIOS might change freq behind our back
* -> ask driver for current freq and notify governors about a change
*/
- if (cpufreq_driver->get && !cpufreq_driver->setpolicy) {
- new_policy.cur = cpufreq_driver->get(cpu);
+ if (driver_supports_get_rate() && !cpufreq_driver->setpolicy) {
+ new_policy.cur = policy_get_rate(policy);
if (WARN_ON(!new_policy.cur)) {
ret = -EIO;
goto unlock;
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index 29ad97c34fd5..a82049683016 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -263,6 +263,7 @@ struct cpufreq_driver {
/* should be defined, if possible */
unsigned int (*get)(unsigned int cpu);
+ unsigned int (*get_rate)(struct cpufreq_policy *policy);
/* optional */
int (*bios_limit)(int cpu, unsigned int *limit);
--
2.4.0
Tree/Branch: v3.12.45
Git describe: v3.12.45
Commit: 8b3f81787b Linux 3.12.45
Build Time: 64 min 43 sec
Passed: 8 / 8 (100.00 %)
Failed: 0 / 8 ( 0.00 %)
Errors: 0
Warnings: 73
Section Mismatches: 3
-------------------------------------------------------------------------------
defconfigs with issues (other than build errors):
31 warnings 0 mismatches : arm64-allmodconfig
2 warnings 0 mismatches : x86_64-defconfig
1 warnings 0 mismatches : arm-multi_v7_defconfig
46 warnings 3 mismatches : arm-allmodconfig
2 warnings 0 mismatches : arm64-defconfig
-------------------------------------------------------------------------------
Warnings Summary: 73
5 /home/broonie/build/linux-stable/net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
3 /home/broonie/build/linux-stable/drivers/scsi/3w-xxxx.c:1001:14: warning: mis-aligned access used for structure member [-fstrict-volatile-bitfields]
2 /home/broonie/build/linux-stable/include/linux/compiler-gcc4.h:14:34: warning: large integer implicitly truncated to unsigned type [-Woverflow]
2 /home/broonie/build/linux-stable/drivers/net/ethernet/smsc/smc91x.c:1899:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2 /home/broonie/build/linux-stable/Documentation/misc-devices/mei/mei-amt-version.c:103:5: warning: 'acmd.fd' is used uninitialized in this function [-Wuninitialized]
1 /home/broonie/build/linux-stable/net/sunrpc/xprtrdma/verbs.c:1774:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/include/linux/dynamic_debug.h:64:16: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'size_t' [-Wformat=]
1 /home/broonie/build/linux-stable/include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 6 has type 'size_t' [-Wformat=]
1 /home/broonie/build/linux-stable/include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' [-Wformat=]
1 /home/broonie/build/linux-stable/drivers/video/xen-fbfront.c:589:8: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat=]
1 /home/broonie/build/linux-stable/drivers/video/omap2/displays-new/panel-sony-acx565akm.c:608:25: warning: unused variable 'ddata' [-Wunused-variable]
1 /home/broonie/build/linux-stable/drivers/video/aty/radeon_pm.c:1718:13: warning: 'radeon_reinitialize_M10' defined but not used [-Wunused-function]
1 /home/broonie/build/linux-stable/drivers/usb/storage/realtek_cr.c:699:13: warning: 'fw5895_init' defined but not used [-Wunused-function]
1 /home/broonie/build/linux-stable/drivers/usb/storage/realtek_cr.c:629:12: warning: 'config_autodelink_before_power_down' defined but not used [-Wunused-function]
1 /home/broonie/build/linux-stable/drivers/tty/serial/efm32-uart.c:834:20: warning: 'efm32_uart_exit' defined but not used [-Wunused-function]
1 /home/broonie/build/linux-stable/drivers/staging/wlan-ng/prism2fw.c:795:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/staging/vt6655/iwctl.c:758:1: warning: the frame size of 1280 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/staging/vt6655/device_main.c:3257:1: warning: the frame size of 1856 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/staging/sm7xxfb/sm7xxfb.c:117:19: warning: 'sm7xx_vga_setup' defined but not used [-Wunused-function]
1 /home/broonie/build/linux-stable/drivers/staging/rts5139/rts51x.c:204:13: warning: 'rts51x_try_to_enter_ss' defined but not used [-Wunused-function]
1 /home/broonie/build/linux-stable/drivers/staging/dgnc/dgnc_tty.c:613:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/staging/dgap/dgap_tty.c:664:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/staging/dgap/dgap_fep5.c:173:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/staging/dgap/dgap_fep5.c:112:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/staging/dgap/dgap_driver.c:982:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/staging/bcm/CmHost.c:1440:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 /home/broonie/build/linux-stable/drivers/staging/bcm/CmHost.c:1426:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 /home/broonie/build/linux-stable/drivers/staging/bcm/CmHost.c:1387:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 /home/broonie/build/linux-stable/drivers/spi/spi-pl022.c:281:31: warning: large integer implicitly truncated to unsigned type [-Woverflow]
1 /home/broonie/build/linux-stable/drivers/spi/spi-gpio.c:252:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 /home/broonie/build/linux-stable/drivers/spi/spi-atmel.c:1460:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 /home/broonie/build/linux-stable/drivers/spi/spi-atmel.c:1335:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 /home/broonie/build/linux-stable/drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
1 /home/broonie/build/linux-stable/drivers/scsi/aic7xxx_old.c:8517:5: warning: case value '257' not in enumerated type 'ahc_chip' [-Wswitch]
1 /home/broonie/build/linux-stable/drivers/scsi/aic7xxx_old.c:8510:5: warning: case value '513' not in enumerated type 'ahc_chip' [-Wswitch]
1 /home/broonie/build/linux-stable/drivers/scsi/aic7xxx_old.c:7901:5: warning: case value '257' not in enumerated type 'ahc_chip' [-Wswitch]
1 /home/broonie/build/linux-stable/drivers/scsi/aic7xxx_old.c:7898:5: warning: case value '513' not in enumerated type 'ahc_chip' [-Wswitch]
1 /home/broonie/build/linux-stable/drivers/scsi/3w-xxxx.c:2116:29: warning: mis-aligned access used for structure member [-fstrict-volatile-bitfields]
1 /home/broonie/build/linux-stable/drivers/scsi/3w-xxxx.c:1004:14: warning: mis-aligned access used for structure member [-fstrict-volatile-bitfields]
1 /home/broonie/build/linux-stable/drivers/regulator/tps62360-regulator.c:363:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 /home/broonie/build/linux-stable/drivers/power/reset/xgene-reboot.c:80:17: warning: assignment from incompatible pointer type
1 /home/broonie/build/linux-stable/drivers/power/pm2301_charger.c:725:20: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result]
1 /home/broonie/build/linux-stable/drivers/power/ab8500_fg.c:2989:27: warning: 'i' may be used uninitialized in this function [-Wuninitialized]
1 /home/broonie/build/linux-stable/drivers/power/ab8500_charger.c:1559:20: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result]
1 /home/broonie/build/linux-stable/drivers/power/ab8500_charger.c:1390:20: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result]
1 /home/broonie/build/linux-stable/drivers/pinctrl/pinctrl-bcm2835.c:1060:17: warning: ignoring return value of 'gpiochip_remove', declared with attribute warn_unused_result [-Wunused-result]
1 /home/broonie/build/linux-stable/drivers/pinctrl/pinctrl-bcm2835.c:1043:18: warning: ignoring return value of 'gpiochip_remove', declared with attribute warn_unused_result [-Wunused-result]
1 /home/broonie/build/linux-stable/drivers/net/wireless/ti/wlcore/spi.c:317:1: warning: the frame size of 9728 bytes is larger than 2048 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/net/ethernet/dec/tulip/winbond-840.c:911:2: warning: #warning Processor architecture undefined [-Wcpp]
1 /home/broonie/build/linux-stable/drivers/net/ethernet/amd/nmclan_cs.c:625:3: warning: 'pcmcia_request_exclusive_irq' is deprecated (declared at /home/broonie/build/linux-stable/include/pcmcia/ds.h:213) [-Wdeprecated-declarations]
1 /home/broonie/build/linux-stable/drivers/mtd/nand/gpmi-nand/gpmi-nand.c:120:13: warning: 'set_geometry_by_ecc_info' defined but not used [-Wunused-function]
1 /home/broonie/build/linux-stable/drivers/mtd/chips/cfi_cmdset_0020.c:654:1: warning: the frame size of 1200 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/misc/lkdtm.c:293:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/mfd/tps65217.c:173:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 /home/broonie/build/linux-stable/drivers/mfd/arizona-core.c:509:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 /home/broonie/build/linux-stable/drivers/media/radio/radio-shark2.c:240:13: warning: 'shark_resume_leds' defined but not used [-Wunused-function]
1 /home/broonie/build/linux-stable/drivers/media/radio/radio-shark.c:274:13: warning: 'shark_resume_leds' defined but not used [-Wunused-function]
1 /home/broonie/build/linux-stable/drivers/isdn/hardware/mISDN/w6692.c:1181:2: warning: unsupported argument to '__builtin_return_address' [enabled by default]
1 /home/broonie/build/linux-stable/drivers/isdn/hardware/mISDN/mISDNipac.c:759:2: warning: unsupported argument to '__builtin_return_address' [enabled by default]
1 /home/broonie/build/linux-stable/drivers/input/misc/xen-kbdfront.c:258:8: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat=]
1 /home/broonie/build/linux-stable/drivers/input/joystick/analog.c:171:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp]
1 /home/broonie/build/linux-stable/drivers/infiniband/hw/cxgb4/mem.c:79:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 /home/broonie/build/linux-stable/drivers/iio/adc/exynos_adc.c:112:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 /home/broonie/build/linux-stable/drivers/gpu/drm/radeon/ni_dpm.c:3448:31: warning: unused variable 'eg_pi' [-Wunused-variable]
1 /home/broonie/build/linux-stable/drivers/gpu/drm/radeon/cypress_dpm.c:302:31: warning: unused variable 'eg_pi' [-Wunused-variable]
1 /home/broonie/build/linux-stable/drivers/gpio/gpio-mcp23s08.c:643:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 /home/broonie/build/linux-stable/drivers/dma/pl330.c:2317:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 /home/broonie/build/linux-stable/drivers/char/hw_random/via-rng.c:224:26: warning: 'via_rng_cpu_id' defined but not used [-Wunused-variable]
1 /home/broonie/build/linux-stable/drivers/block/mtip32xx/mtip32xx.c:2921:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/block/mtip32xx/mtip32xx.c:2898:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/drivers/block/mtip32xx/mtip32xx.c:2827:1: warning: the frame size of 1080 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/crypto/wp512.c:987:1: warning: the frame size of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 /home/broonie/build/linux-stable/arch/arm/mach-cns3xxx/pcie.c:350:1: warning: the frame size of 1064 bytes is larger than 1024 bytes [-Wframe-larger-than=]
Section Mismatch Summary: 3
1 WARNING: vmlinux.o(.data+0xdccec): Section mismatch in reference from the variable dbx500_cpuidle_plat_driver to the function .init.text:dbx500_cpuidle_probe()
1 WARNING: drivers/cpuidle/built-in.o(.data+0x938): Section mismatch in reference from the variable dbx500_cpuidle_plat_driver to the function .init.text:dbx500_cpuidle_probe()
1 WARNING: drivers/built-in.o(.data+0x340ac): Section mismatch in reference from the variable dbx500_cpuidle_plat_driver to the function .init.text:dbx500_cpuidle_probe()
===============================================================================
Detailed per-defconfig build reports below:
-------------------------------------------------------------------------------
arm64-allmodconfig : PASS, 0 errors, 31 warnings, 0 section mismatches
Warnings:
/home/broonie/build/linux-stable/include/linux/dynamic_debug.h:64:16: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'size_t' [-Wformat=]
/home/broonie/build/linux-stable/include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' [-Wformat=]
/home/broonie/build/linux-stable/include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 6 has type 'size_t' [-Wformat=]
/home/broonie/build/linux-stable/drivers/dma/pl330.c:2317:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/broonie/build/linux-stable/drivers/gpio/gpio-mcp23s08.c:643:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/broonie/build/linux-stable/drivers/iio/adc/exynos_adc.c:112:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/broonie/build/linux-stable/drivers/input/joystick/analog.c:171:2: warning: #warning Precise timer not defined for this architecture. [-Wcpp]
/home/broonie/build/linux-stable/drivers/input/misc/xen-kbdfront.c:258:8: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat=]
/home/broonie/build/linux-stable/net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
/home/broonie/build/linux-stable/drivers/media/radio/radio-shark.c:274:13: warning: 'shark_resume_leds' defined but not used [-Wunused-function]
/home/broonie/build/linux-stable/drivers/media/radio/radio-shark2.c:240:13: warning: 'shark_resume_leds' defined but not used [-Wunused-function]
/home/broonie/build/linux-stable/drivers/mfd/arizona-core.c:509:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/broonie/build/linux-stable/drivers/mfd/tps65217.c:173:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/broonie/build/linux-stable/drivers/power/reset/xgene-reboot.c:80:17: warning: assignment from incompatible pointer type
/home/broonie/build/linux-stable/drivers/net/ethernet/smsc/smc91x.c:1899:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/broonie/build/linux-stable/drivers/spi/spi-atmel.c:1335:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/broonie/build/linux-stable/drivers/spi/spi-atmel.c:1460:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/broonie/build/linux-stable/drivers/regulator/tps62360-regulator.c:363:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/broonie/build/linux-stable/drivers/spi/spi-gpio.c:252:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/broonie/build/linux-stable/drivers/spi/spi-pl022.c:281:31: warning: large integer implicitly truncated to unsigned type [-Woverflow]
/home/broonie/build/linux-stable/drivers/staging/bcm/CmHost.c:1387:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
/home/broonie/build/linux-stable/drivers/staging/bcm/CmHost.c:1426:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
/home/broonie/build/linux-stable/drivers/staging/bcm/CmHost.c:1440:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
/home/broonie/build/linux-stable/drivers/video/xen-fbfront.c:589:8: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'long long unsigned int' [-Wformat=]
/home/broonie/build/linux-stable/drivers/usb/storage/realtek_cr.c:629:12: warning: 'config_autodelink_before_power_down' defined but not used [-Wunused-function]
/home/broonie/build/linux-stable/drivers/usb/storage/realtek_cr.c:699:13: warning: 'fw5895_init' defined but not used [-Wunused-function]
/home/broonie/build/linux-stable/include/linux/compiler-gcc4.h:14:34: warning: large integer implicitly truncated to unsigned type [-Woverflow]
/home/broonie/build/linux-stable/include/linux/compiler-gcc4.h:14:34: warning: large integer implicitly truncated to unsigned type [-Woverflow]
/home/broonie/build/linux-stable/drivers/staging/rts5139/rts51x.c:204:13: warning: 'rts51x_try_to_enter_ss' defined but not used [-Wunused-function]
/home/broonie/build/linux-stable/drivers/net/wireless/ti/wlcore/spi.c:317:1: warning: the frame size of 9728 bytes is larger than 2048 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/Documentation/misc-devices/mei/mei-amt-version.c:103:5: warning: 'acmd.fd' is used uninitialized in this function [-Wuninitialized]
-------------------------------------------------------------------------------
x86_64-defconfig : PASS, 0 errors, 2 warnings, 0 section mismatches
Warnings:
/home/broonie/build/linux-stable/net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
/home/broonie/build/linux-stable/drivers/char/hw_random/via-rng.c:224:26: warning: 'via_rng_cpu_id' defined but not used [-Wunused-variable]
-------------------------------------------------------------------------------
arm-multi_v7_defconfig : PASS, 0 errors, 1 warnings, 0 section mismatches
Warnings:
/home/broonie/build/linux-stable/net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
-------------------------------------------------------------------------------
arm-allmodconfig : PASS, 0 errors, 46 warnings, 3 section mismatches
Warnings:
/home/broonie/build/linux-stable/arch/arm/mach-cns3xxx/pcie.c:350:1: warning: the frame size of 1064 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/crypto/wp512.c:987:1: warning: the frame size of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/block/mtip32xx/mtip32xx.c:2898:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/block/mtip32xx/mtip32xx.c:2921:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/block/mtip32xx/mtip32xx.c:2827:1: warning: the frame size of 1080 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
/home/broonie/build/linux-stable/drivers/gpu/drm/radeon/cypress_dpm.c:302:31: warning: unused variable 'eg_pi' [-Wunused-variable]
/home/broonie/build/linux-stable/drivers/gpu/drm/radeon/ni_dpm.c:3448:31: warning: unused variable 'eg_pi' [-Wunused-variable]
/home/broonie/build/linux-stable/net/sunrpc/xprtrdma/verbs.c:1774:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/infiniband/hw/cxgb4/mem.c:79:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
/home/broonie/build/linux-stable/drivers/isdn/hardware/mISDN/w6692.c:1181:2: warning: unsupported argument to '__builtin_return_address' [enabled by default]
/home/broonie/build/linux-stable/drivers/isdn/hardware/mISDN/mISDNipac.c:759:2: warning: unsupported argument to '__builtin_return_address' [enabled by default]
/home/broonie/build/linux-stable/drivers/mtd/chips/cfi_cmdset_0020.c:654:1: warning: the frame size of 1200 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/misc/lkdtm.c:293:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/mtd/nand/gpmi-nand/gpmi-nand.c:120:13: warning: 'set_geometry_by_ecc_info' defined but not used [-Wunused-function]
/home/broonie/build/linux-stable/drivers/pinctrl/pinctrl-bcm2835.c:1060:17: warning: ignoring return value of 'gpiochip_remove', declared with attribute warn_unused_result [-Wunused-result]
/home/broonie/build/linux-stable/drivers/pinctrl/pinctrl-bcm2835.c:1043:18: warning: ignoring return value of 'gpiochip_remove', declared with attribute warn_unused_result [-Wunused-result]
/home/broonie/build/linux-stable/drivers/power/ab8500_charger.c:1390:20: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result]
/home/broonie/build/linux-stable/drivers/power/ab8500_charger.c:1559:20: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result]
/home/broonie/build/linux-stable/drivers/power/ab8500_fg.c:2989:27: warning: 'i' may be used uninitialized in this function [-Wuninitialized]
/home/broonie/build/linux-stable/drivers/power/pm2301_charger.c:725:20: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result]
/home/broonie/build/linux-stable/drivers/net/ethernet/amd/nmclan_cs.c:625:3: warning: 'pcmcia_request_exclusive_irq' is deprecated (declared at /home/broonie/build/linux-stable/include/pcmcia/ds.h:213) [-Wdeprecated-declarations]
/home/broonie/build/linux-stable/drivers/tty/serial/efm32-uart.c:834:20: warning: 'efm32_uart_exit' defined but not used [-Wunused-function]
/home/broonie/build/linux-stable/drivers/video/aty/radeon_pm.c:1718:13: warning: 'radeon_reinitialize_M10' defined but not used [-Wunused-function]
/home/broonie/build/linux-stable/drivers/net/ethernet/dec/tulip/winbond-840.c:911:2: warning: #warning Processor architecture undefined [-Wcpp]
/home/broonie/build/linux-stable/drivers/staging/dgap/dgap_driver.c:982:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/staging/dgap/dgap_fep5.c:173:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/staging/dgap/dgap_fep5.c:112:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/staging/dgap/dgap_tty.c:664:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/staging/dgnc/dgnc_tty.c:613:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/video/omap2/displays-new/panel-sony-acx565akm.c:608:25: warning: unused variable 'ddata' [-Wunused-variable]
/home/broonie/build/linux-stable/drivers/scsi/aic7xxx_old.c:7901:5: warning: case value '257' not in enumerated type 'ahc_chip' [-Wswitch]
/home/broonie/build/linux-stable/drivers/scsi/aic7xxx_old.c:7898:5: warning: case value '513' not in enumerated type 'ahc_chip' [-Wswitch]
/home/broonie/build/linux-stable/drivers/scsi/aic7xxx_old.c:8517:5: warning: case value '257' not in enumerated type 'ahc_chip' [-Wswitch]
/home/broonie/build/linux-stable/drivers/scsi/aic7xxx_old.c:8510:5: warning: case value '513' not in enumerated type 'ahc_chip' [-Wswitch]
/home/broonie/build/linux-stable/drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
/home/broonie/build/linux-stable/drivers/scsi/3w-xxxx.c:1001:14: warning: mis-aligned access used for structure member [-fstrict-volatile-bitfields]
/home/broonie/build/linux-stable/drivers/scsi/3w-xxxx.c:1001:14: warning: mis-aligned access used for structure member [-fstrict-volatile-bitfields]
/home/broonie/build/linux-stable/drivers/scsi/3w-xxxx.c:1001:14: warning: mis-aligned access used for structure member [-fstrict-volatile-bitfields]
/home/broonie/build/linux-stable/drivers/scsi/3w-xxxx.c:1004:14: warning: mis-aligned access used for structure member [-fstrict-volatile-bitfields]
/home/broonie/build/linux-stable/drivers/scsi/3w-xxxx.c:2116:29: warning: mis-aligned access used for structure member [-fstrict-volatile-bitfields]
/home/broonie/build/linux-stable/drivers/staging/sm7xxfb/sm7xxfb.c:117:19: warning: 'sm7xx_vga_setup' defined but not used [-Wunused-function]
/home/broonie/build/linux-stable/drivers/staging/vt6655/device_main.c:3257:1: warning: the frame size of 1856 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/staging/wlan-ng/prism2fw.c:795:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/drivers/staging/vt6655/iwctl.c:758:1: warning: the frame size of 1280 bytes is larger than 1024 bytes [-Wframe-larger-than=]
/home/broonie/build/linux-stable/Documentation/misc-devices/mei/mei-amt-version.c:103:5: warning: 'acmd.fd' is used uninitialized in this function [-Wuninitialized]
Section Mismatches:
WARNING: drivers/cpuidle/built-in.o(.data+0x938): Section mismatch in reference from the variable dbx500_cpuidle_plat_driver to the function .init.text:dbx500_cpuidle_probe()
WARNING: drivers/built-in.o(.data+0x340ac): Section mismatch in reference from the variable dbx500_cpuidle_plat_driver to the function .init.text:dbx500_cpuidle_probe()
WARNING: vmlinux.o(.data+0xdccec): Section mismatch in reference from the variable dbx500_cpuidle_plat_driver to the function .init.text:dbx500_cpuidle_probe()
-------------------------------------------------------------------------------
arm64-defconfig : PASS, 0 errors, 2 warnings, 0 section mismatches
Warnings:
/home/broonie/build/linux-stable/net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
/home/broonie/build/linux-stable/drivers/net/ethernet/smsc/smc91x.c:1899:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
-------------------------------------------------------------------------------
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
Tree/Branch: next-20150730
Git describe: next-20150730
Commit: 09d19a8106 Add linux-next specific files for 20150730
Build Time: 70 min 9 sec
Passed: 7 / 9 ( 77.78 %)
Failed: 2 / 9 ( 22.22 %)
Errors: 13
Warnings: 52
Section Mismatches: 2
Failed defconfigs:
arm64-allmodconfig
arm-allmodconfig
Errors:
arm64-allmodconfig
../include/linux/platform_device.h:245:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
../include/linux/platform_device.h:250:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
arm-allmodconfig
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: initialization from incompatible pointer type [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_begin') [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: initialization from incompatible pointer type [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_flush') [-Werror]
../drivers/pci/host/pcie-xilinx.c:235:3: error: implicit declaration of function 'msi_desc_to_pci_sys_data' [-Werror=implicit-function-declaration]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
-------------------------------------------------------------------------------
defconfigs with issues (other than build errors):
3 warnings 0 mismatches : arm64-allnoconfig
115 warnings 1 mismatches : arm64-allmodconfig
5 warnings 0 mismatches : arm-multi_v5_defconfig
8 warnings 0 mismatches : arm-multi_v7_defconfig
2 warnings 0 mismatches : x86_64-defconfig
22 warnings 1 mismatches : arm-allmodconfig
3 warnings 0 mismatches : arm-allnoconfig
2 warnings 0 mismatches : x86_64-allnoconfig
3 warnings 0 mismatches : arm64-defconfig
-------------------------------------------------------------------------------
Errors summary: 13
15 ../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
15 ../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
15 ../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
15 ../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
1 ../include/linux/platform_device.h:250:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
1 ../include/linux/platform_device.h:245:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
1 ../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
1 ../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
1 ../drivers/pci/host/pcie-xilinx.c:235:3: error: implicit declaration of function 'msi_desc_to_pci_sys_data' [-Werror=implicit-function-declaration]
1 ../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: initialization from incompatible pointer type [-Werror]
1 ../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_flush') [-Werror]
1 ../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: initialization from incompatible pointer type [-Werror]
1 ../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_begin') [-Werror]
Warnings Summary: 52
17 ../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
17 ../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
14 ../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
14 ../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
10 <stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
10 ../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
10 ../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
9 ../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
6 <stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
4 ../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:32:0: warning: "TRUE" redefined
4 ../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:31:0: warning: "FALSE" redefined
3 warning: (MFD_CROS_EC) selects CHROME_PLATFORMS which has unmet direct dependencies (X86 || ARM)
2 ../include/linux/export.h:36:30: warning: parameter names (without types) in function declaration
2 ../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: parameter names (without types) in function declaration [enabled by default]
2 ../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: data definition has no type or storage class [enabled by default]
2 ../drivers/gpio/gpio-omap.c:504:3: warning: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type [enabled by default]
2 ../arch/x86/kernel/irq.c:237:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
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 ../net/bluetooth/mgmt.c:6636:8: warning: 'r192' may be used uninitialized in this function [-Wmaybe-uninitialized]
1 ../net/bluetooth/mgmt.c:6636:8: warning: 'h192' may be used uninitialized in this function [-Wmaybe-uninitialized]
1 ../kernel/sched/rt.c:68:13: warning: 'push_irq_work_func' declared 'static' but never defined [-Wunused-function]
1 ../ipc/kdbus/connection.c:2049:1: warning: the frame size of 1280 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../include/uapi/linux/byteorder/big_endian.h:32:26: warning: large integer implicitly truncated to unsigned type [-Woverflow]
1 ../include/linux/platform_device.h:250:1: warning: data definition has no type or storage class
1 ../include/linux/platform_device.h:245:1: warning: data definition has no type or storage class
1 ../include/linux/bitops.h:6:19: warning: large integer implicitly truncated to unsigned type [-Woverflow]
1 ../drivers/usb/renesas_usbhs/common.c:496:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/soc/mediatek/mtk-scpsys.c:487:30: warning: 'scpsys_drv_init' defined but not used [-Wunused-function]
1 ../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: 'scpsys_drv_init' defined but not used [-Wunused-function]
1 ../drivers/scsi/advansys.c:7806:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]
1 ../drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c:766:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c:675:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/pci/host/pcie-xilinx.c:235:3: warning: passing argument 1 of 'sys_to_pcie' makes pointer from integer without a cast [enabled by default]
1 ../drivers/ntb/ntb_transport.c:778:3: warning: right shift count >= width of type [enabled by default]
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/mmc/host/sh_mmcif.c:418:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/mmc/host/sh_mmcif.c:417:4: 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/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:1888:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/block/nvme-core.c:1846:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-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 ../drivers/atm/iphase.h:127:0: warning: "isprint" 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 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
Section Mismatch Summary: 2
1 WARNING: drivers/staging/fsl-mc/bus/mc-bus-driver.o(.init.text+0x18c): Section mismatch in reference from the function init_module() to the function .exit.text:dprc_driver_exit()
1 WARNING: arch/arm/mach-zx/built-in.o(.data+0x2c): Section mismatch in reference from the variable zx296702_pd_driver to the (unknown reference) .init.rodata:(unknown)
===============================================================================
Detailed per-defconfig build reports below:
-------------------------------------------------------------------------------
arm64-allnoconfig : PASS, 0 errors, 3 warnings, 0 section mismatches
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../kernel/sched/rt.c:68:13: warning: 'push_irq_work_func' declared 'static' but never defined [-Wunused-function]
-------------------------------------------------------------------------------
arm64-allmodconfig : FAIL, 2 errors, 115 warnings, 1 section mismatches
Errors:
../include/linux/platform_device.h:245:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
../include/linux/platform_device.h:250:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
Warnings:
warning: (MFD_CROS_EC) selects CHROME_PLATFORMS which has unmet direct dependencies (X86 || ARM)
warning: (MFD_CROS_EC) selects CHROME_PLATFORMS which has unmet direct dependencies (X86 || ARM)
warning: (MFD_CROS_EC) selects CHROME_PLATFORMS which has unmet direct dependencies (X86 || ARM)
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../drivers/atm/iphase.h:127:0: warning: "isprint" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../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
../sound/pci/echoaudio/echoaudio.h:156:0: warning: "TRUE" redefined
../sound/pci/echoaudio/echoaudio.h:157:0: warning: "FALSE" redefined
../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/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined
../drivers/isdn/mISDN/dsp_ecdis.h:44:0: warning: "TRUE" redefined
../drivers/mmc/host/sh_mmcif.c:417:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/mmc/host/sh_mmcif.c:418:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c:675:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c:766:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-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]
../include/linux/platform_device.h:245:1: warning: data definition has no type or storage class
../include/linux/export.h:36:30: warning: parameter names (without types) in function declaration
../include/linux/platform_device.h:250:1: warning: data definition has no type or storage class
../include/linux/export.h:36:30: warning: parameter names (without types) in function declaration
../drivers/soc/mediatek/mtk-scpsys.c:487:30: warning: 'scpsys_drv_init' defined but not used [-Wunused-function]
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:31:0: warning: "FALSE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:32:0: warning: "TRUE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:31:0: warning: "FALSE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:32:0: warning: "TRUE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:31:0: warning: "FALSE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:32:0: warning: "TRUE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:31:0: warning: "FALSE" redefined
../drivers/staging/ft1000/ft1000-usb/ft1000_usb.h:32:0: warning: "TRUE" redefined
../include/linux/bitops.h:6:19: warning: large integer implicitly truncated to unsigned type [-Woverflow]
../include/uapi/linux/byteorder/big_endian.h:32:26: warning: large integer implicitly truncated to unsigned type [-Woverflow]
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/net/fddi/skfp/h/targetos.h:62:0: warning: "TRUE" redefined
../drivers/net/fddi/skfp/h/targetos.h:63:0: warning: "FALSE" redefined
../drivers/usb/renesas_usbhs/common.c:496:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Section Mismatches:
WARNING: drivers/staging/fsl-mc/bus/mc-bus-driver.o(.init.text+0x18c): Section mismatch in reference from the function init_module() to the function .exit.text:dprc_driver_exit()
-------------------------------------------------------------------------------
arm-multi_v5_defconfig : PASS, 0 errors, 5 warnings, 0 section mismatches
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm-multi_v7_defconfig : PASS, 0 errors, 8 warnings, 0 section mismatches
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../net/bluetooth/mgmt.c:6636:8: warning: 'r192' may be used uninitialized in this function [-Wmaybe-uninitialized]
../net/bluetooth/mgmt.c:6636:8: warning: 'h192' may be used uninitialized in this function [-Wmaybe-uninitialized]
../drivers/gpio/gpio-omap.c:504:3: warning: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type [enabled by default]
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
-------------------------------------------------------------------------------
x86_64-defconfig : PASS, 0 errors, 2 warnings, 0 section mismatches
Warnings:
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../arch/x86/kernel/irq.c:237:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
-------------------------------------------------------------------------------
arm-allmodconfig : FAIL, 67 errors, 22 warnings, 1 section mismatches
Errors:
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:12:3: error: unknown type name 'u32'
../arch/arm/include/asm/spinlock_types.h:15:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:16:4: error: unknown type name 'u16'
../arch/arm/include/asm/spinlock_types.h:28:2: error: unknown type name 'u32'
../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: initialization from incompatible pointer type [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:470:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_begin') [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: initialization from incompatible pointer type [-Werror]
../drivers/gpu/drm/omapdrm/omap_crtc.c:471:2: error: (near initialization for 'omap_crtc_helper_funcs.atomic_flush') [-Werror]
../drivers/pci/host/pcie-xilinx.c:235:3: error: implicit declaration of function 'msi_desc_to_pci_sys_data' [-Werror=implicit-function-declaration]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 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=]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../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:1846:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/block/nvme-core.c:1888:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/gpio/gpio-omap.c:504:3: warning: passing argument 1 of 'spin_unlock_irqrestore' from incompatible pointer type [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/pci/host/pcie-xilinx.c:235:3: warning: passing argument 1 of 'sys_to_pcie' makes pointer from integer without a cast [enabled by default]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: data definition has no type or storage class [enabled by default]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: parameter names (without types) in function declaration [enabled by default]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: data definition has no type or storage class [enabled by default]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: parameter names (without types) in function declaration [enabled by default]
../drivers/soc/mediatek/mtk-scpsys.c:487:1: warning: 'scpsys_drv_init' defined but not used [-Wunused-function]
../drivers/scsi/advansys.c:7806:2: warning: large integer implicitly truncated to unsigned type [-Woverflow]
Section Mismatches:
WARNING: arch/arm/mach-zx/built-in.o(.data+0x2c): Section mismatch in reference from the variable zx296702_pd_driver to the (unknown reference) .init.rodata:(unknown)
-------------------------------------------------------------------------------
arm-allnoconfig : PASS, 0 errors, 3 warnings, 0 section mismatches
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall mlock2 not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
-------------------------------------------------------------------------------
x86_64-allnoconfig : PASS, 0 errors, 2 warnings, 0 section mismatches
Warnings:
../arch/x86/kernel/irq.c:237:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
-------------------------------------------------------------------------------
arm64-defconfig : PASS, 0 errors, 3 warnings, 0 section mismatches
Warnings:
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
../kernel/notifier.c:547:2: warning: 'deprecate_rcu_lockdep_assert' is deprecated (declared at ../include/linux/rcupdate.h:540) [-Wdeprecated-declarations]
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
-------------------------------------------------------------------------------
Passed with no errors, warnings or mismatches:
Hi Guys,
This adds code to support operating-points-v2 bindings. Not everything
is supported yet, but most of the basic stuff is.
Tested with: Exynos 5250, dual cortex A15 board. With both old and new
bindings.
Bindings are already frozen:
http://marc.info/?i=cover.1433434659.git.viresh.kumar%40linaro.org
Pushed here as well for reference:
ssh://git@git.linaro.org/people/viresh.kumar/linux.git opp/v2
Viresh Kumar (10):
opp: Relocate few routines
OPP: Create _remove_device_opp() for freeing dev_opp
OPP: Allocate dev_opp from _add_device_opp()
OPP: Break _opp_add_dynamic() into smaller functions
opp: Add support to parse "operating-points-v2" bindings
OPP: Add clock-latency-ns support
opp: Add OPP sharing information to OPP library
OPP: Add support for opp-suspend
opp: Add helpers for initializing CPU OPPs
cpufreq-dt: Add support for operating-points-v2 bindings
drivers/base/power/opp.c | 1063 ++++++++++++++++++++++++++++++++----------
drivers/cpufreq/cpufreq-dt.c | 58 ++-
include/linux/pm_opp.h | 29 ++
3 files changed, 902 insertions(+), 248 deletions(-)
--
2.4.0