What role did Richard Stallman play in the development of Linux?

On a technical level? Nothing directly. In fact, as time went on it seemed like Richard Stallman seems to really dislike Linux.

Some claim that Linux wouldn't exist without GNU, which was RMS' doing, but in all honesty Linux could still have easily existed without it. It's nnot like GCC was the only C compiler in existence in 1991.