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

(cherry picked from commit 07c7c41ca1e31c20c2e2d8fb68c148f521831e4d)

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
rG18a9913f9ff0: LinuxKPI: Move linux/minmax.h content out of linux/kernel.h
Branches
Unknown
Tags
Unknown