From patchwork Mon Feb 22 10:51:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Roi Dayan X-Patchwork-Id: 12098349 X-Patchwork-Delegate: dsahern@gmail.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64D22C433E6 for ; Mon, 22 Feb 2021 10:53:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 10C9564E61 for ; Mon, 22 Feb 2021 10:53:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230306AbhBVKwW (ORCPT ); Mon, 22 Feb 2021 05:52:22 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:15692 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbhBVKv6 (ORCPT ); Mon, 22 Feb 2021 05:51:58 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 22 Feb 2021 02:51:17 -0800 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Feb 2021 10:51:17 +0000 Received: from c-236-149-120-125.mtl.labs.mlnx (172.20.145.6) by mail.nvidia.com (172.20.187.10) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 22 Feb 2021 10:51:15 +0000 From: Roi Dayan To: CC: Roi Dayan , Petr Machata , "Stephen Hemminger" Subject: [PATCH iproute2] dcb: Fix compilation warning about reallocarray Date: Mon, 22 Feb 2021 12:51:05 +0200 Message-ID: <20210222105105.10213-1-roid@nvidia.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1613991077; bh=kmZlJZKdCn5DHFFiB64IzqZ1KMy+T/qAdVdbf9020IA=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Type:Content-Transfer-Encoding; b=mzSW2VJWZjpmWJ+sBHwSO2qmlVSKLZA6TTKDF4EyaES+JCuh4UpavpTRrjMqThu3i w0qo4TBIWUPNRDE7qszker0waiC5RwIvDTEtSiRbSEQi9itfbM4PWtGcjoxKHE5joz vxyVsRYcdilubyN1PL50mZ8KV9rXWHWdEk3QFo/Xb6oK/0Noji8JZSzpjH8a3o7JkT 3MABJYstpIjfIV4QMqXA4ZRIrhaYpIRa5AtIG8qiGxm/AzUfIDA5e8A/i84hYrFYwH WBVoLpjg2LPwVR+tFDFuOboagc6/oSD3GV8+YNGPed9cbjyFvPGBKeUlQK0kF8KDq3 g3IhiROfiio/A== Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com To use reallocarray we need to add bsd/stdlib.h. dcb_app.c: In function ‘dcb_app_table_push’: dcb_app.c:68:25: warning: implicit declaration of function ‘reallocarray’; did you mean ‘realloc’? Fixes: 8e9bed1493f5 ("dcb: Add a subtool for the DCB APP object") Signed-off-by: Roi Dayan --- dcb/dcb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dcb/dcb.c b/dcb/dcb.c index 6640deef5688..32896c4d5732 100644 --- a/dcb/dcb.c +++ b/dcb/dcb.c @@ -5,6 +5,7 @@ #include #include #include +#include #include "dcb.h" #include "mnl_utils.h"