From patchwork Mon Feb 22 12:09:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Roi Dayan X-Patchwork-Id: 386080 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 B06B8C433DB for ; Mon, 22 Feb 2021 12:10:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5C70A64E5C for ; Mon, 22 Feb 2021 12:10:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbhBVMKq (ORCPT ); Mon, 22 Feb 2021 07:10:46 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:17050 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbhBVMKf (ORCPT ); Mon, 22 Feb 2021 07:10:35 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 22 Feb 2021 04:09:53 -0800 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 22 Feb 2021 12:09:52 +0000 Received: from c-236-149-120-125.mtl.labs.mlnx (172.20.145.6) by mail.nvidia.com (172.20.187.18) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 22 Feb 2021 12:09:51 +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 14:09:43 +0200 Message-ID: <20210222120943.2035-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=1613995793; bh=kmZlJZKdCn5DHFFiB64IzqZ1KMy+T/qAdVdbf9020IA=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Type:Content-Transfer-Encoding; b=JjDDCWWYRnkCrwQFLCkeCk7JODZ3l8B9R+KOO0clnWUWJ+8/T+5KoBMRmC5u2EW2l WOUpF3j+6VNALsKazpBv6PFHzcN36pc805sAvOUn9P7On1tLluLQdKWJNE4aEQVZ4B xEdC3Vtu5BMAsbxCltIXUg7zAnWNUx8D945aN22rdeXvPKvIU2BdsOVds+QeRugvZy 6OeRJM3Kif4Agp2xsnl4IlPwPssjjwsAZ9oIaPcrapTURrbOvohf2SO+ayZ7HBWzZF siFN4hmZoL8yXB1AwnlgPMEH5mZVfNEkvli7F9lFniN5F8e00DMlv2el5iUj1Cslyp wn83B4O0N9Qng== Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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"