title: enum, unknown type name when typedefd in separate header
body: <p>I have what I feel is a very basic issue but for some reason I can't seem to resolve it. I am getting the following errors:</p>
  
  <blockquote>
    <p>drivers/cpufreq/AI_gov.h:37:2: error: unknown type name 'phase_state'
    drivers/cpufreq/AI_gov.h:38:2: error: unknown type name 'phase_state'</p>
  </blockquote>
  
  <p>now in my file <strong>AI_gov_phases.h</strong> I have the following typdef enum:</p>
  
  <pre><code>typedef enum{
      response,
      animation,
      idle,
      load
  } phase_state;
  </code></pre>
  
  <p>now in the file that is throwing the error <strong>AI_gov.h</strong> I have:</p>
  
  <pre><code>#include "AI_gov_phases.h"
  
  ....
  
  struct AI_gov_info{
      struct AI_gov_cur_HW* hardware;
  
      struct AI_gov_profile* profile;
  
      phase_state phase;
      phase_state prev_phase;
  };
  </code></pre>
  
  <p>typedef enums are definitely one of my weaker areas so any help would be appreciated.</p>