All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/38] Fixes related to incorrect usage of unsigned types
@ 2015-09-21 13:33 ` Andrzej Hajda
  0 siblings, 0 replies; 130+ messages in thread
From: Andrzej Hajda @ 2015-09-21 13:33 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-mips, linux-sh, Will Deacon, dri-devel, linux-clk,
	Marek Szyprowski, Jianwei Wang, Pravin Shelar, linux-cachefs,
	Alan Stern, Jiri Slaby, Arend van Spriel, Oleg Drokin,
	Matt Mackall, Thomas Gleixner, linux-omap, Karsten Keil,
	Greg Kroah-Hartman, linux-usb, linux-wireless, Ralf Baechle,
	linux-crypto, Alex Deucher, Andrew Morton, Ivan Mikhaylov, Mark

Hi,

This is set of independent patches. The only connection between
them is that they try to address problems spotted by proposed
coccinelle semantic patch unsigned_lesser_than_zero.cocci[1].

Semantic patch finds comparisons of types:
    unsigned < 0
    unsigned >= 0
The former is always false, the latter is always true.
Such comparisons are useless, so theoretically they could be
safely removed, but their presence quite often indicates bugs.

This patchset contains mainly real bug fixes(patches 01-25),
usually type fixes.

Patches 26-37 removes unnecessary checks. Semantic patch found
much more such places (more than 80), but since every case needs
some analysis I have decided to leave them for antoher patchset.

The last patch should be probably replaced with something better,
I guess it should be treated rather as bug report.

The patches are based on linux-next (20150918).

Patches were only compile tested, so please look at them carefully.

I have sent all patches to linux-kernel mailing list. Individual
patches + cover letter went also to apropriate addresses,
according to get_maintainers.pl script.

One more thing. To fullfill different maintaner/subsystem requirements
I have decided to prefix patch subjects with prefixes present in
last 10 commits for affected files. I am not sure if this is the
best solution, if there are any better solutions please let me know :)

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Regards
Andrzej


Andrzej Hajda (38):
  arm-cci: fix handling cpumask_any_but return value
  bus: arm-ccn: fix handling cpumask_any_but return value
  drm/i915: fix handling gen8_emit_flush_coherentl3_wa result
  IB/ehca: fix handling idr_alloc result
  staging: lustre: fix handling lustre_posix_acl_xattr_filter result
  tty: serial: lpc32xx_hs: fix handling platform_get_irq result
  usb: host: ehci-msm: fix handling platform_get_irq result
  openvswitch: fix handling result of ipv6_skip_exthdr
  selftests/timers: fix write return value handlng
  hwrng: fix handling platform_get_irq
  HSI: omap_ssi: fix handling ida_simple_get result
  HSI: omap_ssi_port: fix handling of_get_named_gpio result
  ARM: shmobile: apmu: correct type of CPU id
  clk: vt8500: fix sign of possible PLL values
  drm/layerscape: fix handling fsl_dcu_drm_plane_index result
  gpu: ipu-v3: fix div_ratio type
  isdn: hisax: fix frame calculation
  net/ibm/emac: fix type of phy_mode
  net: stmmac: fix type of entry variable
  net: brcm80211: fix range check
  mwifiex: fix comparison expression
  orinoco: fix checking for default value
  rndis_wlan: fix checking for default value
  rtc: opal: fix type of token
  staging: media: davinci_vpfe: fix ipipe_mode type
  staging: lustre: remove invalid check
  usbnet: remove invalid check
  video/omap: remove invalid check
  Input: touchscreen: atmel: remove invalid check
  leds: flash: remove invalid check
  leds: tca6507: remove invalid check
  fs/cachefiles: remove invalid checks
  mm/memblock.c: remove invalid check
  perf: remove invalid check
  ptrace: remove invalid check
  MIPS: remove invalid check
  zlib_deflate/deftree: change always true condition to 1
  drm/radeon: simplify boot level calculation

 arch/arm/mach-shmobile/platsmp-apmu.c               |  2 +-
 arch/mips/mm/sc-mips.c                              |  4 ++--
 arch/sh/kernel/ptrace_32.c                          |  3 +--
 arch/sh/kernel/ptrace_64.c                          |  4 ++--
 drivers/bus/arm-cci.c                               |  2 +-
 drivers/bus/arm-ccn.c                               |  2 +-
 drivers/char/hw_random/xgene-rng.c                  |  7 ++++---
 drivers/clk/clk-vt8500.c                            |  6 +++---
 drivers/gpu/drm/amd/amdgpu/kv_dpm.c                 | 11 +----------
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c         |  3 ++-
 drivers/gpu/drm/i915/intel_lrc.c                    |  7 ++++---
 drivers/gpu/drm/radeon/kv_dpm.c                     | 11 +----------
 drivers/gpu/ipu-v3/ipu-csi.c                        |  2 +-
 drivers/hsi/controllers/omap_ssi.c                  |  7 +++----
 drivers/hsi/controllers/omap_ssi_port.c             |  8 ++++----
 drivers/input/touchscreen/atmel_mxt_ts.c            |  2 +-
 drivers/isdn/hisax/hfc4s8s_l1.c                     | 10 +++++-----
 drivers/leds/led-class-flash.c                      |  2 +-
 drivers/leds/leds-tca6507.c                         |  2 +-
 drivers/net/ethernet/ibm/emac/core.h                |  2 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c   |  2 +-
 drivers/net/usb/lan78xx.c                           |  5 -----
 drivers/net/usb/smsc75xx.c                          |  5 -----
 drivers/net/usb/smsc95xx.c                          |  5 -----
 drivers/net/wireless/brcm80211/brcmsmac/main.c      |  2 +-
 drivers/net/wireless/mwifiex/11n_rxreorder.c        |  4 ++--
 drivers/net/wireless/orinoco/cfg.c                  |  6 +++---
 drivers/net/wireless/rndis_wlan.c                   |  2 +-
 drivers/rtc/rtc-opal.c                              |  4 ++--
 drivers/staging/lustre/lustre/llite/xattr.c         |  7 ++++---
 drivers/staging/lustre/lustre/osc/lproc_osc.c       |  3 ---
 drivers/staging/media/davinci_vpfe/dm365_ipipe_hw.c |  2 +-
 drivers/staging/rdma/ehca/ehca_cq.c                 | 13 +++++++------
 drivers/tty/serial/lpc32xx_hs.c                     |  7 ++++---
 drivers/usb/host/ehci-msm.c                         |  6 +++---
 drivers/video/fbdev/omap/omapfb_main.c              |  5 -----
 fs/cachefiles/bind.c                                |  9 +++------
 fs/cachefiles/daemon.c                              |  6 +++---
 lib/zlib_deflate/deftree.c                          |  2 +-
 mm/memblock.c                                       |  2 +-
 net/openvswitch/conntrack.c                         |  2 +-
 tools/testing/selftests/timers/clocksource-switch.c |  2 +-
 42 files changed, 79 insertions(+), 119 deletions(-)

-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 130+ messages in thread

end of thread, other threads:[~2016-01-30  0:44 UTC | newest]

Thread overview: 130+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-21 13:33 [PATCH 00/38] Fixes related to incorrect usage of unsigned types Andrzej Hajda
2015-09-21 13:33 ` [lustre-devel] " Andrzej Hajda
2015-09-21 13:33 ` Andrzej Hajda
2015-09-21 13:33 ` Andrzej Hajda
2015-09-21 13:33 ` [rtc-linux] " Andrzej Hajda
2015-09-21 13:33 ` Andrzej Hajda
2015-09-21 13:33 ` [PATCH 01/38] arm-cci: fix handling cpumask_any_but return value Andrzej Hajda
2015-09-21 15:29   ` Will Deacon
2015-12-14 10:20   ` Andrzej Hajda
2015-12-14 11:42     ` Suzuki K. Poulose
2015-09-21 13:33 ` [PATCH 02/38] bus: arm-ccn: " Andrzej Hajda
2015-09-21 19:56   ` Pawel Moll
2015-09-21 13:33 ` [PATCH 03/38] drm/i915: fix handling gen8_emit_flush_coherentl3_wa result Andrzej Hajda
2015-09-21 13:33   ` Andrzej Hajda
2015-09-21 13:59   ` Jani Nikula
2015-09-21 13:59     ` Jani Nikula
2015-09-22  9:42     ` Daniel Vetter
2015-09-22  9:42       ` Daniel Vetter
2015-09-21 13:33 ` [PATCH 04/38] IB/ehca: fix handling idr_alloc result Andrzej Hajda
2015-09-21 13:33   ` Andrzej Hajda
     [not found]   ` <1442842450-29769-5-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2015-09-29 18:23     ` Doug Ledford
2015-09-29 18:23       ` Doug Ledford
2015-09-21 13:33 ` [PATCH 05/38] staging: lustre: fix handling lustre_posix_acl_xattr_filter result Andrzej Hajda
2015-09-21 13:33   ` [lustre-devel] " Andrzej Hajda
2015-09-21 13:33 ` [PATCH 06/38] tty: serial: lpc32xx_hs: fix handling platform_get_irq result Andrzej Hajda
2015-09-21 13:33 ` [PATCH 07/38] usb: host: ehci-msm: " Andrzej Hajda
2015-09-21 14:45   ` Alan Stern
2015-09-21 13:33 ` [PATCH 08/38] openvswitch: fix handling result of ipv6_skip_exthdr Andrzej Hajda
2015-09-21 13:33   ` Andrzej Hajda
2015-09-21 17:45   ` Pravin Shelar
2015-09-21 13:33 ` [PATCH 09/38] selftests/timers: fix write return value handlng Andrzej Hajda
2015-12-11  6:42   ` John Stultz
2015-12-11  6:42     ` John Stultz
2015-09-21 13:33 ` [PATCH 10/38] hwrng: fix handling platform_get_irq Andrzej Hajda
2015-09-21 15:05   ` Herbert Xu
2015-09-21 13:33 ` [PATCH 11/38] HSI: omap_ssi: fix handling ida_simple_get result Andrzej Hajda
2015-12-14 10:27   ` Andrzej Hajda
2016-01-07 15:20     ` Sebastian Reichel
2015-09-21 13:33 ` [PATCH 12/38] HSI: omap_ssi_port: fix handling of_get_named_gpio result Andrzej Hajda
2015-12-14 10:27   ` Andrzej Hajda
2015-09-21 13:33 ` [PATCH 13/38] ARM: shmobile: apmu: correct type of CPU id Andrzej Hajda
2015-09-21 13:33   ` Andrzej Hajda
2015-09-21 13:33   ` Andrzej Hajda
2015-10-02  1:57   ` Simon Horman
2015-10-02  1:57     ` Simon Horman
2015-10-02  1:57     ` Simon Horman
2015-09-21 13:33 ` [PATCH 14/38] clk: vt8500: fix sign of possible PLL values Andrzej Hajda
2015-10-01 22:56   ` Stephen Boyd
2015-10-02  4:49     ` [PATCH v2 " Andrzej Hajda
2015-12-14 10:30       ` Andrzej Hajda
2016-01-05 14:24       ` Andrzej Hajda
2016-01-30  0:44       ` Stephen Boyd
2015-09-21 13:33 ` [PATCH 15/38] drm/layerscape: fix handling fsl_dcu_drm_plane_index result Andrzej Hajda
2015-09-21 13:33   ` Andrzej Hajda
2015-09-21 13:33 ` [PATCH 16/38] gpu: ipu-v3: fix div_ratio type Andrzej Hajda
2015-09-23  8:20   ` Philipp Zabel
2015-09-21 13:33 ` [PATCH 17/38] isdn: hisax: fix frame calculation Andrzej Hajda
2015-09-22 23:15   ` David Miller
2015-09-21 13:33 ` [PATCH 18/38] net/ibm/emac: fix type of phy_mode Andrzej Hajda
2015-09-22 23:14   ` David Miller
2015-09-21 13:33 ` [PATCH 19/38] net: stmmac: fix type of entry variable Andrzej Hajda
2015-09-22 23:15   ` David Miller
2015-09-21 13:33 ` [PATCH 20/38] net: brcm80211: fix range check Andrzej Hajda
2015-09-22 23:15   ` David Miller
2015-09-21 13:33 ` [PATCH 21/38] mwifiex: fix comparison expression Andrzej Hajda
2015-09-22 10:56   ` Amitkumar Karwar
2015-09-22 23:15   ` David Miller
2015-09-21 13:33 ` [PATCH 22/38] orinoco: fix checking for default value Andrzej Hajda
2015-09-22 23:15   ` David Miller
2015-09-21 13:33 ` [PATCH 23/38] rndis_wlan: " Andrzej Hajda
2015-09-22 23:15   ` David Miller
2015-09-21 13:33 ` [PATCH 24/38] rtc: opal: fix type of token Andrzej Hajda
2015-09-21 13:33   ` [rtc-linux] " Andrzej Hajda
2015-10-03 13:08   ` Alexandre Belloni
2015-10-03 13:08     ` [rtc-linux] " Alexandre Belloni
2015-09-21 13:33 ` [PATCH 25/38] staging: media: davinci_vpfe: fix ipipe_mode type Andrzej Hajda
2015-11-09 21:18   ` Laurent Pinchart
2015-09-21 13:33 ` [PATCH 26/38] staging: lustre: remove invalid check Andrzej Hajda
2015-09-21 13:33   ` [lustre-devel] " Andrzej Hajda
2015-09-21 13:33 ` [PATCH 27/38] usbnet: " Andrzej Hajda
2015-09-22 23:15   ` David Miller
2015-09-21 13:34 ` [PATCH 28/38] video/omap: " Andrzej Hajda
2015-09-21 13:34   ` Andrzej Hajda
2015-09-24 10:48   ` Tomi Valkeinen
2015-09-24 10:48     ` Tomi Valkeinen
2015-09-24 10:48     ` Tomi Valkeinen
2015-09-21 13:34 ` [PATCH 29/38] Input: touchscreen: atmel: " Andrzej Hajda
2015-09-21 17:10   ` Dmitry Torokhov
2015-09-21 13:34 ` [PATCH 30/38] leds: flash: " Andrzej Hajda
2015-09-22  7:36   ` Jacek Anaszewski
2015-09-21 13:34 ` [PATCH 31/38] leds: tca6507: " Andrzej Hajda
2015-09-22  7:37   ` Jacek Anaszewski
2015-09-21 13:34 ` [PATCH 32/38] fs/cachefiles: remove invalid checks Andrzej Hajda
2015-09-21 13:34 ` [PATCH 33/38] mm/memblock.c: remove invalid check Andrzej Hajda
2015-09-21 13:34   ` Andrzej Hajda
2015-09-21 21:31   ` Andrew Morton
2015-09-21 21:31     ` Andrew Morton
2015-09-21 13:34 ` [PATCH 34/38] perf: " Andrzej Hajda
2015-09-21 13:34   ` Andrzej Hajda
2015-09-21 13:34 ` [PATCH 35/38] ptrace: " Andrzej Hajda
2015-09-21 13:34   ` Andrzej Hajda
2015-09-21 13:34 ` [PATCH 36/38] MIPS: " Andrzej Hajda
2015-09-22 15:43   ` Ralf Baechle
2015-09-21 13:34 ` [PATCH 37/38] zlib_deflate/deftree: change always true condition to 1 Andrzej Hajda
2015-09-21 13:34 ` [PATCH 38/38] drm/radeon: simplify boot level calculation Andrzej Hajda
2015-09-21 13:34   ` Andrzej Hajda
2015-10-26 15:55   ` Deucher, Alexander
2015-10-26 15:55     ` Deucher, Alexander
     [not found] ` <1442842450-29769-1-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2015-09-21 13:42   ` [PATCH 00/38] Fixes related to incorrect usage of unsigned types David Howells
2015-09-21 13:42     ` David Howells
2015-09-21 13:42     ` [lustre-devel] " David Howells
2015-09-21 13:42     ` David Howells
2015-09-21 13:42     ` David Howells
2015-09-21 13:42     ` David Howells
2015-09-22  9:13     ` Andrzej Hajda
2015-09-22  9:13       ` Andrzej Hajda
2015-09-22  9:13       ` [lustre-devel] " Andrzej Hajda
2015-09-22  9:13       ` Andrzej Hajda
2015-09-22  9:13       ` Andrzej Hajda
2015-09-22  9:13       ` [rtc-linux] " Andrzej Hajda
2015-09-22  9:13       ` Andrzej Hajda
2015-09-22  9:13       ` Andrzej Hajda
2015-09-22  9:46       ` Jacek Anaszewski
2015-09-22  9:46         ` Jacek Anaszewski
2015-09-22  9:46         ` [lustre-devel] " Jacek Anaszewski
2015-09-22  9:46         ` [rtc-linux] " Jacek Anaszewski
2015-09-22  9:46         ` Jacek Anaszewski
2015-09-22  9:46         ` Jacek Anaszewski
2015-09-21 13:48 ` [PATCH 32/38] fs/cachefiles: remove invalid checks David Howells
2015-09-21 16:10 ` David Howells

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.