Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/)
       [not found]   ` <CAK7LNAQc1xYoet1o8HJVGKuonUV40MZGpK7eHLyUmqet50djLw@mail.gmail.com>
@ 2019-07-05  3:14     ` Stephen Rothwell
  2019-07-05  5:09       ` Andrew Morton
  0 siblings, 1 reply; 4+ 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] 4+ messages in thread

* Re: mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/)
  2019-07-05  3:14     ` mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) Stephen Rothwell
@ 2019-07-05  5:09       ` Andrew Morton
  2019-07-05  5:22         ` Joe Perches
  0 siblings, 1 reply; 4+ 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] 4+ 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; 4+ 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] 4+ 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; 4+ 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] 4+ messages in thread

end of thread, other threads:[~2019-07-05  5:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20190704220152.1bF4q6uyw%akpm@linux-foundation.org>
     [not found] ` <80bf2204-558a-6d3f-c493-bf17b891fc8a@infradead.org>
     [not found]   ` <CAK7LNAQc1xYoet1o8HJVGKuonUV40MZGpK7eHLyUmqet50djLw@mail.gmail.com>
2019-07-05  3:14     ` mmotm 2019-07-04-15-01 uploaded (gpu/drm/i915/oa/) 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