HomeFreeBSD

LinuxKPI: Add min_not_zero() to linux/minmax.h

Description

LinuxKPI: Add min_not_zero() to linux/minmax.h

It returns the minimum that is not zero, except both equals to zero.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Reviewed by: bz, emaste, ssaxena
Differential Revision: https://reviews.freebsd.org/D45450
Differential Revision: https://reviews.freebsd.org/D45451

Details

Provenance
wulfAuthored on Jun 6 2024, 8:42 PM
Reviewer
bz
Differential Revision
D45450: bnxt_re: Define min_not_zero macro only if it is not defined yet.
Parents
rGf79474c4e3ee: LinuxKPI: Move linux/minmax.h content out of linux/kernel.h
Branches
Unknown
Tags
Unknown