public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* cris: odd include in arch/cris/boot/compressed/misc.c
@ 2012-06-23  1:00 Paul Bolle
  2012-06-23 20:46 ` Jesper Nilsson
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Bolle @ 2012-06-23  1:00 UTC (permalink / raw)
  To: Mikael Starvik, Jesper Nilsson; +Cc: linux-cris-kernel, linux-kernel

Mikael, Jesper,

0) Currently line 123 of arch/cris/boot/compressed/misc.c reads:
    #include "../../../../../lib/inflate.c"

git blame tells me that line has read that way since commit
51533b615e605d86154ec1b4e585c8ca1b0b15b7 ("[...] CRIS update: new
subarchitecture v32"), which predates release v2.6.13.

1) When I try to jump to lib/inflate.c via that line in my $EDITOR, I
see an error and nothing happens. When I check the depth, in
directories, at which misc.c lives, I can't blame my $EDITOR.

2) And indeed, when I edit that line to read:
    #include "../../../../lib/inflate.c"

my $EDITOR does correctly jump to lib/inflate.c. 

3) This can be trivially fixed, and I'm happy to submit that trivial
patch. But I do wonder what the compilers for cris know that my $EDITOR
and x86 compiler doesn't. (I don't have a compiler for cris at hand.)
Because, if I edit the comparable file for x86 to have a similar include
look that way and try to build a kernel I get:

[...]
  CC      arch/x86/boot/compressed/misc.o
arch/x86/boot/compressed/misc.c:131:51: fatal error: ../../../../../lib/decompress_inflate.c: No such file or directory
compilation terminated.
make[2]: *** [arch/x86/boot/compressed/misc.o] Error 1
make[1]: *** [arch/x86/boot/compressed/vmlinux] Error 2
make: *** [bzImage] Error 2

4) What's going on here?


Paul Bolle


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-23 20:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-23  1:00 cris: odd include in arch/cris/boot/compressed/misc.c Paul Bolle
2012-06-23 20:46 ` Jesper Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox