What counts for earned income for Roth purposes?

I'm getting a warning saying I overpaid my Roth because I didn't have enough "earned income".  I pay myself a small salary for a SubS corp and get a K1.    When I look at the IRS document

it says that it's Line 11 from my 1040, not "earned income".  Does the K1 income count?

This has been the same situation for several years and I've never had this problem.