The distance from the rear of an M-mount lens to the film plane is much smaller than that of the distance between the rear of an EF-mount lens to the film plane. This means that an M lens would have to be recessed well into the body of an EOS camera in order to achieve infinity focus. Not that it cannot be done, but in general, not practical.