Staging: vc04_services: bcm2835-audio: bcm2835-ctl.c: Fixed alignment to match open parenthesis.
Subsystems (3)
PATCH 1/1 Staging: vc04_services: bcm2835-audio: bcm2835-ctl.c: Fixed alignment to match open parenthesis.
Fixed alignment so that it matched open parenthesis.
--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +1 -1
@@ -105,7 +105,7 @@ static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, }static int snd_bcm2835_ctl_put (struct snd_kcontrol *kcontrol, -struct snd_ctl_elem_value *ucontrol) +struct snd_ctl_elem_value *ucontrol) {
struct bcm2835_chip *chip = snd_kcontrol_chip(kcontrol); int changed = 0;
--
2.7.4
Greg KH
maintainerQuoted 12 lines · srishti sharma
Fixed alignment so that it matched open parenthesis.
Signed-off-by srishti sharma <[email protected]>--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +0
-0
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, · line 111
Quoted 8 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +1
-1@@ -105,7 +105,7 @@ static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, }static int snd_bcm2835_ctl_put (struct snd_kcontrol *kcontrol, -struct snd_ctl_elem_value *ucontrol) +struct snd_ctl_elem_value *ucontrol) {struct bcm2835_chip *chip =snd_kcontrol_chip (kcontrol);int changed =0 ;
This patch is corrupted and can not be applied :(
Quoted 15 lines · Greg KH
Quoted 14 lines · srishti sharma
Fixed alignment so that it matched open parenthesis.
Signed-off-by srishti sharma <[email protected]>--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +0
-0@@ -105,7 +105,7 @@ static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, }
Quoted 8 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol,
Quoted 6 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +1
-1static int snd_bcm2835_ctl_put (struct snd_kcontrol *kcontrol, -struct snd_ctl_elem_value *ucontrol) +struct snd_ctl_elem_value *ucontrol) {struct bcm2835_chip *chip =snd_kcontrol_chip (kcontrol);int changed =0 ;This patch is corrupted and can not be applied :(
Why is this corrupted ?
Regards,
Srishti
Quoted 26 lines · srishti sharma
Quoted 15 lines · Greg KH
Quoted 14 lines · srishti sharma
Fixed alignment so that it matched open parenthesis.
Signed-off-by srishti sharma <[email protected]>--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +0
-0@@ -105,7 +105,7 @@ static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, }Quoted 8 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol,
Quoted 6 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +1
-1static int snd_bcm2835_ctl_put (struct snd_kcontrol *kcontrol, -struct snd_ctl_elem_value *ucontrol) +struct snd_ctl_elem_value *ucontrol) {struct bcm2835_chip *chip =snd_kcontrol_chip (kcontrol);int changed =0 ;This patch is corrupted and can not be applied :(
Quoted 1 line
Why is this corrupted ?
Try applying it with git am. There should be space characters at the start of these lines but your email client deleted them:
struct bcm2835_chip *chip = snd_kcontrol_chip(kcontrol); int changed = 0;
Read Documentation/process/email-clients.rst
regards,
dan carpenter
Quoted 32 lines · Dan Carpenter
Quoted 26 lines · srishti sharma
Quoted 15 lines · Greg KH
Quoted 14 lines · srishti sharma
Fixed alignment so that it matched open parenthesis.
Signed-off-by srishti sharma <[email protected]>--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +0
-0@@ -105,7 +105,7 @@ static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, }Quoted 8 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol,
Quoted 6 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +1
-1static int snd_bcm2835_ctl_put (struct snd_kcontrol *kcontrol, -struct snd_ctl_elem_value *ucontrol) +struct snd_ctl_elem_value *ucontrol) {struct bcm2835_chip *chip =snd_kcontrol_chip (kcontrol);int changed =0 ;This patch is corrupted and can not be applied :(
Quoted 1 line
Why is this corrupted ?
Try applying it with
git am. There should be space characters at the start of these lines but your email client deleted them:
Quoted 7 lines
struct bcm2835_chip *chip = snd_kcontrol_chip(kcontrol); int changed = 0;Read
Documentation/process/email-clients.rstregards,
dan carpenter
Hello,
I tried applying it with ' git am ' and it was giving me this error:
fatal: corrupt patch at line XX
I think this was produced because of running ./scripts/cleanfile on the patch . I was using this to fix trailing whitespaces . So, I used a different method to remove them and didn't get that error.
But now when I run 'git am' I get a different error:
error: patch failed:drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c:105
Why am I getting this error ?
Regards,
Srishti
Greg KH
maintainerQuoted 42 lines · srishti sharma
Quoted 32 lines · Dan Carpenter
Quoted 26 lines · srishti sharma
Quoted 15 lines · Greg KH
Quoted 14 lines · srishti sharma
Fixed alignment so that it matched open parenthesis.
Signed-off-by srishti sharma <[email protected]>--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +0
-0@@ -105,7 +105,7 @@ static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, }Quoted 8 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol,
Quoted 6 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +1
-1static int snd_bcm2835_ctl_put (struct snd_kcontrol *kcontrol, -struct snd_ctl_elem_value *ucontrol) +struct snd_ctl_elem_value *ucontrol) {struct bcm2835_chip *chip =snd_kcontrol_chip (kcontrol);int changed =0 ;This patch is corrupted and can not be applied :(
Quoted 1 line
Why is this corrupted ?
Try applying it with
git am. There should be space characters at the start of these lines but your email client deleted them:Quoted 7 lines
struct bcm2835_chip *chip = snd_kcontrol_chip(kcontrol); int changed = 0;Read
Documentation/process/email-clients.rstregards,
dan carpenter
Quoted 5 lines
Hello,
I tried applying it with ' git am ' and it was giving me this error:
fatal: corrupt patch at line XX
Exactly.
Quoted 1 line
I think this was produced because of running
./scripts/cleanfileon the patch .
Why would you do that? By doing that you corrupted the patch file :(
Just use the proper output of 'git format-patch' and all will be fine.
thanks,
greg k-h
Quoted 47 lines · Greg KH
Quoted 46 lines · srishti sharma
Quoted 32 lines · Dan Carpenter
Quoted 26 lines · srishti sharma
Quoted 15 lines · Greg KH
Quoted 14 lines · srishti sharma
Fixed alignment so that it matched open parenthesis.
Signed-off-by srishti sharma <[email protected]>--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +0
-0@@ -105,7 +105,7 @@ static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, }Quoted 8 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol,
Quoted 6 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +1
-1static int snd_bcm2835_ctl_put (struct snd_kcontrol *kcontrol, -struct snd_ctl_elem_value *ucontrol) +struct snd_ctl_elem_value *ucontrol) {struct bcm2835_chip *chip =snd_kcontrol_chip (kcontrol);int changed =0 ;This patch is corrupted and can not be applied :(
Quoted 1 line
Why is this corrupted ?
Try applying it with
git am. There should be space characters at the start of these lines but your email client deleted them:Quoted 7 lines
struct bcm2835_chip *chip = snd_kcontrol_chip(kcontrol); int changed = 0;Read
Documentation/process/email-clients.rstregards,
dan carpenterHello,
I tried applying it with ' git am ' and it was giving me this error:
Quoted 7 lines
Quoted 1 line
fatal: corrupt patch at line XX
Exactly.
Quoted 1 line
I think this was produced because of running
./scripts/cleanfileon the patch .Why would you do that? By doing that you corrupted the patch file :(
After I run ./scritps/checkpatch.pl on the patch produced by git format-patch it has trailing whitespaces . So I was using ./scripts/cleanfile to fix that , I am not doing that anymore and am also not getting the corrupt patch error .
Quoted 2 lines
Just use the proper output of 'git format-patch' and all will be fine.
I have done this and am still getting these errors:
error: patch failed:drivers/staging/vc04_services/bcm2835-audio/bcm2835- ctl.c:105
error: drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c:
patch does not apply
Why is it not applying ?
Regards,
Srishti
Greg KH
maintainerQuoted 52 lines · srishti sharma
Quoted 51 lines · Greg KH
Quoted 42 lines · srishti sharma
Quoted 32 lines · Dan Carpenter
Quoted 26 lines · srishti sharma
Quoted 15 lines · Greg KH
Quoted 14 lines · srishti sharma
Fixed alignment so that it matched open parenthesis.
Signed-off-by srishti sharma <[email protected]>--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +0
-0@@ -105,7 +105,7 @@ static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, }Quoted 8 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, · line 111
Quoted 6 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +1
-1static int snd_bcm2835_ctl_put (struct snd_kcontrol *kcontrol, -struct snd_ctl_elem_value *ucontrol) +struct snd_ctl_elem_value *ucontrol) {struct bcm2835_chip *chip =snd_kcontrol_chip (kcontrol);int changed =0 ;This patch is corrupted and can not be applied :(
Quoted 1 line
Why is this corrupted ?
Try applying it with
git am. There should be space characters at the start of these lines but your email client deleted them:Quoted 7 lines
struct bcm2835_chip *chip = snd_kcontrol_chip(kcontrol); int changed = 0;Read
Documentation/process/email-clients.rstregards,
dan carpenterQuoted 5 lines
Hello,
I tried applying it with ' git am ' and it was giving me this error:
fatal: corrupt patch at line XX
Exactly.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
I think this was produced because of running
./scripts/cleanfileon the patch .Why would you do that? By doing that you corrupted the patch file :(
After I run
./scritps/checkpatch.plon the patch produced by git format-patch it has trailing whitespaces . So I was using./scripts/cleanfileto fix that , I am not doing that anymore and am also not getting the corrupt patch error .
That means your code had trailing whitespaces, always fix that and NEVER hand-edit or modify a patch unless you really know what you are doing.
Quoted 4 lines
Quoted 1 line
Just use the proper output of 'git format-patch' and all will be fine.
I have done this and am still getting these errors:
Quoted 8 lines
error: patch failed:
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c:105error:
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c:
patch does not applyWhy is it not applying ?
That is up to you to figure out, we have no idea as to exactly what you are doing :)
good luck!
greg k-h
Quoted 72 lines · Greg KH
Quoted 52 lines · srishti sharma
Quoted 51 lines · Greg KH
Quoted 42 lines · srishti sharma
Quoted 32 lines · Dan Carpenter
Quoted 26 lines · srishti sharma
Quoted 15 lines · Greg KH
Quoted 14 lines · srishti sharma
Fixed alignment so that it matched open parenthesis.
Signed-off-by srishti sharma <[email protected]>--- drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +0
-0@@ -105,7 +105,7 @@ static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, }Quoted 8 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, · line 111
Quoted 6 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c +1
-1static int snd_bcm2835_ctl_put (struct snd_kcontrol *kcontrol, -struct snd_ctl_elem_value *ucontrol) +struct snd_ctl_elem_value *ucontrol) {struct bcm2835_chip *chip =snd_kcontrol_chip (kcontrol);int changed =0 ;This patch is corrupted and can not be applied :(
Quoted 1 line
Why is this corrupted ?
Try applying it with
git am. There should be space characters at the start of these lines but your email client deleted them:Quoted 7 lines
struct bcm2835_chip *chip = snd_kcontrol_chip(kcontrol); int changed = 0;Read
Documentation/process/email-clients.rstregards,
dan carpenterQuoted 5 lines
Hello,
I tried applying it with ' git am ' and it was giving me this error:
fatal: corrupt patch at line XX
Exactly.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
I think this was produced because of running
./scripts/cleanfileon the patch .Why would you do that? By doing that you corrupted the patch file :(
After I run
./scritps/checkpatch.plon the patch produced by git format-patch it has trailing whitespaces . So I was using./scripts/cleanfileto fix that , I am not doing that anymore and am also not getting the corrupt patch error .That means your code had trailing whitespaces, always fix that and NEVER hand-edit or modify a patch unless you really know what you are doing.
Quoted 7 lines
Quoted 1 line
Just use the proper output of 'git format-patch' and all will be fine.
I have done this and am still getting these errors:
error: patch failed:
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c:105
Quoted 8 lines
Quoted 5 lines
error:
drivers/staging/vc04_services/bcm2835-audio/bcm2835-ctl.c:
patch does not applyWhy is it not applying ?
That is up to you to figure out, we have no idea as to exactly what you are doing :)
I guess , I was applying the patch to the same repository I made the change in :P , I am not getting any errors now .
Quoted 4 lines
good luck!
greg k-h
Regards,
Srishti