Question about my patch
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 37 lines · On Tue, 16 Dec 2014 23:19:09 -0500 nick <[email protected]> wrote:
Greetings Neil,
As you our the maintainer for this patch I created:Quoted 1 line
From
ad324f9c2c8117b2f74ad73cb9c6e8185edf5395Mon Sep 17 00:00:00 2001From: Nicholas Krause <[email protected]>
Date: Tue, 16 Dec 2014 22:54:10 -0500
Subject: [PATCH] drivers:md: Remove unneeded argument to the function,
sync_requestinraid5.cRemoves unneeded argument of
go_fasterfor the functionsync_requestas this parameter is never used in the function. Further more do to this we can remove this parameter for the functionsync_requestin the file,raid5.csafely and not break any callers of this function successfully.Signed-off-by Nicholas Krause <[email protected]>--- drivers/md/raid5.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/md/raid5.c +1
-2@@ -4986,8 +4986,7 @@ ret:return reshape_sectors; } -/* FIXME go_faster isn't used */ -static inline sector_t sync_request (struct mddev *mddev,sector_t sector_nr,int *skipped,int go_faster) +static inline sector_t sync_request (struct mddev *mddev,sector_t sector_nr,int *skipped) {struct r5conf *conf = mddev->private;struct stripe_head *sh;Signature · 4 lines
-- 2.1.0 I am wondering as I am getting a few build errors if I should sent the patch anyway or create one that has no warnings. Below our the warnings I am getting.
Adding new warning is definitely not acceptable.
The only way you could get ride of the warning is to not change the arguments to the function, or to make the same change to the arguments of every sync_request function.
The former is easier.
i.e. there is no bug here, and nothing to fix.
Thanks,
NeilBrown
Quoted 15 lines
Warnings from Build:
drivers/md/raid5.c:7047:2: warning: initialization from incompatible pointer type
.sync_request =sync_request,
^drivers/md/raid5.c:7047:2: warning: (near initialization for ‘raid6_personality.sync_request’)drivers/md/raid5.c:7069:2: warning: initialization from incompatible pointer type
.sync_request =sync_request,
^drivers/md/raid5.c:7069:2: warning: (near initialization for ‘raid5_personality.sync_request’)drivers/md/raid5.c:7092:2: warning: initialization from incompatible pointer type
.sync_request =sync_request,
^
Thanks NickP.S. Sorry about the bad layout if it's hard to read tried to do my best to make it readable :).
Quoted 5 lines · NeilBrown
i.e. there is no bug here, and nothing to fix.
Thanks,
NeilBrown
FYI:https://lkml.org/lkml/2014/8/4/206
-Peter