Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43C5BC25B06 for ; Sat, 6 Aug 2022 08:27:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241718AbiHFI1b (ORCPT ); Sat, 6 Aug 2022 04:27:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbiHFI1a (ORCPT ); Sat, 6 Aug 2022 04:27:30 -0400 Received: from mail1.systemli.org (mail1.systemli.org [93.190.126.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 510F01403A for ; Sat, 6 Aug 2022 01:27:29 -0700 (PDT) From: Nick Hainke DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=systemli.org; s=default; t=1659773974; bh=EAriawOA4lz7ohIRct2NpDLexxoJzVkbnojxJWSFc3U=; h=From:To:Cc:Subject:Date:From; b=g6wdFN90dBayNuTi3bS8ViJqh1IV3x9x2HjIakqfYQdX/+4UaqyvI25IM6pQ/y8/B HVQ5HAazVKurO/jbSaeihgwPzREkPH72ATOZiROgW2r6LP6d/aebtl8by/JDZ4fNBj YKRHAJtHzXThtdwaDZsV3cLxdHSL8BsWQkOR5s3KugaYFca6hsCZaOnT4MVufS93j5 jBnSARcZqXBgaafomgBr8GIGVPV7butd6Lbbq+VZ/TqSUcMLPUTHCbA3eQoFy0n3gE MhNfq7l/ooEBdoKla5D3SjX7VOkFR7F3x+4GMZESmK6AYLBdftP4sidmXZgeX3BgaC ET0IuLF+ns0uA== To: netdev@vger.kernel.org Cc: Nick Hainke Subject: [PATCH] ipstats: Define MIN function to fix undefined references Date: Sat, 6 Aug 2022 10:18:38 +0200 Message-Id: <20220806081838.215827-1-vincent@systemli.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes errors in the form of: in function `ipstats_show_64': :(.text+0x4e30): undefined reference to `MIN' Signed-off-by: Nick Hainke --- ip/ipstats.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ip/ipstats.c b/ip/ipstats.c index 5cdd15ae..2f500fc8 100644 --- a/ip/ipstats.c +++ b/ip/ipstats.c @@ -6,6 +6,10 @@ #include "utils.h" #include "ip_common.h" +#ifndef MIN +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif + struct ipstats_stat_dump_filters { /* mask[0] filters outer attributes. Then individual nests have their * filtering mask at the index of the nested attribute. -- 2.37.1