diff mbox

build: Added missing timer_setup_on_stack

Message ID d3854754-84be-3bb8-6726-f5f351e7c142@anw.at (mailing list archive)
State New, archived
Headers show

Commit Message

Jasmin J. Dec. 8, 2017, 11:29 p.m. UTC
Hello Vincent!

> Not quite there yet however.
I always test with several Kernel headers ...

> patch -s -f -N -p1 -i ../backports/api_version.patch
> patch -s -f -N -p1 -i ../backports/pr_fmt.patch
> 1 out of 1 hunk FAILED
I have tested the patches on Linux Mint 18.1 (Kernel 4.4.0-62-generic):
Applying patches for kernel 4.4.0-62-generic
patch -f -N -p1 -i ../backports/api_version.patch
checking file drivers/media/cec/cec-api.c
Hunk #1 succeeded at 95 (offset 2 lines).
checking file drivers/media/v4l2-core/v4l2-ioctl.c
Hunk #1 succeeded at 1004 (offset 4 lines).
checking file drivers/media/media-device.c
patching file drivers/media/cec/cec-api.c
Hunk #1 succeeded at 95 (offset 2 lines).
patching file drivers/media/v4l2-core/v4l2-ioctl.c
Hunk #1 succeeded at 1004 (offset 4 lines).
patching file drivers/media/media-device.c
patch -f -N -p1 -i ../backports/pr_fmt.patch
checking file drivers/media/common/saa7146/saa7146_core.c
checking file drivers/media/common/saa7146/saa7146_fops.c
checking file drivers/media/common/saa7146/saa7146_hlp.c
checking file drivers/media/common/saa7146/saa7146_i2c.c
checking file drivers/media/common/saa7146/saa7146_video.c
checking file drivers/media/common/siano/smscoreapi.h

Apply this patch, so we can see on which file it stops:


BR,
   Jasmin

Comments

Hans Verkuil Dec. 9, 2017, 8 a.m. UTC | #1
I misapplied a pr_fmt patch. It's now fixed.

	Hans

On 12/09/2017 12:29 AM, Jasmin J. wrote:
> Hello Vincent!
> 
>> Not quite there yet however.
> I always test with several Kernel headers ...
> 
>> patch -s -f -N -p1 -i ../backports/api_version.patch
>> patch -s -f -N -p1 -i ../backports/pr_fmt.patch
>> 1 out of 1 hunk FAILED
> I have tested the patches on Linux Mint 18.1 (Kernel 4.4.0-62-generic):
> Applying patches for kernel 4.4.0-62-generic
> patch -f -N -p1 -i ../backports/api_version.patch
> checking file drivers/media/cec/cec-api.c
> Hunk #1 succeeded at 95 (offset 2 lines).
> checking file drivers/media/v4l2-core/v4l2-ioctl.c
> Hunk #1 succeeded at 1004 (offset 4 lines).
> checking file drivers/media/media-device.c
> patching file drivers/media/cec/cec-api.c
> Hunk #1 succeeded at 95 (offset 2 lines).
> patching file drivers/media/v4l2-core/v4l2-ioctl.c
> Hunk #1 succeeded at 1004 (offset 4 lines).
> patching file drivers/media/media-device.c
> patch -f -N -p1 -i ../backports/pr_fmt.patch
> checking file drivers/media/common/saa7146/saa7146_core.c
> checking file drivers/media/common/saa7146/saa7146_fops.c
> checking file drivers/media/common/saa7146/saa7146_hlp.c
> checking file drivers/media/common/saa7146/saa7146_i2c.c
> checking file drivers/media/common/saa7146/saa7146_video.c
> checking file drivers/media/common/siano/smscoreapi.h
> 
> Apply this patch, so we can see on which file it stops:
> diff --git a/linux/Makefile b/linux/Makefile
> index ce39f82..5fc5150 100644
> --- a/linux/Makefile
> +++ b/linux/Makefile
> @@ -147,9 +147,9 @@ apply_patches apply-patches:
>         touch .patches_applied; \
>         rm -f mm/frame_vector.c; \
>         for i in $$PATCHES; do \
> -               echo patch -s -f -N -p1 -i ../backports/$$i; \
> -               patch -s -f -N -p1 -i ../backports/$$i --dry-run || exit 1; \
> -               patch -s -f -N -p1 -i ../backports/$$i; \
> +               echo patch -f -N -p1 -i ../backports/$$i; \
> +               patch -f -N -p1 -i ../backports/$$i --dry-run || exit 1; \
> +               patch -f -N -p1 -i ../backports/$$i; \
>                 mv .patches_applied .patches_applied.old; \
>                 echo $$i > .patches_applied; \
>                 cat .patches_applied.old >> .patches_applied; \
> @@ -165,8 +165,8 @@ unapply_patches unapply-patches:
>         @if [ -e .patches_applied ]; then \
>         echo "Unapplying patches"; \
>         for i in `cat .patches_applied|grep -v '^#'`; do \
> -               echo patch -s -f -R -p1 -i ../backports/$$i; \
> -               patch -s -f -R -p1 -i ../backports/$$i || break; \
> +               echo patch -f -R -p1 -i ../backports/$$i; \
> +               patch -f -R -p1 -i ../backports/$$i || break; \
>         done; \
>         rm -f mm/frame_vector.c; \
>         rm -f .patches_applied; fi
> 
> 
> BR,
>    Jasmin
>
Vincent McIntyre Dec. 10, 2017, 6:27 a.m. UTC | #2
On Sat, Dec 09, 2017 at 09:00:18AM +0100, Hans Verkuil wrote:
> I misapplied a pr_fmt patch. It's now fixed.
> 

Indeed, the build goes fine now. Thank you both again.
Cheers
Vince
Jasmin J. Dec. 10, 2017, 2:26 p.m. UTC | #3
Hello Hans!

In one of my eMails I added a debug patch for linux/Makefile.
Patchwork interpreted this as a new version of the timer_setup_on_stack
patch. Please remove that from Patchwork.

BR,
   Jasmin
diff mbox

Patch

diff --git a/linux/Makefile b/linux/Makefile
index ce39f82..5fc5150 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -147,9 +147,9 @@  apply_patches apply-patches:
        touch .patches_applied; \
        rm -f mm/frame_vector.c; \
        for i in $$PATCHES; do \
-               echo patch -s -f -N -p1 -i ../backports/$$i; \
-               patch -s -f -N -p1 -i ../backports/$$i --dry-run || exit 1; \
-               patch -s -f -N -p1 -i ../backports/$$i; \
+               echo patch -f -N -p1 -i ../backports/$$i; \
+               patch -f -N -p1 -i ../backports/$$i --dry-run || exit 1; \
+               patch -f -N -p1 -i ../backports/$$i; \
                mv .patches_applied .patches_applied.old; \
                echo $$i > .patches_applied; \
                cat .patches_applied.old >> .patches_applied; \
@@ -165,8 +165,8 @@  unapply_patches unapply-patches:
        @if [ -e .patches_applied ]; then \
        echo "Unapplying patches"; \
        for i in `cat .patches_applied|grep -v '^#'`; do \
-               echo patch -s -f -R -p1 -i ../backports/$$i; \
-               patch -s -f -R -p1 -i ../backports/$$i || break; \
+               echo patch -f -R -p1 -i ../backports/$$i; \
+               patch -f -R -p1 -i ../backports/$$i || break; \
        done; \
        rm -f mm/frame_vector.c; \
        rm -f .patches_applied; fi