HomeFreeBSD

LinuxKPI: add __counted_by() and __nonstring

Description

LinuxKPI: add counted_by() and nonstring

Add checks for counted_by(_x) and nonstring as and depending
on compiler support enable the attribute/feature.

This is needed to make mtk76 and ath1xk drivers compile.

Sposnored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: emaste, dim
Differential Revision: https://reviews.freebsd.org/D44587

Details

Provenance
bzAuthored on Apr 2 2024, 9:41 AM
Reviewer
emaste
Differential Revision
D44587: LinuxKPI: add __counted_by() and __nonstring
Parents
rG3f115b864b1f: git/mfc-candidates.sh: allow comments in exclude file
Branches
Unknown
Tags
Unknown