Re: [PATCH 1/2] tpm: Rename tpm.c to tpm-interface.c

From: Joe Perches
Date: Sun Oct 06 2013 - 15:53:49 EST


On Sun, 2013-10-06 at 13:38 -0600, Jason Gunthorpe wrote:
> This is preparation for making the tpm module multi-file. kbuild does
> not like having a .c file with the same name as a module. We wish to
> keep the tpm module name so that userspace doesn't see this change.

If that's true, and I don't believe it is,
then Kbuild should be fixed instead.

There are a lot of examples of .c files named
the same as the directory they reside in.

For example:

drivers/net/ethernet/myricom/myri10ge/myri10ge.ko

$ find drivers -type d | while read file ; do if [ -f $file/$(basename $file).c ] ; then echo $file ; fi ; done


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/