RE: [PATCH v5 6/8] x86/resctrl: Sub NUMA Cluster detection and enable

From: Luck, Tony
Date: Tue Sep 26 2023 - 16:03:11 EST


>>>> +#include <linux/mod_devicetable.h>
>>>
>>> I didn't see the need for this include.
>>
>> struct x86_cpu_id is defined in this #include file.
>
> Actually, the file <asm/cpu_device_id.h> already includes the above file.

It does today. Will it include it next week when somebody has to
re-arrange things to resolve some #include dependency?

I thought there was a guideline somewhere that says to #include
the files that define the things you use. Not just rely on chains of
#includes. But some simple grep's haven't found that written in
Documentation/*

-Tony