Compounds of the formula I:
or pharmaceutically acceptable salts thereof,
wherein m, A, B, C, R
1
, R
2
, R
3
, R
4
and R
5
are as defined herein. Also disclosed are methods of making the compounds and using the compounds for treatment of inflammatory diseases such as arthritis.