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 053994601A; Mon, 20 Jan 2025 19:41:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 95CFE410F6; Mon, 20 Jan 2025 19:41:50 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by mails.dpdk.org (Postfix) with ESMTP id 5DD68410E7 for ; Mon, 20 Jan 2025 19:41:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737398509; x=1768934509; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=8GYPRNViE2YG2tcv5X9Q117WNWiJC0Cnkwl3FHReCsI=; b=A95iHsvzGp9AOBSFKRc51QxHymT8x7gMlZhF/DsG3dJt3L+WvYquWL9F QQa/Lr+ztRvbACSskkDGoXKGWzNR+3ONEtOzeDB2kuOlwKVe8XCjeE77l CeYqCXjDRrVb/bLz9mpsYM6iESZNhZF+TUs/hpi5a7G/3CZGEjKdl8+sx hRb3nTgv2k+p4IOjQir4OHbpEJrdApP433y77k4wpR+orugUh1iBUh+qE mBbkjCfqdg5Bd2OSIhjRYjDVo6JCTj9Eeb56Y717EvJznwtUZ/B6PwdSL GpFJPF7H9VGune0+raNPIbotzDeEeecSsTuPGAlY+BOkvjSIXQhN02W8Y g==; X-CSE-ConnectionGUID: atBn7FB6QGiU0SOMvRbVSA== X-CSE-MsgGUID: V0IfzLX4Q5+MEJtMscg7xw== X-IronPort-AV: E=McAfee;i="6700,10204,11321"; a="49201662" X-IronPort-AV: E=Sophos;i="6.13,219,1732608000"; d="scan'208";a="49201662" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jan 2025 10:41:43 -0800 X-CSE-ConnectionGUID: zkAOvMChQrenjCi4sJmc9w== X-CSE-MsgGUID: R1TJ/8V1Q1qMBdKFq/lKow== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="110638122" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmviesa003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 20 Jan 2025 10:41:42 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Mon, 20 Jan 2025 10:41:41 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44 via Frontend Transport; Mon, 20 Jan 2025 10:41:41 -0800 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.47) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.44; Mon, 20 Jan 2025 10:41:41 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fEf/U/+1QOb9azePeYvdWxS2+yb4spKvHY5+RlrkgYCARH1NEcD79kLuNBLjZTXcCsQ6jthETG4TwKwHBWsbivWMy0CSFeEBDwectUwl0UMppkbnn0vS+ylfvo3vES9+fDeV+aPgsIIw8DmUJdIYJZhDycV0rZh6mfG570aw7HdN8I8uXM6wxBO4AFXcpYdrOnndCCD58zu/8FLVnSMoyMh0sAKO6zaK4AkGC+63CFUr7V9XCnoDOPcTjCMKoeKftnrz6VUvmmAljluZ+1MeF3/CPzpLGBqOrPbcC476vepYYj35qxWcOmRPUZHv8qgxWpURtSaoo4jBMcQ6MfsRsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rZNBh/uiUsxKRijFz3MOzP2Iy1g06mQ01LKCWCF90sg=; b=BQNfQ5H9yXn2xxFAjv6aXjjilnnJ05DHCnYBBysp2Z6b7tdmiDLTnnPCKGhSUZEXLMg+tlWCkC0yj0VVNPn3QRE3ZlJlK0urSsW7tdocqhzvmHrlFUsaVLBCeaBGZU2SdRpMX09aVMdTMP49pE0CCLPiPwmlIH2wTiD+LOE17I9MglyqP7GRxIfUe/dV92UtnGgBfa/B2uwvIuQgft9Yb9SjDsmNX4iivsxmC948ANJoY+jVPN0XWMfMH7X019LPcO2k44qUPUuB9d1GOgmTdmZ+PFcizwbqYf391h6eNqIsEPwdfndOwPInU15+6zB90u8CpboH8Ou9jVyFDon0lQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by SJ2PR11MB8322.namprd11.prod.outlook.com (2603:10b6:a03:549::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.22; Mon, 20 Jan 2025 18:40:59 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 18:40:58 +0000 Date: Mon, 20 Jan 2025 18:40:53 +0000 From: Bruce Richardson To: Stephen Hemminger CC: Subject: Re: [PATCH 00/15] Add attributes to allocation functions Message-ID: References: <20250120180550.198121-1-stephen@networkplumber.org> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20250120180550.198121-1-stephen@networkplumber.org> X-ClientProxiedBy: MI2P293CA0005.ITAP293.PROD.OUTLOOK.COM (2603:10a6:290:45::12) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|SJ2PR11MB8322:EE_ X-MS-Office365-Filtering-Correlation-Id: fe6278c4-4443-4a7b-d909-08dd3981fb62 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?sGgbSLLcyHhKx13fBmZTPS6jcEtX9Td65IAtlm4xQMNDgnGVYefYBsdcH1UJ?= =?us-ascii?Q?IZOqLJCqdMBhZE8QY/V7MTxLJAQ+8bG9uQbZVl0rn9jSvcFq3dbVcQ1MB0Nv?= =?us-ascii?Q?MJYGuc5x1j/KMcJvMI8RfODp3H0AYcyylqfiBPUuoH9lulPRyztTI4au1c08?= =?us-ascii?Q?PUPDEy1npDvT0ignB6zCguoNq/wDH8/onwact+lZYz1LiHU+KkNIgHtO6ZoF?= =?us-ascii?Q?qgvQSGIIyPo5uOISZUWO8mXv/L3wC1D81XxK40QZi9FbxnNWsImLl7bib00I?= =?us-ascii?Q?kfwZPDxZq5LA0jiw75O6wu2o11CE9Apme94YNtvy2vzZBm8BBmD1BLRDxsMJ?= =?us-ascii?Q?uoSh9jpCOSKmKbMFnRRp8m+9uYj5xksFZdkXEwQyVKhPN38N717mmi8/KO6r?= =?us-ascii?Q?yg/nIRnVOrrUE5ORiLGPCcUIfgR2R4CA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MVAt6/poEiHTdJ4M3d6PY+FdXFPLE+FO6SZcPU3wa5yqQL5BkLQ2Efl?= =?us-ascii?Q?1YSYrW9+V6GbtEiKRjQy/3XnAwEu?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?KqXempsTHj0lbhedQqej5dWpICFyHYXEvGubck4vfaTF9GFNXIhjVY0K3HFz?= =?us-ascii?Q?YyRtdqZlPwUXj5SPpgqsGgqoLsMTnpRPeUZRTIJFPN1seIi/vQf977AHX8cH?= =?us-ascii?Q?09hqaS3cfoQ5FG6Ux1d7oLi7+FRAvx4IxeirwXuBZ8eAfh6iNo4kS8bcHXzx?= =?us-ascii?Q?wBogtWvZdWp7BRY01Y0ShuvRCBBe+hSvo575yEZmeo9iDCyzpJUxZIrUmkOH?= =?us-ascii?Q?v8zo2P0NPV0S3mjMtrGVBKzXP2x72XQKajJEY4x5DbQz5HBazIuCrbDjOaN7?= =?us-ascii?Q?ToC5pCPqrYBaLhO/iu7PVahsZ6hD8bN7H8c9TMm+Usduyuo/fzCLAGKz+EMt?= =?us-ascii?Q?tpYD6Z8rF93c/nWI5pf0IdZqZ2XWdcqwlD7vZkeP1lZBwNDz0bu72GhOXkV/?= =?us-ascii?Q?sO7qhcS9M8UIZ8zMN7hZMgDO0l8wJHy5yYIul3NnEQox5XnrVmuPYJzHyML1?= =?us-ascii?Q?ehN/azVz1KsgrGdGBAfeifFIQLwGdy9n/o/2auagiWjK7U06FD1FQOCemGqP?= =?us-ascii?Q?wN5YaOtMxfXRVAEbJjiMnu64/Zckaf/O4mU2yusS+poDWkNyM3lntnxawxsO?= =?us-ascii?Q?msxBaG6XHTv1e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HI?= =?us-ascii?Q?vY/FrPHcOZU3VoY/PJ83hWbmknKiy/z/bXeth5iVc0/Rv+AmcF9EZfTDD5gq?= =?us-ascii?Q?Z6XP0Y5w1ew/+Vd63OdeEs5VPX9nXs8Mh+9zQWpHh6mAiqMS/+VZkMEBiwc8?= =?us-ascii?Q?5A=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: fe6278c4-4443-4a7b-d909-08dd3981fb62 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2025 18:40:58.8748 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CuKa6J6k2u2bV+86qjIfpCiwahfp/V3XjYH7CiVJ/NOVVkS3i3U5CmVjd10yHIYVXbasvKyOtqFZnK6fQyyZEgVGQI46w1Df/x8xq/Z7vEQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB8322 X-OriginatorOrg: intel.com 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 On Mon, Jan 20, 2025 at 10:03:18AM -0800, Stephen Hemminger wrote: > 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. > Looking at the patchset, I see a number of functions moved in files. Is there a restriction on the placement of the alloc and free functions where free has to be defined first? /Bruce