* Re: Question about my patch
[not found] <5491043D.8020703@gmail.com>
@ 2014-12-17 5:26 ` NeilBrown
2014-12-18 6:30 ` Peter Kieser
0 siblings, 1 reply; 2+ messages in thread
From: NeilBrown @ 2014-12-17 5:26 UTC (permalink / raw)
To: nick; +Cc: linux-raid, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2646 bytes --]
On Tue, 16 Dec 2014 23:19:09 -0500 nick <xerofoify@gmail.com> wrote:
> Greetings Neil,
> As you our the maintainer for this patch I created:
>
> >From ad324f9c2c8117b2f74ad73cb9c6e8185edf5395 Mon Sep 17 00:00:00 2001
> From: Nicholas Krause <xerofoify@gmail.com>
> Date: Tue, 16 Dec 2014 22:54:10 -0500
> Subject: [PATCH] drivers:md: Remove unneeded argument to the function,
> sync_request in raid5.c
>
> Removes unneeded argument of go_faster for the function sync_request as this parameter is never used in the function. Further more do to this we can remove this parameter for the function sync_request
> in the file, raid5.c safely and not break any callers of this function successfully.
>
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> ---
> drivers/md/raid5.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
> index c1b0d52..e7da686 100644
> --- a/drivers/md/raid5.c
> +++ b/drivers/md/raid5.c
> @@ -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;
>
> --
> 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
> 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 Nick
> P.S. Sorry about the bad layout if it's hard to read tried to do my best to make it readable :).
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about my patch
2014-12-17 5:26 ` Question about my patch NeilBrown
@ 2014-12-18 6:30 ` Peter Kieser
0 siblings, 0 replies; 2+ messages in thread
From: Peter Kieser @ 2014-12-18 6:30 UTC (permalink / raw)
To: NeilBrown, nick; +Cc: linux-raid, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 179 bytes --]
On 2014-12-16 9:26 PM, NeilBrown wrote:
> i.e. there is no bug here, and nothing to fix.
>
> Thanks,
>
> NeilBrown
FYI:https://lkml.org/lkml/2014/8/4/206
-Peter
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4291 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-18 6:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <5491043D.8020703@gmail.com>
2014-12-17 5:26 ` Question about my patch NeilBrown
2014-12-18 6:30 ` Peter Kieser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).