Functional linear regression analysis for longitudinal data