From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 928BEA034F; Mon, 11 Oct 2021 19:55:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55663410EF; Mon, 11 Oct 2021 19:55:40 +0200 (CEST) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) by mails.dpdk.org (Postfix) with ESMTP id 0A721410E8 for ; Mon, 11 Oct 2021 19:55:39 +0200 (CEST) Received: by mail-io1-f44.google.com with SMTP id n7so11928583iod.0 for ; Mon, 11 Oct 2021 10:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xiM2h0tZSVwhpykTn32VIC+Q/41gzSfmirT8PkPxssI=; b=e5zMoPFyZqAE5ZP8O7Y18hbtUnBOERF+gE1H3a62tTDQPSaIgKxtE6x38uMtPoJIqf PL01GA8HctvgPdzXsoQcgbCUDv7u3Hj5l53n0ni8wwBkmh6LtUT4V8pZWjbSptrc+ASc Va2tMpfb8Jqc2eusQjWwv+KSxQZVgXgyyGixY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xiM2h0tZSVwhpykTn32VIC+Q/41gzSfmirT8PkPxssI=; b=1ZK64fE2QQAutKR26BsjaOhEFEvH5jHRdq80QAE0XU3SgS2+TeLRz5Vy9+AAg3/Btj RWVge14EAKAswo54O/VLeLHJbK37QWiUEuwKmh23csSX8vl/r3ShVZ19ouyjFf0gTPQK DtzSgsTtDM4+4sgwcKLuq4KyXzZUV4yHnNMPYt165TWk381nsuR3yQ1lLDJZdOhVcMPN qR81K2uKZ6kR1G0hSTWa15yhY/4BdxVUWSc8EuHFyULc696QwOrsmikhQ0Mk+Wfi9M4r vccL1SEnl6i7EcRoI38FXPNiIm0lLdfUTah8ATF2d4p0WScxxX7/1HNlMcOXEitftBFU dLuQ== X-Gm-Message-State: AOAM530mBwAzom83OjpYCFWK4I7eFCm7P6Twn3z+WMsscIRkNTYGfKd+ uPWNBAt7deLWSjvA+kcBFG62SNQA+yGEkIO10gH8yFhY4qI= X-Google-Smtp-Source: ABdhPJw6C3VLownfFKfT78zAO2HpII1HCZRPBn3Au+/bvYsi4PqVH1j2frVCwL0pCQ9Jrk4RscFYU/yzevPz6muIIkY= X-Received: by 2002:a6b:c803:: with SMTP id y3mr20504052iof.179.1633974938163; Mon, 11 Oct 2021 10:55:38 -0700 (PDT) MIME-Version: 1.0 References: <20211010040755.3882-1-ajit.khaparde@broadcom.com> In-Reply-To: <20211010040755.3882-1-ajit.khaparde@broadcom.com> From: Ajit Khaparde Date: Mon, 11 Oct 2021 10:55:22 -0700 Message-ID: To: dpdk-dev Cc: Shahaji Bhosle , Ferruh Yigit Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000c6dd8d05ce176f0f" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH] net/bnxt: fix clang compiler warnings X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" --000000000000c6dd8d05ce176f0f Content-Type: text/plain; charset="UTF-8" On Sat, Oct 9, 2021 at 9:07 PM Ajit Khaparde wrote: > > From: Shahaji Bhosle > > Fix an error reported during CLANG compilation. > > -Wtautological-constant-out-of-range-compare for enums > > $ export CC=clang > $ meson --werror --buildtype=debugoptimized build && ninja-build -C build > " > [..] > ../../root/dpdk/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c:140:18: error: comparison of constant 2147483648 with expression of type 'const enum rte_flow_item_type' is always false [-Werror,-Wtautological-constant-out-of-range-compare] > if (item->type >= (uint32_t) > ~~~~~~~~~~ ^ ~~~~~~~~~~ > ../../root/dpdk/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c:142:19: error: comparison of constant 2147483650 with expression of type 'const enum rte_flow_item_type' is always false [-Werror,-Wtautological-constant-out-of-range-compare] > if (item->type >= > ~~~~~~~~~~ ^ > ../../root/dpdk/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c:188:25: error: comparison of constant 2147483648 with expression of type 'const enum rte_flow_action_type' is always false [-Werror,-Wtautological-constant-out-of-range-compare] > if (action_item->type >= > ~~~~~~~~~~~~~~~~~ ^ > ../../root/dpdk/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c:190:26: error: comparison of constant 2147483650 with expression of type 'const enum rte_flow_action_type' is always false [-Werror,-Wtautological-constant-out-of-range-compare] > if (action_item->type >= > ~~~~~~~~~~~~~~~~~ ^ > 4 errors generated. > " > > Bugzilla ID: 821 > Fixes: bdf4a3c6316b ("net/bnxt: support tunnel offload") > > Signed-off-by: Shahaji Bhosle > Reviewed-by: Ajit Khaparde Patch applied to dpdk-next-net-brcm. Thanks --000000000000c6dd8d05ce176f0f--