* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) [not found] <20190704220152.1bF4q6uyw%akpm@linux-foundation.org> @ 2019-07-05 1:09 ` Randy Dunlap 2019-07-05 1:19 ` Randy Dunlap 2019-07-05 3:05 ` Masahiro Yamada 0 siblings, 2 replies; 12+ messages in thread From: Randy Dunlap @ 2019-07-05 1:09 UTC (permalink / raw) To: akpm, broonie, linux-fsdevel, linux-kernel, linux-mm, linux-next, mhocko, mm-commits, sfr, dri-devel On 7/4/19 3:01 PM, akpm@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2019-07-04-15-01 has been uploaded to > > http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ I get a lot of these but don't see/know what causes them: ../scripts/Makefile.build:42: ../drivers/gpu/drm/i915/oa/Makefile: No such file or directory make[6]: *** No rule to make target '../drivers/gpu/drm/i915/oa/Makefile'. Stop. ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915/oa' failed make[5]: *** [drivers/gpu/drm/i915/oa] Error 2 ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915' failed -- ~Randy ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 2019-07-05 1:09 ` mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) Randy Dunlap @ 2019-07-05 1:19 ` Randy Dunlap 2019-07-05 3:05 ` Masahiro Yamada 1 sibling, 0 replies; 12+ messages in thread From: Randy Dunlap @ 2019-07-05 1:19 UTC (permalink / raw) To: akpm, broonie, linux-fsdevel, linux-kernel, linux-mm, linux-next, mhocko, mm-commits, sfr, dri-devel, linux-kbuild, Masahiro Yamada On 7/4/19 6:09 PM, Randy Dunlap wrote: > On 7/4/19 3:01 PM, akpm@linux-foundation.org wrote: >> The mm-of-the-moment snapshot 2019-07-04-15-01 has been uploaded to >> >> http://www.ozlabs.org/~akpm/mmotm/ >> >> mmotm-readme.txt says >> >> README for mm-of-the-moment: >> >> http://www.ozlabs.org/~akpm/mmotm/ > > I get a lot of these but don't see/know what causes them: > > ../scripts/Makefile.build:42: ../drivers/gpu/drm/i915/oa/Makefile: No such file or directory > make[6]: *** No rule to make target '../drivers/gpu/drm/i915/oa/Makefile'. Stop. > ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915/oa' failed > make[5]: *** [drivers/gpu/drm/i915/oa] Error 2 > ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915' failed > [+ linux-kbuild] It seems to have something to do with "modules.order". But!!! # CONFIG_DRM_I915 it not set -- ~Randy ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 2019-07-05 1:09 ` mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) Randy Dunlap 2019-07-05 1:19 ` Randy Dunlap @ 2019-07-05 3:05 ` Masahiro Yamada 2019-07-05 3:09 ` Masahiro Yamada 2019-07-05 3:14 ` Stephen Rothwell 1 sibling, 2 replies; 12+ messages in thread From: Masahiro Yamada @ 2019-07-05 3:05 UTC (permalink / raw) To: Randy Dunlap Cc: Andrew Morton, Mark Brown, linux-fsdevel, Linux Kernel Mailing List, linux-mm, Linux-Next Mailing List, mhocko, mm-commits, Stephen Rothwell, dri-devel On Fri, Jul 5, 2019 at 10:09 AM Randy Dunlap <rdunlap@infradead.org> wrote: > > On 7/4/19 3:01 PM, akpm@linux-foundation.org wrote: > > The mm-of-the-moment snapshot 2019-07-04-15-01 has been uploaded to > > > > http://www.ozlabs.org/~akpm/mmotm/ > > > > mmotm-readme.txt says > > > > README for mm-of-the-moment: > > > > http://www.ozlabs.org/~akpm/mmotm/ > > I get a lot of these but don't see/know what causes them: > > ../scripts/Makefile.build:42: ../drivers/gpu/drm/i915/oa/Makefile: No such file or directory > make[6]: *** No rule to make target '../drivers/gpu/drm/i915/oa/Makefile'. Stop. > ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915/oa' failed > make[5]: *** [drivers/gpu/drm/i915/oa] Error 2 > ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915' failed > I checked next-20190704 tag. I see the empty file drivers/gpu/drm/i915/oa/Makefile Did someone delete it? -- Best Regards Masahiro Yamada ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 2019-07-05 3:05 ` Masahiro Yamada @ 2019-07-05 3:09 ` Masahiro Yamada 2019-07-05 3:23 ` Randy Dunlap 2019-07-05 3:14 ` Stephen Rothwell 1 sibling, 1 reply; 12+ messages in thread From: Masahiro Yamada @ 2019-07-05 3:09 UTC (permalink / raw) To: Randy Dunlap Cc: Andrew Morton, Mark Brown, linux-fsdevel, Linux Kernel Mailing List, linux-mm, Linux-Next Mailing List, mhocko, mm-commits, Stephen Rothwell, dri-devel On Fri, Jul 5, 2019 at 12:05 PM Masahiro Yamada <yamada.masahiro@socionext.com> wrote: > > On Fri, Jul 5, 2019 at 10:09 AM Randy Dunlap <rdunlap@infradead.org> wrote: > > > > On 7/4/19 3:01 PM, akpm@linux-foundation.org wrote: > > > The mm-of-the-moment snapshot 2019-07-04-15-01 has been uploaded to > > > > > > http://www.ozlabs.org/~akpm/mmotm/ > > > > > > mmotm-readme.txt says > > > > > > README for mm-of-the-moment: > > > > > > http://www.ozlabs.org/~akpm/mmotm/ > > > > I get a lot of these but don't see/know what causes them: > > > > ../scripts/Makefile.build:42: ../drivers/gpu/drm/i915/oa/Makefile: No such file or directory > > make[6]: *** No rule to make target '../drivers/gpu/drm/i915/oa/Makefile'. Stop. > > ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915/oa' failed > > make[5]: *** [drivers/gpu/drm/i915/oa] Error 2 > > ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915' failed > > > > I checked next-20190704 tag. > > I see the empty file > drivers/gpu/drm/i915/oa/Makefile > > Did someone delete it? > I think "obj-y += oa/" in drivers/gpu/drm/i915/Makefile is redundant. -- Best Regards Masahiro Yamada ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 2019-07-05 3:09 ` Masahiro Yamada @ 2019-07-05 3:23 ` Randy Dunlap 2019-07-05 3:44 ` Masahiro Yamada 0 siblings, 1 reply; 12+ messages in thread From: Randy Dunlap @ 2019-07-05 3:23 UTC (permalink / raw) To: Masahiro Yamada Cc: Andrew Morton, Mark Brown, linux-fsdevel, Linux Kernel Mailing List, linux-mm, Linux-Next Mailing List, mhocko, mm-commits, Stephen Rothwell, dri-devel On 7/4/19 8:09 PM, Masahiro Yamada wrote: > On Fri, Jul 5, 2019 at 12:05 PM Masahiro Yamada > <yamada.masahiro@socionext.com> wrote: >> >> On Fri, Jul 5, 2019 at 10:09 AM Randy Dunlap <rdunlap@infradead.org> wrote: >>> >>> On 7/4/19 3:01 PM, akpm@linux-foundation.org wrote: >>>> The mm-of-the-moment snapshot 2019-07-04-15-01 has been uploaded to >>>> >>>> http://www.ozlabs.org/~akpm/mmotm/ >>>> >>>> mmotm-readme.txt says >>>> >>>> README for mm-of-the-moment: >>>> >>>> http://www.ozlabs.org/~akpm/mmotm/ >>> >>> I get a lot of these but don't see/know what causes them: >>> >>> ../scripts/Makefile.build:42: ../drivers/gpu/drm/i915/oa/Makefile: No such file or directory >>> make[6]: *** No rule to make target '../drivers/gpu/drm/i915/oa/Makefile'. Stop. >>> ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915/oa' failed >>> make[5]: *** [drivers/gpu/drm/i915/oa] Error 2 >>> ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915' failed >>> >> >> I checked next-20190704 tag. >> >> I see the empty file >> drivers/gpu/drm/i915/oa/Makefile >> >> Did someone delete it? >> > > > I think "obj-y += oa/" > in drivers/gpu/drm/i915/Makefile > is redundant. Thanks. It seems to be working after deleting that line. -- ~Randy ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 2019-07-05 3:23 ` Randy Dunlap @ 2019-07-05 3:44 ` Masahiro Yamada 2019-07-05 4:09 ` Randy Dunlap 2019-07-31 13:21 ` Jani Nikula 0 siblings, 2 replies; 12+ messages in thread From: Masahiro Yamada @ 2019-07-05 3:44 UTC (permalink / raw) To: Randy Dunlap Cc: Andrew Morton, Mark Brown, linux-fsdevel, Linux Kernel Mailing List, linux-mm, Linux-Next Mailing List, mhocko, mm-commits, Stephen Rothwell, dri-devel On Fri, Jul 5, 2019 at 12:23 PM Randy Dunlap <rdunlap@infradead.org> wrote: > > On 7/4/19 8:09 PM, Masahiro Yamada wrote: > > On Fri, Jul 5, 2019 at 12:05 PM Masahiro Yamada > > <yamada.masahiro@socionext.com> wrote: > >> > >> On Fri, Jul 5, 2019 at 10:09 AM Randy Dunlap <rdunlap@infradead.org> wrote: > >>> > >>> On 7/4/19 3:01 PM, akpm@linux-foundation.org wrote: > >>>> The mm-of-the-moment snapshot 2019-07-04-15-01 has been uploaded to > >>>> > >>>> http://www.ozlabs.org/~akpm/mmotm/ > >>>> > >>>> mmotm-readme.txt says > >>>> > >>>> README for mm-of-the-moment: > >>>> > >>>> http://www.ozlabs.org/~akpm/mmotm/ > >>> > >>> I get a lot of these but don't see/know what causes them: > >>> > >>> ../scripts/Makefile.build:42: ../drivers/gpu/drm/i915/oa/Makefile: No such file or directory > >>> make[6]: *** No rule to make target '../drivers/gpu/drm/i915/oa/Makefile'. Stop. > >>> ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915/oa' failed > >>> make[5]: *** [drivers/gpu/drm/i915/oa] Error 2 > >>> ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915' failed > >>> > >> > >> I checked next-20190704 tag. > >> > >> I see the empty file > >> drivers/gpu/drm/i915/oa/Makefile > >> > >> Did someone delete it? > >> > > > > > > I think "obj-y += oa/" > > in drivers/gpu/drm/i915/Makefile > > is redundant. > > Thanks. It seems to be working after deleting that line. Could you check whether or not drivers/gpu/drm/i915/oa/Makefile exists in your source tree? Your build log says it was missing. But, commit 5ed7a0cf3394 ("drm/i915: Move OA files to separate folder") added it. (It is just an empty file) I am just wondering why. -- Best Regards Masahiro Yamada ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 2019-07-05 3:44 ` Masahiro Yamada @ 2019-07-05 4:09 ` Randy Dunlap 2019-07-31 13:21 ` Jani Nikula 1 sibling, 0 replies; 12+ messages in thread From: Randy Dunlap @ 2019-07-05 4:09 UTC (permalink / raw) To: Masahiro Yamada Cc: Andrew Morton, Mark Brown, linux-fsdevel, Linux Kernel Mailing List, linux-mm, Linux-Next Mailing List, mhocko, mm-commits, Stephen Rothwell, dri-devel On 7/4/19 8:44 PM, Masahiro Yamada wrote: > On Fri, Jul 5, 2019 at 12:23 PM Randy Dunlap <rdunlap@infradead.org> wrote: >> >> On 7/4/19 8:09 PM, Masahiro Yamada wrote: >>> On Fri, Jul 5, 2019 at 12:05 PM Masahiro Yamada >>> <yamada.masahiro@socionext.com> wrote: >>>> >>>> On Fri, Jul 5, 2019 at 10:09 AM Randy Dunlap <rdunlap@infradead.org> wrote: >>>>> >>>>> On 7/4/19 3:01 PM, akpm@linux-foundation.org wrote: >>>>>> The mm-of-the-moment snapshot 2019-07-04-15-01 has been uploaded to >>>>>> >>>>>> http://www.ozlabs.org/~akpm/mmotm/ >>>>>> >>>>>> mmotm-readme.txt says >>>>>> >>>>>> README for mm-of-the-moment: >>>>>> >>>>>> http://www.ozlabs.org/~akpm/mmotm/ >>>>> >>>>> I get a lot of these but don't see/know what causes them: >>>>> >>>>> ../scripts/Makefile.build:42: ../drivers/gpu/drm/i915/oa/Makefile: No such file or directory >>>>> make[6]: *** No rule to make target '../drivers/gpu/drm/i915/oa/Makefile'. Stop. >>>>> ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915/oa' failed >>>>> make[5]: *** [drivers/gpu/drm/i915/oa] Error 2 >>>>> ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915' failed >>>>> >>>> >>>> I checked next-20190704 tag. >>>> >>>> I see the empty file >>>> drivers/gpu/drm/i915/oa/Makefile >>>> >>>> Did someone delete it? >>>> >>> >>> >>> I think "obj-y += oa/" >>> in drivers/gpu/drm/i915/Makefile >>> is redundant. >> >> Thanks. It seems to be working after deleting that line. > > > Could you check whether or not > drivers/gpu/drm/i915/oa/Makefile exists in your source tree? It does not. > Your build log says it was missing. > > But, commit 5ed7a0cf3394 ("drm/i915: Move OA files to separate folder") > added it. (It is just an empty file) > > I am just wondering why. I am not using any git tree(s) for this. Just patches. That Makefile is in patch-v5.2-rc7-next-20190704.xz. I don't know how Andrew generates the linux-next.patch file for mmotm, but I don't see that Makefile anywhere in mmotm, although the rest of the i915/oa/ files seems to be there. Maybe diff skips empty files unless told to save them? -- ~Randy ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 2019-07-05 3:44 ` Masahiro Yamada 2019-07-05 4:09 ` Randy Dunlap @ 2019-07-31 13:21 ` Jani Nikula 1 sibling, 0 replies; 12+ messages in thread From: Jani Nikula @ 2019-07-31 13:21 UTC (permalink / raw) To: Masahiro Yamada, Randy Dunlap Cc: Stephen Rothwell, mm-commits, Linux Kernel Mailing List, dri-devel, mhocko, linux-mm, Mark Brown, Linux-Next Mailing List, linux-fsdevel, Andrew Morton On Fri, 05 Jul 2019, Masahiro Yamada <yamada.masahiro@socionext.com> wrote: > On Fri, Jul 5, 2019 at 12:23 PM Randy Dunlap <rdunlap@infradead.org> wrote: >> >> On 7/4/19 8:09 PM, Masahiro Yamada wrote: >> > On Fri, Jul 5, 2019 at 12:05 PM Masahiro Yamada >> > <yamada.masahiro@socionext.com> wrote: >> >> >> >> On Fri, Jul 5, 2019 at 10:09 AM Randy Dunlap <rdunlap@infradead.org> wrote: >> >>> >> >>> On 7/4/19 3:01 PM, akpm@linux-foundation.org wrote: >> >>>> The mm-of-the-moment snapshot 2019-07-04-15-01 has been uploaded to >> >>>> >> >>>> http://www.ozlabs.org/~akpm/mmotm/ >> >>>> >> >>>> mmotm-readme.txt says >> >>>> >> >>>> README for mm-of-the-moment: >> >>>> >> >>>> http://www.ozlabs.org/~akpm/mmotm/ >> >>> >> >>> I get a lot of these but don't see/know what causes them: >> >>> >> >>> ../scripts/Makefile.build:42: ../drivers/gpu/drm/i915/oa/Makefile: No such file or directory >> >>> make[6]: *** No rule to make target '../drivers/gpu/drm/i915/oa/Makefile'. Stop. >> >>> ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915/oa' failed >> >>> make[5]: *** [drivers/gpu/drm/i915/oa] Error 2 >> >>> ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915' failed >> >>> >> >> >> >> I checked next-20190704 tag. >> >> >> >> I see the empty file >> >> drivers/gpu/drm/i915/oa/Makefile >> >> >> >> Did someone delete it? >> >> >> > >> > >> > I think "obj-y += oa/" >> > in drivers/gpu/drm/i915/Makefile >> > is redundant. >> >> Thanks. It seems to be working after deleting that line. > > > Could you check whether or not > drivers/gpu/drm/i915/oa/Makefile exists in your source tree? > > Your build log says it was missing. > > But, commit 5ed7a0cf3394 ("drm/i915: Move OA files to separate folder") > added it. (It is just an empty file) > > I am just wondering why. I've sent patches adding some content, and they'll make their way upstream eventually. I am not sure why the empty file was added originally. Perhaps as a placeholder, seemed benign enough. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 2019-07-05 3:05 ` Masahiro Yamada 2019-07-05 3:09 ` Masahiro Yamada @ 2019-07-05 3:14 ` Stephen Rothwell 2019-07-05 5:09 ` Andrew Morton 1 sibling, 1 reply; 12+ messages in thread From: Stephen Rothwell @ 2019-07-05 3:14 UTC (permalink / raw) To: Masahiro Yamada Cc: mm-commits, DRI, Daniel Vetter, Intel Graphics, Randy Dunlap, Linux Kernel Mailing List, mhocko, linux-mm, Mark Brown, Linux-Next Mailing List, Rodrigo Vivi, linux-fsdevel, Andrew Morton, Michal Wajdeczko [-- Attachment #1.1: Type: text/plain, Size: 985 bytes --] Hi Masahiro, On Fri, 5 Jul 2019 12:05:49 +0900 Masahiro Yamada <yamada.masahiro@socionext.com> wrote: > > On Fri, Jul 5, 2019 at 10:09 AM Randy Dunlap <rdunlap@infradead.org> wrote: > > > > I get a lot of these but don't see/know what causes them: > > > > ../scripts/Makefile.build:42: ../drivers/gpu/drm/i915/oa/Makefile: No such file or directory > > make[6]: *** No rule to make target '../drivers/gpu/drm/i915/oa/Makefile'. Stop. > > ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915/oa' failed > > make[5]: *** [drivers/gpu/drm/i915/oa] Error 2 > > ../scripts/Makefile.build:498: recipe for target 'drivers/gpu/drm/i915' failed > > > > I checked next-20190704 tag. > > I see the empty file > drivers/gpu/drm/i915/oa/Makefile > > Did someone delete it? Commit 5ed7a0cf3394 ("drm/i915: Move OA files to separate folder") from the drm-intel tree seems to have created it as an empty file. -- Cheers, Stephen Rothwell [-- Attachment #1.2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --] [-- Attachment #2: Type: text/plain, Size: 159 bytes --] _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 2019-07-05 3:14 ` Stephen Rothwell @ 2019-07-05 5:09 ` Andrew Morton 2019-07-05 5:22 ` Joe Perches 0 siblings, 1 reply; 12+ messages in thread From: Andrew Morton @ 2019-07-05 5:09 UTC (permalink / raw) To: Stephen Rothwell Cc: mm-commits, DRI, linux-mm, Daniel Vetter, Intel Graphics, Randy Dunlap, Linux Kernel Mailing List, mhocko, Masahiro Yamada, Mark Brown, Linux-Next Mailing List, linux-fsdevel On Fri, 5 Jul 2019 13:14:35 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote: > > I checked next-20190704 tag. > > > > I see the empty file > > drivers/gpu/drm/i915/oa/Makefile > > > > Did someone delete it? > > Commit > > 5ed7a0cf3394 ("drm/i915: Move OA files to separate folder") > > from the drm-intel tree seems to have created it as an empty file. hrm. diff(1) doesn't seem to know how to handle a zero-length file. y:/home/akpm> mkdir foo y:/home/akpm> cd foo y:/home/akpm/foo> touch x y:/home/akpm/foo> diff -uN x y y:/home/akpm/foo> date > x y:/home/akpm/foo> diff -uN x y --- x 2019-07-04 21:58:37.815028211 -0700 +++ y 1969-12-31 16:00:00.000000000 -0800 @@ -1 +0,0 @@ -Thu Jul 4 21:58:37 PDT 2019 So when comparing a zero-length file with a non-existent file, diff produces no output. This'll make things happy. And I guess it should be done to protect all the valuable intellectual property in that file. --- /dev/null +++ a/drivers/gpu/drm/i915/oa/Makefile @@ -0,0 +1 @@ +# SPDX-License-Identifier: GPL-2.0 _ _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 2019-07-05 5:09 ` Andrew Morton @ 2019-07-05 5:22 ` Joe Perches 2019-07-05 5:29 ` Andrew Morton 0 siblings, 1 reply; 12+ messages in thread From: Joe Perches @ 2019-07-05 5:22 UTC (permalink / raw) To: Andrew Morton, Stephen Rothwell Cc: mm-commits, DRI, linux-mm, Daniel Vetter, Intel Graphics, Randy Dunlap, Linux Kernel Mailing List, mhocko, Masahiro Yamada, Mark Brown, Linux-Next Mailing List, Rodrigo Vivi, linux-fsdevel, Michal Wajdeczko On Thu, 2019-07-04 at 22:09 -0700, Andrew Morton wrote: > diff(1) doesn't seem to know how to handle a zero-length file. > > y:/home/akpm> mkdir foo > y:/home/akpm> cd foo > y:/home/akpm/foo> touch x > y:/home/akpm/foo> diff -uN x y > y:/home/akpm/foo> date > x > y:/home/akpm/foo> diff -uN x y > --- x 2019-07-04 21:58:37.815028211 -0700 > +++ y 1969-12-31 16:00:00.000000000 -0800 > @@ -1 +0,0 @@ > -Thu Jul 4 21:58:37 PDT 2019 > > So when comparing a zero-length file with a non-existent file, diff > produces no output. Why use the -N option ? $ diff --help [...] -N, --new-file treat absent files as empty otherwise $ cd $(mktemp -d -p .) $ touch x $ diff -u x y diff: y: No such file or directory _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 2019-07-05 5:22 ` Joe Perches @ 2019-07-05 5:29 ` Andrew Morton 0 siblings, 0 replies; 12+ messages in thread From: Andrew Morton @ 2019-07-05 5:29 UTC (permalink / raw) To: Joe Perches Cc: Stephen Rothwell, Masahiro Yamada, Randy Dunlap, Mark Brown, linux-fsdevel, Linux Kernel Mailing List, linux-mm, Linux-Next Mailing List, mhocko, mm-commits, Michal Wajdeczko, Daniel Vetter, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Intel Graphics, DRI, Chris Wilson On Thu, 04 Jul 2019 22:22:41 -0700 Joe Perches <joe@perches.com> wrote: > > So when comparing a zero-length file with a non-existent file, diff > > produces no output. > > Why use the -N option ? > > $ diff --help > [...] > -N, --new-file treat absent files as empty > > otherwise > > $ cd $(mktemp -d -p .) > $ touch x > $ diff -u x y > diff: y: No such file or directory Without -N diff fails and exits with an error. -N does what's desired as long as the non-missing file isn't empty. ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2019-07-31 13:17 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20190704220152.1bF4q6uyw%akpm@linux-foundation.org>
2019-07-05 1:09 ` mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) Randy Dunlap
2019-07-05 1:19 ` Randy Dunlap
2019-07-05 3:05 ` Masahiro Yamada
2019-07-05 3:09 ` Masahiro Yamada
2019-07-05 3:23 ` Randy Dunlap
2019-07-05 3:44 ` Masahiro Yamada
2019-07-05 4:09 ` Randy Dunlap
2019-07-31 13:21 ` Jani Nikula
2019-07-05 3:14 ` Stephen Rothwell
2019-07-05 5:09 ` Andrew Morton
2019-07-05 5:22 ` Joe Perches
2019-07-05 5:29 ` Andrew Morton
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox