+ aoe-suppress-compiler-warnings.patch added to -mm tree
Subsystems (2)
Subject: + aoe-suppress-compiler-warnings.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 26 Aug 2013 13:49:51 -0700
The patch titled
Subject: aoe: suppress compiler warnings
has been added to the -mm tree. Its filename is
aoe-suppress-compiler-warnings.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/aoe-suppress-compiler-warnings.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/aoe-suppress-compiler-warnings.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Andy Shevchenko <[email protected]>
Subject: aoe: suppress compiler warnings
This patch fixes following compiler warnings:
drivers/block/aoe/aoecmd.c: In function `aoecmd_ata_rw':drivers/block/aoe/aoecmd.c:383:17: warning: variable `t' set but not used [-Wunused-but-set-variable]
struct aoetgt *t;
^
drivers/block/aoe/aoecmd.c: In function `resend':
drivers/block/aoe/aoecmd.c:488:21: warning: variable `ah' set but not used [-Wunused-but-set-variable]
struct aoe_atahdr *ah;
^
drivers/block/aoe/aoedev.c: In function 'user_req':
drivers/block/aoe/aoedev.c:252:174: warning: comparison of distinct pointer types lacks a cast [enabled by default]
lim = min(sizeof(d->gd->disk_name) - (p - d->gd->disk_name), slen);
^---
drivers/block/aoe/aoecmd.c | 4 ---- drivers/block/aoe/aoedev.c | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-)
drivers/block/aoe/aoecmd.c renamed from drivers/block/aoe/aoecmd.c~aoe-suppress-compiler-warnings +0 -4
@@ -380,7 +380,6 @@ aoecmd_ata_rw(struct aoedev *d) {struct frame *f;struct buf *buf; -struct aoetgt *t;struct sk_buff *skb;struct sk_buff_head queue;ulong bcnt, fbcnt;
@@ -391,7 +390,6 @@ aoecmd_ata_rw(struct aoedev *d) f =newframe (d);if (f ==NULL )return 0 ; - t = *d->tgt; bcnt = d->maxbcnt;if (bcnt ==0 ) bcnt =DEFAULTBCNT ;
@@ -485,7 +483,6 @@ resend(struct aoedev *d, struct frame *fstruct sk_buff *skb;struct sk_buff_head queue;struct aoe_hdr *h; -struct aoe_atahdr *ah;struct aoetgt *t;char buf[128 ];u32 n;
@@ -500,7 +497,6 @@ resend(struct aoedev *d, struct frame *freturn ; } h = (struct aoe_hdr *)skb_mac_header (skb); - ah = (struct aoe_atahdr *) (h+1 );if (!(f->flags &FFL_PROBE )) { snprintf(buf, sizeof(buf),
drivers/block/aoe/aoedev.c renamed from drivers/block/aoe/aoedev.c~aoe-suppress-compiler-warnings +2 -1
@@ -249,7 +249,8 @@ user_req(char *s, size_t slen, struct aoif (!d->gd)return 0 ; p =kbasename (d->gd->disk_name); - lim =min (sizeof (d->gd->disk_name) - (p - d->gd->disk_name), slen); + lim =min_t (size_t,sizeof (d->gd->disk_name) - (p - d->gd->disk_name), + slen);return !strncmp (s, p, lim); }
_
Patches currently in -mm which might be from [email protected] are
aoe-remove-custom-implementation-of-kbasename.patch aoe-use-min-to-simplify-the-code.patch aoe-suppress-compiler-warnings.patch linux-next.patch