Re: [PATCH v5 1/2] treewide: Add a flag to detect the Apple T2 chip

Andy Shevchenko <[email protected]> Fri, 7 Aug 2026 04:31:13 +0300
Newsgroups org.kernel.vger.linux-usb,org.kernel.vger.keyrings,org.kernel.vger.linux-integrity,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci,org.kernel.vger.linux-security-module,org.kernel.vger.platform-driver-x86
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
On Mon, Jul 27, 2026 at 05:58:47PM -0700, Borislav Petkov wrote:
> On Mon, Jul 27, 2026 at 05:18:02PM -0400, Atharva Tiwari wrote:
> > Add a flag to detect Apple T2 chips on Intel Macs.
> > Cache the result to avoid repeated checks. That will
> > be used in upcoming patches.

Why don't you use match_string()?

...

> >  bool x86_apple_machine;
> >  EXPORT_SYMBOL(x86_apple_machine);
> >  
> > +bool has_apple_t2_chip;
> > +EXPORT_SYMBOL(has_apple_t2_chip);
> 
> I'm guessing this is parrotting the non-GPL export of x86_apple_machine from
> 
>   630b3aff8a51 ("treewide: Consolidate Apple DMI checks")
> 
> Lemme add those folks and ask why aren't those exports GPL only?

I don't remember the details, but brief grepping shows no impediments (from my
p.o.v.) to make them GPL. Maybe Lukas knows more?

-- 
With Best Regards,
Andy Shevchenko