This is a note to let you know that I've just added the patch titled USB: fix build error with CONFIG_PM_RUNTIME disabled to the 3.16-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: usb-fix-build-error-with-config_pm_runtime-disabled.patch and it can be found in the queue-3.16 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From a9ef803d740bfadf5e505fbc57efa57692e27025 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Date: Wed, 27 Aug 2014 16:55:29 -0700 Subject: USB: fix build error with CONFIG_PM_RUNTIME disabled From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> commit a9ef803d740bfadf5e505fbc57efa57692e27025 upstream. commit bdd405d2a528 ("usb: hub: Prevent hub autosuspend if usbcore.autosuspend is -1") causes a build error if CONFIG_PM_RUNTIME is disabled. Fix that by doing a simple #ifdef guard around it. Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx> Cc: Roger Quadros <rogerq@xxxxxx> Cc: Michael Welling <mwelling@xxxxxxxxxxx> Cc: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/usb/core/hub.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -1732,8 +1732,10 @@ static int hub_probe(struct usb_interfac * - If user has indicated to prevent autosuspend by passing * usbcore.autosuspend = -1 then keep autosuspend disabled. */ +#ifdef CONFIG_PM_RUNTIME if (hdev->dev.power.autosuspend_delay >= 0) pm_runtime_set_autosuspend_delay(&hdev->dev, 0); +#endif /* * Hubs have proper suspend/resume support, except for root hubs Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are queue-3.16/btrfs-fix-task-hang-under-heavy-compressed-write.patch queue-3.16/hwmon-sis5595-prevent-overflow-problem-when-writing-large-limits.patch queue-3.16/btrfs-fix-memory-corruption-by-ulist_add_merge-on-32bit-arch.patch queue-3.16/mei-fix-return-value-on-disconnect-timeout.patch queue-3.16/alsa-hda-realtek-avoid-setting-wrong-coef-on-alc269-co.patch queue-3.16/crypto-ux500-make-interrupt-mode-plausible.patch queue-3.16/kvm-nvmx-fix-acknowledge-interrupt-on-exit-when-apicv-is-in-use.patch queue-3.16/usb-fix-build-error-with-config_pm_runtime-disabled.patch queue-3.16/tpm-add-missing-tpm_do_selftest-to-st33-i2c-driver.patch queue-3.16/mei-nfc-fix-memory-leak-in-error-path.patch queue-3.16/powerpc-eeh-wrong-place-to-call-pci_get_slot.patch queue-3.16/arm64-don-t-call-break-hooks-for-brk-exceptions-from-el0.patch queue-3.16/mmc-mmci-move-all-cmd-irq-handling-to-mmci_cmd_irq.patch queue-3.16/kvm-s390-mm-fix-page-table-locking-vs.-split-pmd-lock.patch queue-3.16/ext4-move-i_size-i_disksize-update-routines-to-helper-function.patch queue-3.16/usb-ohci-don-t-lose-track-of-eds-when-a-controller-dies.patch queue-3.16/x86-xen-use-vmap-to-map-grant-table-pages-in-pvh-guests.patch queue-3.16/usb-ehci-using-windex-1-for-hub-port.patch queue-3.16/xhci-blacklist-using-streams-on-the-etron-ej168-controller.patch queue-3.16/btrfs-fix-filemap_flush-call-in-btrfs_file_release.patch queue-3.16/hpsa-fix-bad-enomem-return-value-in-hpsa_big_passthru_ioctl.patch queue-3.16/arm-dts-am4372-correct-mailbox-node-data.patch queue-3.16/usbcore-fix-wrong-device-in-an-error-message-in-hub_port_connect.patch queue-3.16/hid-fix-a-couple-of-off-by-ones.patch queue-3.16/drm-radeon-add-additional-si-pci-ids.patch queue-3.16/usb-serial-ftdi_sio-annotate-the-current-xsens-pid-assignments.patch queue-3.16/x86_64-vsyscall-fix-warn_bad_vsyscall-log-output.patch queue-3.16/hwmon-ads1015-fix-off-by-one-for-valid-channel-index-checking.patch queue-3.16/pci-pciehp-clear-data-link-layer-state-changed-during-init.patch queue-3.16/nfsv4-fix-problems-with-close-in-the-presence-of-a-delegation.patch queue-3.16/usb-ftdi_sio-add-basic-micro-atom-nano-usb2serial-pid.patch queue-3.16/serial-core-preserve-termios-c_cflag-for-console-resume.patch queue-3.16/acpi-pci-fix-sysfs-acpi_index-and-label-errors.patch queue-3.16/kvm-iommu-fix-the-third-parameter-of-kvm_iommu_put_pages-cve-2014-3601.patch queue-3.16/alsa-usb-audio-fix-boss-me-25-midi-regression.patch queue-3.16/alsa-hda-restore-the-gpio-led-after-resume.patch queue-3.16/btrfs-fix-crash-on-endio-of-reading-corrupted-block.patch queue-3.16/usb-ehci-pci-usb-host-controller-support-for-intel-quark-x1000.patch queue-3.16/staging-et131x-fix-errors-caused-by-phydev-addr-accesses-before-initialisation.patch queue-3.16/nfsd-decrease-nfsd_users-in-nfsd_startup_generic-fail.patch queue-3.16/alsa-hda-fix-an-external-mic-jack-problem-on-a-hp-machine.patch queue-3.16/xhci-treat-not-finding-the-event_seg-on-comp_stop-the-same-as-comp_stop_inval.patch queue-3.16/hid-logitech-fix-bounds-checking-on-led-report-size.patch queue-3.16/pci-keep-original-resource-if-we-fail-to-expand-it.patch queue-3.16/nfs-fix-proc-fs-nfsfs-servers-and-proc-fs-nfsfs-volumes.patch queue-3.16/hpsa-fix-non-x86-builds.patch queue-3.16/ext4-fix-punch-hole-on-files-with-indirect-mapping.patch queue-3.16/nfs3_list_one_acl-check-get_acl-result-with-is_err_or_null.patch queue-3.16/ext4-update-i_disksize-coherently-with-block-allocation-on-error-path.patch queue-3.16/ext4-fix-ext4_discard_allocated_blocks-if-we-can-t-allocate-the-pa-struct.patch queue-3.16/ext4-fix-same-dir-rename-when-inline-data-directory-overflows.patch queue-3.16/hwmon-lm78-fix-overflow-problems-seen-when-writing-large-temperature-limits.patch queue-3.16/mei-reset-client-state-on-queued-connect-request.patch queue-3.16/nfsv4-don-t-clear-the-open-state-when-we-just-did-an-open_downgrade.patch queue-3.16/alsa-virtuoso-add-xonar-essence-stx-ii-support.patch queue-3.16/mmc-mmci-remove-redundant-check-of-status-for-data-irq.patch queue-3.16/btrfs-fix-csum-tree-corruption-duplicate-and-outdated-checksums.patch queue-3.16/kvm-ppc-book3s-fix-lpcr-one_reg-interface.patch queue-3.16/mips-math-emu-fix-instruction-decoding.patch queue-3.16/arm-omap3-fix-choice-of-omap3_restore_es-function-in-omap34xx-rev3.1.2-case.patch queue-3.16/btrfs-read-lock-extent-buffer-while-walking-backrefs.patch queue-3.16/uas-limit-qdepth-to-32-when-connected-over-usb-2.patch queue-3.16/hwmon-gpio-fan-prevent-overflow-problem-when-writing-large-limits.patch queue-3.16/ext4-fix-bug_on-in-mb_free_blocks.patch queue-3.16/arm-8097-1-unistd.h-relocate-comments-back-to-place.patch queue-3.16/sched-fix-sched_setparam-policy-1-logic.patch queue-3.16/hid-logitech-perform-bounds-checking-on-device_id-early-enough.patch queue-3.16/kvm-x86-always-exit-on-eois-for-interrupts-listed-in-the-ioapic-redir-table.patch queue-3.16/kvm-x86-inter-privilege-level-ret-emulation-is-not-implemeneted.patch queue-3.16/alsa-hda-add-mute-led-pin-quirk-for-hp-15-touchsmart.patch queue-3.16/usb-devio-fix-issue-with-log-flooding.patch queue-3.16/powerpc-powernv-update-dev-dma_mask-in-pci_set_dma_mask-path.patch queue-3.16/hwmon-amc6821-fix-possible-race-condition-bug.patch queue-3.16/nfs-reject-changes-to-resvport-and-sharecache-during-remount.patch queue-3.16/mei-start-disconnect-request-timer-consistently.patch queue-3.16/btrfs-fix-compressed-write-corruption-on-enospc.patch queue-3.16/alsa-hda-ca0132-don-t-try-loading-firmware-at-resume-when-already-failed.patch queue-3.16/revert-kvm-x86-increase-the-number-of-fixed-mtrr-regs-to-10.patch queue-3.16/pci-configure-aspm-when-enabling-device.patch queue-3.16/debugfs-fix-corrupted-loop-in-debugfs_remove_recursive.patch queue-3.16/xhci-rework-cycle-bit-checking-for-new-dequeue-pointers.patch queue-3.16/usb-xhci-amd-chipset-also-needs-short-tx-quirk.patch queue-3.16/hwmon-ads1015-fix-out-of-bounds-array-access.patch queue-3.16/drm-omapdrm-fix-compiler-errors.patch queue-3.16/jbd2-fix-descriptor-block-size-handling-errors-with-journal_csum.patch queue-3.16/usb-hub-prevent-hub-autosuspend-if-usbcore.autosuspend-is-1.patch queue-3.16/hwmon-dme1737-prevent-overflow-problem-when-writing-large-limits.patch queue-3.16/usb-serial-ftdi_sio-add-support-for-new-xsens-devices.patch queue-3.16/mei-don-t-schedule-suspend-in-pm-idle.patch queue-3.16/btrfs-disable-strict-file-flushes-for-renames-and-truncates.patch queue-3.16/ext4-propagate-errors-up-to-ext4_find_entry-s-callers.patch queue-3.16/usb-whiteheat-added-bounds-checking-for-bulk-command-response.patch queue-3.16/arm64-fix-barriers-used-for-page-table-modifications.patch queue-3.16/efi-arm64-store-runtime-services-revision.patch queue-3.16/arm-omap2-hwmod-rearm-wake-up-interrupts-for-dt-when-musb-is-idled.patch queue-3.16/drivers-i2c-busses-use-correct-type-for-dma_map-unmap.patch queue-3.16/ext4-fix-transaction-issues-for-ext4_fallocate-and-ext_zero_range.patch queue-3.16/vm_is_stack-use-for_each_thread-rather-then-buggy-while_each_thread.patch queue-3.16/powerpc-pci-reorder-pci-bus-bridge-unregistration-during-phb-removal.patch queue-3.16/i2c-rk3x-fix-interrupt-handling-issue.patch queue-3.16/xhci-disable-streams-on-via-xhci-with-device-id-0x3432.patch queue-3.16/staging-r8188eu-add-new-usb-id.patch queue-3.16/usbcore-don-t-log-on-consecutive-debounce-failures-of-the-same-port.patch queue-3.16/drm-radeon-add-new-kv-pci-id.patch queue-3.16/staging-rtl8188eu-add-0df6-0076-sitecom-europe-b.v.patch queue-3.16/stable_kernel_rules-add-pointer-to-netdev-faq-for-network-patches.patch queue-3.16/x86-mm-fix-pte_special-versus-pte_numa.patch queue-3.16/alsa-usb-audio-adjust-gamecom-780-volume-level.patch queue-3.16/jbd2-fix-infinite-loop-when-recovering-corrupt-journal-blocks.patch queue-3.16/staging-lustre-remove-circular-dependency-on-header.patch queue-3.16/nfsv3-fix-another-acl-regression.patch queue-3.16/drm-radeon-add-new-bonaire-pci-ids.patch queue-3.16/usb-ohci-fix-bugs-in-debug-routines.patch queue-3.16/svcrdma-select-nfsv4.1-backchannel-transport-based-on-forward-channel.patch queue-3.16/hwmon-lm92-prevent-overflow-problem-when-writing-large-limits.patch queue-3.16/usb-fix-persist-resume-of-some-ss-usb-devices.patch queue-3.16/x86-efi-enforce-config_relocatable-for-efi-boot-stub.patch queue-3.16/mei-reset-client-connection-state-on-timeout.patch queue-3.16/hwmon-lm85-fix-various-errors-on-attribute-writes.patch queue-3.16/xen-events-fifo-ensure-all-bitops-are-properly-aligned-even-on-x86.patch queue-3.16/x86-mce-add-raw_lock-conversion-again.patch queue-3.16/usb-ftdi_sio-added-pid-for-new-ekey-device.patch queue-3.16/ext4-fix-incorect-journal-credits-reservation-in-ext4_zero_range.patch queue-3.16/isofs-fix-unbounded-recursion-when-processing-relocated-directories.patch queue-3.16/x86-xen-resume-timer-irqs-early.patch queue-3.16/x86-don-t-exclude-low-bios-area-when-allocating-address-space-for-non-pci-cards.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html