There are no rules against increasing the displacement of an engine. There is no way a smog shop can tell, either.