From patchwork Thu Sep 5 09:32:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Ostruszka X-Patchwork-Id: 58625 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1127F1EDA6; Thu, 5 Sep 2019 11:32:42 +0200 (CEST) Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by dpdk.org (Postfix) with ESMTP id 385931ED83 for ; Thu, 5 Sep 2019 11:32:41 +0200 (CEST) Received: by mail-lj1-f195.google.com with SMTP id a4so1696834ljk.8 for ; Thu, 05 Sep 2019 02:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=3TOn5q3G+rvZYLkasOvSjCOSrQOB7la3DuV7+9vzRTc=; b=XlMRlcc1m7j/UCLuc2tb0AYDLUsX/9U97lyGCeBdV/56RACU4JSh0evAOJVuUO4YBJ omMM7EAtMXjH/6Uk/+BXAbV/3CQjqzdwII1uhCTKWR8q4NGz8UUsfktjJoKIBuWS2pTN DhEPAH2XctC3WNbwYJSzYAIqVHHE5nhs43ohKs7XiJ3Ewg6j4Au0q7dyIyeUR3tZB5cw vkkk7wjY3o/qm6CzZ0Ko4chtd8Hcf7zletuuXprrWZ1bAFGomWmxYfVK5VNkDAHmybOP 9OG9GKLQKTO4VN0e/cThZH/yVttuQLI1EHnFwe0nbIyYVkHaWFJh5o+uk9lpG04JvOkX x/hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=3TOn5q3G+rvZYLkasOvSjCOSrQOB7la3DuV7+9vzRTc=; b=X9vkvmeQlV22eCGoHte902RsGb5gpqlkilTO4lpSB3KQNal5/eQQZJOMs+Fr6laaja lk6cF0iZ0kv23gg6i+HC40bQGU/k3mgN0hOp6hYIOFzlHW4jDm2L9k2+5N+Gmv0SqnY4 3PWjO+6/WYk15tIPxq29DLUuMJcTF7ENQfCtYonO/TCrsQpJkEvrn19BCpsntoxVDGas Cgc1ZwMiqwHsNECMza8d+t3LYRm6c81vzayMn8WGpRWJAk102aoBSULJdXOTOqUWBLiV mJ5wOdUq5/fttgJTDadXWP3tQYsCgXXlrF25MSRItKKSaS55HZ3LnURqcyf8eenaL+3O 3mqQ== X-Gm-Message-State: APjAAAUoXZqSgiSW02JJiQlMIViKf2cCO3x3qh2tioSlD/DrJYGrvAqF WttSo4aB8VfJ1ImpVILEg/PGnzQ0H6z/5Q== X-Google-Smtp-Source: APXvYqx0HHvp7bRh4zkszppmSFGj/8aMbSMcGy069/W+I1ou0ZrNOMjH0n+YC9QYnF9k+t1GI4IXgQ== X-Received: by 2002:a2e:5c45:: with SMTP id q66mr1330194ljb.197.1567675960549; Thu, 05 Sep 2019 02:32:40 -0700 (PDT) Received: from localhost.localdomain (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.googlemail.com with ESMTPSA id b25sm363060lfa.90.2019.09.05.02.32.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 02:32:40 -0700 (PDT) From: Andrzej Ostruszka To: dev@dpdk.org Date: Thu, 5 Sep 2019 11:32:29 +0200 Message-Id: <20190905093239.27187-1-amo@semihalf.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH 00/10] Add an option to use LTO for DPDK build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" This patch series adds an option to make use of link time optimization (if compiler has support for it). It is split as follows: - 1st patch (build) is the enablement - remaining patches are fixes for the warnings produced by the compiler and they are split by directory/subsystem so their maintainers can easily find and verify the changes - please note that there are two groups: * errors (or possible errors) - with title "fix possible use ..." * false positives - warnings that _I_ think are not valid and the changes are made only to silence the compiler. Andrzej Ostruszka (10): build: add an option to enable LTO build eventdev: fix possible use of uninitialized var app/eventdev: fix maybe-uninitialized warnings for LTO build event/octeontx2: fix maybe-uninitialized warnings for LTO build app/test: fix maybe-uninitialized warnings for LTO build net/dpaa2: fix possible use of uninitialized vars net/e1000: fix maybe-uninitialized warnings for LTO build net/i40e: fix maybe-uninitialized warnings for LTO build net/ifc: fix maybe-uninitialized warnings for LTO build net/qede: fix maybe-uninitialized warnings for LTO build .travis.yml | 7 ++++ app/test-eventdev/test_perf_common.c | 2 +- app/test-eventdev/test_pipeline_common.c | 4 +-- app/test/test_hash_readwrite.c | 2 +- app/test/test_link_bonding_mode4.c | 6 ++-- app/test/test_memzone.c | 3 +- config/common_base | 5 +++ config/meson.build | 9 +++++ doc/guides/prog_guide/lto.rst | 36 +++++++++++++++++++ doc/guides/rel_notes/release_19_11.rst | 8 +++++ drivers/event/octeontx2/otx2_tim_worker.h | 2 +- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 1 + drivers/net/dpaa2/mc/dpkg.c | 2 +- drivers/net/dpaa2/mc/dpni.c | 9 +++-- drivers/net/e1000/base/e1000_82543.c | 2 +- drivers/net/e1000/base/e1000_ich8lan.c | 2 +- drivers/net/e1000/base/e1000_phy.c | 2 +- drivers/net/i40e/i40e_ethdev.c | 2 +- drivers/net/ifc/ifcvf_vdpa.c | 14 +++++--- drivers/net/qede/base/ecore_mcp.c | 13 +++---- lib/librte_eventdev/rte_event_timer_adapter.c | 8 ++--- meson_options.txt | 2 ++ mk/toolchain/clang/rte.toolchain-compat.mk | 4 +++ mk/toolchain/clang/rte.vars.mk | 8 +++++ mk/toolchain/gcc/rte.toolchain-compat.mk | 4 +++ mk/toolchain/gcc/rte.vars.mk | 12 +++++++ mk/toolchain/icc/rte.vars.mk | 8 +++++ 27 files changed, 146 insertions(+), 31 deletions(-) create mode 100644 doc/guides/prog_guide/lto.rst