An American Eagle flight was forced to make an emergency landing after smoke was reported in the cockpit.