pktcdvd-silence-static-checker-warning.patch removed from -mm tree
Subject: [merged] pktcdvd-silence-static-checker-warning.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 30 May 2013 12:20:55 -0700
The patch titled
Subject: pktcdvd: silence static checker warning
has been removed from the -mm tree. Its filename was
pktcdvd-silence-static-checker-warning.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Dan Carpenter <[email protected]>
Subject: pktcdvd: silence static checker warning
Static checkers complain about widening the binary "not" operations here because sectors are u64 and "(pd)->settings.size" is unsigned int. It unintentionally clears the high 32 bits of the sector. This means that the driver won't work for devices with over 2TB of space. Since this is a DVD drive, we're unlikely to reach that limit, but we may as well silence the warning.
---
drivers/block/pktcdvd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/block/pktcdvd.c renamed from drivers/block/pktcdvd.c~pktcdvd-silence-static-checker-warning +2 -1
@@ -83,7 +83,8 @@#define MAX_SPEED 0xffff -#define ZONE (sector, pd) (((sector) + (pd)->offset) & ~((pd)->settings.size - 1)) +#define ZONE (sector, pd) (((sector) + (pd)->offset) & \ + ~(sector_t)((pd)->settings.size - 1))static DEFINE_MUTEX (pktcdvd_mutex);static struct pktcdvd_device *pkt_devs[MAX_WRITERS ];
_
Patches currently in -mm which might be from [email protected] are
linux-next.patch configfs-use-capped-length-for-store_attribute.patch errh-is_err-can-accept-__user-pointers.patch rbtree-remove-unneeded-include.patch rbtree-remove-unneeded-include-fix.patch minix-bug-widening-a-binary-not-operation.patch documentation-codingstyle-allow-multiple-return-statements-per-function.patch mwave-fix-info-leak-in-mwave_ioctl.patch