c++ – warning: ‘struct task_struct’ “Declared inside parameter list will not be visible outside of this definition or declaration”

I have the following piece of code:

File sched.h

   #include <stats.h>
   truct task_struct {
       ...
       struct stats stat;
   };

File stats.h*

   #include <sched.h>
   struct stats
   {
   ...
   };

   void initStats (struct task_struct* tsk);

When I try to compile it gives me the following warning

warning: ‘struct task_struct’ declared inside parameter list will not be visible outside of this definition or declaration
17 | void initStats (struct task_struct* tsk);

I have seen similar questions posted, but I have not been able to fix the problem. I was wondering if the problem was because both files include each other. Any help would be appreciated : ).