The O(a^2) contributions to the chiral effective Lagrangian for lattice QCD with Wilson fermions are constructed. The results are generalized to partially quenched QCD with Wilson fermions as well as to the mixed lattice theory with Wilson sea quarks and Ginsparg-Wilson valence quarks.