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 07F5A4601A; Mon, 20 Jan 2025 19:06:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87210410E7; Mon, 20 Jan 2025 19:06:01 +0100 (CET) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id C638040A77 for ; Mon, 20 Jan 2025 19:06:00 +0100 (CET) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-21669fd5c7cso83007785ad.3 for ; Mon, 20 Jan 2025 10:06:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1737396360; x=1738001160; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UGvh2ZbiVWvELlwJaEaNjKwUvJxyZuGpta/KTQDT9sw=; b=SGKfUnw20EFXCkwDpkyhgKz0oRi1fKqoxPRGPBBhpRVPBjf+mtFJ4RtXTaBSe4tjLC AVYZrmI6Xu3glf43SIhBKsoRC2WYvskHmTvoK3W75xmCG3YMBJkeHmFH+tkAxAVGYn2L XdNqnBJ0LtwEjDh7EouVNMAqwEZU+wZHpH8yk1a8G/OKmOAfnDh2nmVQD9WIYKYXzrae HwL6s7S4LQ8E+eFvxxlVjZBMVKZuTqYfnyGAt05eSQSB/44f357R5HeHCUeuA7Ost2fH ykfFWkQZxU+SNZ4iGht5bF3HXmV2KeLsdGAAFVxqKoSUiSNit5cZwi3MZHggXUNPqbqZ LC7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737396360; x=1738001160; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UGvh2ZbiVWvELlwJaEaNjKwUvJxyZuGpta/KTQDT9sw=; b=WwVekgmROUVIJKJ1AUon/kkqUx9k8R+9Xsf0HDLpl3wxE8lJMwPcrfw7hM9Is33Fkd yjBhzsVfe0XRmC8gNVJpPwtnsSpmihp78/fP7SpmUXTtiJCeBXJM3IVJ7sT3AVbQU7i7 eak7fXtVY4csw5QsqJ5V3N7fh3W1WWaloGAgMYb8/A++b+QvQ2kKWMtbLKdQDSZE7wep PubdLzs95sfhqFUQBAaWcGcs1AnXgFQpaDI00oNqUDNlOA7CKoky7mmsIDa62sBJF7qS u4oyI0qEogKmqS4bQ+CA1fi1UzfJHf6jy6mahzG1gE/RO2WWEULEsg3r+bOWHuK4WGbm V3zw== X-Gm-Message-State: AOJu0Yx4KclOy+Hw+vDJOgZnoi+HSsXuPqbFnPZHpZhQxQUo+JF14RHw 5OpWf1LY4YMcFdX3uvfNeRk44wjBD8k/7+bJHwX/djBO/kRAWS6S4X748AbB1taELpaYkek/U2a A X-Gm-Gg: ASbGncvcclh65DRCq5+P/4pU/nO1XGmOG40+Q2givKZZjsJpE7R/ie7iTYgt7Q2JI8k SVm0WBAg+UOe2j8+71a2GnU3OEJ+6IPDGPXpjod1nB5Ns1GwhvHf930PR05ikaIMGDZag0rI+5Z MySYyOeDJ7o0nAYfQMUFpMpXztyUBU2MhIYYayVBY5q/TDQ0MyKdftXo2f7xFuvspX9fO+JdX+V fjas1ui4zHdv+3VT+evpB6ksF1a6f3YVyeidt4HAgqOvWZ7Lo2SzqrY/tOtYXbc/EX8FQT2Y0Uf 2i+ZEpEXKVfyL4p00fU09pxeac0QE4zuIBQSIhfFM6IQLoU= X-Google-Smtp-Source: AGHT+IFK5KLF8wRTTL5TeLoWgVrlPw+Y9jOi8qofKitEFaOCEOi2NsNZl7sAGNIipelJnLMigX/cbA== X-Received: by 2002:a05:6a00:4c90:b0:728:ac38:4bee with SMTP id d2e1a72fcca58-72daf9ac957mr19752496b3a.2.1737396359593; Mon, 20 Jan 2025 10:05:59 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dab848b08sm7393982b3a.71.2025.01.20.10.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2025 10:05:59 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 00/15] Add attributes to allocation functions Date: Mon, 20 Jan 2025 10:03:18 -0800 Message-ID: <20250120180550.198121-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This patch series builds on the allocation function attributes added in 24.11 release. These annotations will allow for compiler to flag cases where a pointer is allocated with one function but incorrectly passed to a different free function. Checkpatch perl script falsely complains in a couple patches because it doesn't really understand C syntax for attributes. Stephen Hemminger (15): fib: add allocation function attributes rib: annotate rib allocation functions hash: add allocation function attributes lpm: add allocation function attributes pipeline: add allocation function attributes acl: add allocation function attributes bitratestats: add allocation function attributes member: add allocation function attributes mempool: add allocation function attributes eventdev: add allocation function attributes ring: add allocation function attributes reorder: add allocation function attributes compressdev: add allocation function attributes telemetry: add allocation function attributes sched: add allocation function attributes lib/acl/rte_acl.h | 26 ++++++++------- lib/bitratestats/rte_bitrate.h | 20 +++++------ lib/compressdev/rte_comp.h | 28 ++++++++-------- lib/eventdev/rte_event_ring.h | 27 +++++++-------- lib/fib/rte_fib.h | 26 ++++++++------- lib/fib/rte_fib6.h | 24 +++++++------- lib/fib/trie.h | 7 ++-- lib/hash/rte_fbk_hash.h | 24 +++++++------- lib/hash/rte_hash.h | 21 ++++++------ lib/lpm/rte_lpm.h | 23 ++++++------- lib/lpm/rte_lpm6.h | 23 ++++++------- lib/member/rte_member.h | 24 +++++++------- lib/mempool/rte_mempool.h | 37 +++++++++++---------- lib/pipeline/rte_port_in_action.h | 55 ++++++++++++++++--------------- lib/pipeline/rte_table_action.h | 53 +++++++++++++++-------------- lib/reorder/rte_reorder.h | 23 ++++++------- lib/rib/rte_rib.h | 24 +++++++------- lib/rib/rte_rib6.h | 24 +++++++------- lib/ring/rte_ring.h | 22 +++++++------ lib/sched/rte_sched.h | 23 +++++++------ lib/telemetry/rte_telemetry.h | 21 ++++++------ 21 files changed, 296 insertions(+), 259 deletions(-) -- 2.45.2