Patch "staging: unisys: fix build warning in periodic_work" has been added to the 3.18-stable tree

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

 



This is a note to let you know that I've just added the patch titled

    staging: unisys: fix build warning in periodic_work

to the 3.18-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:
     staging-unisys-fix-build-warning-in-periodic_work.patch
and it can be found in the queue-3.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From foo@baz Thu May  4 15:57:02 PDT 2017
Date: Thu, 04 May 2017 15:57:02 -0700
To: Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>
From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Subject: staging: unisys: fix build warning in periodic_work

This code is long gone in mainline, so the build warning about trying to compare a bool to a value less than 0 isn't there.  But fix it in 3.18 to get the build warning list down to a small number.

Cc: Arnd Bergmann <arnd@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
 drivers/staging/unisys/visorutil/periodic_work.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- a/drivers/staging/unisys/visorutil/periodic_work.c
+++ b/drivers/staging/unisys/visorutil/periodic_work.c
@@ -98,8 +98,8 @@ BOOL visor_periodic_work_nextperiod(stru
 		pw->want_to_stop = FALSE;
 		rc = TRUE;  /* yes, TRUE; see visor_periodic_work_stop() */
 		goto unlock;
-	} else if (queue_delayed_work(pw->workqueue, &pw->work,
-				      pw->jiffy_interval) < 0) {
+	} else if (!queue_delayed_work(pw->workqueue, &pw->work,
+				       pw->jiffy_interval)) {
 		ERRDEV(pw->devnam, "queue_delayed_work failed!");
 		pw->is_scheduled = FALSE;
 		rc = FALSE;
@@ -134,8 +134,8 @@ BOOL visor_periodic_work_start(struct pe
 		goto unlock;
 	}
 	INIT_DELAYED_WORK(&pw->work, &periodic_work_func);
-	if (queue_delayed_work(pw->workqueue, &pw->work,
-			       pw->jiffy_interval) < 0) {
+	if (!queue_delayed_work(pw->workqueue, &pw->work,
+				pw->jiffy_interval)) {
 		ERRDEV(pw->devnam, "%s queue_delayed_work failed!", __func__);
 		rc = FALSE;
 		goto unlock;


Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are

queue-3.18/ib-iser-fix-sparse-warnings.patch
queue-3.18/cred-userns-define-current_user_ns-as-a-function.patch
queue-3.18/mips-kgdb-use-kernel-context-for-sleeping-threads.patch
queue-3.18/l2tp-fix-racy-sock_zapped-flag-check-in-l2tp_ip-6-_bind.patch
queue-3.18/mips-elf2ecoff-ignore-pt_mips_abiflags-program-headers.patch
queue-3.18/l2tp-purge-socket-queues-in-the-.destruct-callback.patch
queue-3.18/nfsd-check-for-oversized-nfsv2-v3-arguments.patch
queue-3.18/pci-xilinx-fix-harmless-format-string-warning.patch
queue-3.18/arm64-build-vdso-without-libgcov.patch
queue-3.18/handle-mismatched-open-calls.patch
queue-3.18/sparc64-kern_addr_valid-regression.patch
queue-3.18/arm64-provide-a-namespace-to-ncaps.patch
queue-3.18/alsa-ppc-awacs-shut-up-maybe-uninitialized-warning.patch
queue-3.18/sparc64-fix-kernel-panic-due-to-erroneous-ifdef-surrounding-pmd_write.patch
queue-3.18/mips-jz4740-fix-build-error-in-irq.h.patch
queue-3.18/net-tg3-avoid-uninitialized-variable-warning.patch
queue-3.18/sctp-listen-on-the-sock-only-when-it-s-state-is-listening-or-closed.patch
queue-3.18/ftrace-x86-fix-triple-fault-with-graph-tracing-and-suspend-to-ram.patch
queue-3.18/tty-isicom-fix-big-endian-compile-warning.patch
queue-3.18/mtd-avoid-stack-overflow-in-mtd-cfi-code.patch
queue-3.18/ib-qib-rename-bits_per_page-to-rvt_bits_per_page.patch
queue-3.18/posix_acl-clear-sgid-bit-when-setting-file-permissions.patch
queue-3.18/ips-remove-pointless-warning.patch
queue-3.18/powerpc-ptrace-fix-out-of-bounds-array-access-warning.patch
queue-3.18/usb-gadget-f_midi-fixed-a-bug-when-buflen-was-smaller-than-wmaxpacketsize.patch
queue-3.18/input-i8042-add-clevo-p650rs-to-the-i8042-reset-list.patch
queue-3.18/xen-x86-don-t-lose-event-interrupts.patch
queue-3.18/alsa-seq-don-t-break-snd_use_lock_sync-loop-by-timeout.patch
queue-3.18/timerfd-protect-the-might-cancel-mechanism-proper.patch
queue-3.18/mm-avoid-setting-up-anonymous-pages-into-file-mapping.patch
queue-3.18/net-phy-handle-state-correctly-in-phy_stop_machine.patch
queue-3.18/staging-imx-drm-fix-indentation-warning.patch
queue-3.18/mlx5-avoid-build-warnings-on-32-bit.patch
queue-3.18/f2fs-do-more-integrity-verification-for-superblock.patch
queue-3.18/mm-cma-silence-warnings-due-to-max-usage.patch
queue-3.18/net-packet-fix-overflow-in-check-for-tp_frame_nr.patch
queue-3.18/misdn-avoid-arch-specific-__builtin_return_address-call.patch
queue-3.18/staging-bcm-add-32-bit-host-dependency.patch
queue-3.18/net-packet-fix-overflow-in-check-for-tp_reserve.patch
queue-3.18/netpoll-check-for-skb-queue_mapping.patch
queue-3.18/net-neigh-guard-against-null-solicit-method.patch
queue-3.18/staging-unisys-fix-build-warning-in-periodic_work.patch
queue-3.18/perf-tighten-and-fix-the-grouping-condition.patch
queue-3.18/p9_client_readdir-fix.patch
queue-3.18/rds-fix-the-atomicity-for-congestion-map-update.patch
queue-3.18/staging-vt6655-fix-overly-large-stack-usage.patch
queue-3.18/mips-fix-crash-registers-on-non-crashing-cpus.patch
queue-3.18/alsa-pcm-call-kill_fasync-in-stream-lock.patch
queue-3.18/drbd-avoid-redefinition-of-bits_per_page.patch
queue-3.18/xc2028-unlock-on-error-in-xc2028_set_config.patch
queue-3.18/infiniband-mlx5-avoid-a-compile-time-warning.patch
queue-3.18/ip6mr-fix-notification-device-destruction.patch
queue-3.18/arm-cns3xxx-shut-up-frame-size-warning.patch
queue-3.18/ext4-check-if-in-inode-xattr-is-corrupted-in-ext4_expand_extra_isize_ea.patch
queue-3.18/regulator-core-fix-regualtor_ena_gpio_free-not-to-access-pin-after-freeing.patch
queue-3.18/ib-ehca-fix-maybe-uninitialized-warnings.patch
queue-3.18/net-ipv4-fix-multipath-rtm_getroute-behavior-when-iif-is-given.patch
queue-3.18/md-raid1-fix-a-dead-loop-when-read-from-a-writemostly-disk.patch
queue-3.18/net-avoid-signed-overflows-for-so_-snd-rcv-bufforce.patch
queue-3.18/mips-elf2ecoff-fix-warning-due-to-dead-code.patch



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]