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

Andy Shevchenko <[email protected]>
Newsgroups gmane.linux.kernel.lsm,gmane.linux.kernel.pci,gmane.linux.kernel,gmane.linux.usb.general,gmane.linux.drivers.platform.x86.devel
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.