From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233820AbiHPJk0 (ORCPT ); Tue, 16 Aug 2022 05:40:26 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5DB1103C6D for ; Tue, 16 Aug 2022 01:12:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2022-7-12; bh=vS1KPgyVCtv4WsNUGtTGY56T9DvqV+ipLCD74KdzOOA=; b=sU39xnou9ucmuXsS4YlJr3KDuy38poUsnuSFUdVNU9gmKKtTMr0U69hxZ/h1UAn8FePk 17yAUsiLXrjalgmrAzctoaUehuVEMrP2lbHm2Hso2GjPq9tZ3SYuEYWL7A9oVp0D0Gsy UHgCuQxjf/SDcymPpc2F8lBT07LMADsdnIpIaZYjkfmqNeW0spTi64zH+WP1sYkTBwfw WxAlveOkNSQ22Epi6NfLOHfUvcUxWYavahIf8m6uMz6ml8+s19nEwAv6RBcDaDPoCuwb KPzawjswT8YfVtV345pDtgojf9nekWhg2+Hb+S3/3Gcbq6zRHoNlnnLbzPxkfGHgitj9 yA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vS1KPgyVCtv4WsNUGtTGY56T9DvqV+ipLCD74KdzOOA=; b=EICTBD9sJRAyOn8s+1TivvSl8/4jQDTRJcePgusv/4EytjTEgsdt3bDgPTc27gb6axMF1eM7EVzaEzSZfiB5mH3uMxj4TemPWO0uGqXLg7iJQ5I+oY5Vm1qvdOEGP2iTJkZhpSPA//dCUmVIIILQHjBpEAR2TmvAuT1MxbGQCxg= Date: Tue, 16 Aug 2022 11:12:12 +0300 From: Dan Carpenter Subject: Re: [PATCH 2/2] check_freeing_devm: Take advantage of the new add_allocation hook. Message-ID: <20220816081212.GQ3438@kadam> References: <226fb08b3a13fd24f0739ab63bff369718003119.1660580395.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: MIME-Version: 1.0 List-ID: To: Christophe JAILLET Cc: smatch@vger.kernel.org On Mon, Aug 15, 2022 at 06:21:01PM +0200, Christophe JAILLET wrote: > add_allocation_hook() already register many memory allocators. Use this > list and filter function that starts with devm_ to avoid duplicating part > of the list. > > Signed-off-by: Christophe JAILLET > --- > Not sure it is a really elegant solution or an improvement. It's definitely where I want things to go. Ideally the other string allocation functions would get added to the allocation function list but I'm not sure the right format for that. Anyway, I've applied all three patches. Thanks! regards, dan carpenter