In this particular case it is not viral. All MIT-licensed code can be "licensed as a whole at no charge to all third parties under" GPL 2. The point of the MIT license is that it can be freely relicensed.

You actually have more rights with that file than with the others; the GPL doesn't restrict non-GPL'd code distributed with it, it requires that that code be licensed in a way that allows it to be distributed under GPL 2. For example, I myself can take this code and redistribute the entire thing under GPL 2 without an exception for ./kernel/mem.c (as long as I include any acknowledgement required by MIT, such as a copy of the MIT license and a copyright notice.)

You're overcomplicating things and (maybe accidentally) spreading FUD. MIT was specifically designed to be compatible with anything from copyleft to proprietary.

MIT is relicensed as GPL, under the GPL 2.0. By including it as part of the whole, the whole becomes GPL.

And... It is surprising to me, that anyone can think otherwise, 2 decades on from D-Link [0].

> The GPL grants anyone who enters into such contract with the licensor the right to copy, distribute and modify the software, on the condition that the software is again distributed under the very conditions of the GPL

Which is something you start to say, and then say it isn't the case.

The whole just becomes GPL v2. That's the virality.

[0] https://web.archive.org/web/20130426055334/http://www.jbb.de...