Origin: https://github.com/chunkeey/carl9170fw/pull/8 From: Bastian Germann Date: Thu, 30 Jul 2026 19:10:44 +0200 Subject: [PATCH 1/7] Use min_t over MIN This allows us to drop the sys/param.h include. Signed-off-by: Bastian Germann --- carlfw/src/hostif.c | 2 +- include/linux/types.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/carlfw/src/hostif.c b/carlfw/src/hostif.c index 06726db..95e8e70 100644 --- a/carlfw/src/hostif.c +++ b/carlfw/src/hostif.c @@ -240,7 +240,7 @@ void handle_cmd(struct carl9170_rsp *resp) case CARL9170_CMD_WREGB: resp->hdr.len = 0; - for (i = 0; i < MIN(cmd->wregb.count, cmd->hdr.len - 8); i++) + for (i = 0; i < min_t(__u32, cmd->wregb.count, cmd->hdr.len - 8); i++) setb(cmd->wregb.addr + i, cmd->wregb.val[i]); break; diff --git a/include/linux/types.h b/include/linux/types.h index 82bf905..528d207 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -20,7 +20,6 @@ #include #include #include -#include #include #if BYTE_ORDER == BIG_ENDIAN