From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235729AbiEWNAf (ORCPT ); Mon, 23 May 2022 09:00:35 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E913E53B49 for ; Mon, 23 May 2022 06:00:34 -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-2021-07-09; bh=5X8omQyYFhVc/8DZloWxU+DqAG7tjlfQ0OsfNRy9Ij4=; b=oBKT1d6M+VV/5CkqWpp3Nxp0tQr6OeNFu86jF0g130z7cWhmNBeATQHvtqJTRT9QhzeS 2tt6EqpoxM5X4hW+xqIOPjMiIYGQkUPIN0i9LkabRunHNxQv567S55L/gqGIp3JQiPK6 ETnBZBPDi26MgIy+dnO2H7SL6xAZ9NcDBIH5Qer1WeZuETycQdOteJcTMzYjab+XQbfL V192sU/mmnTwBzGCegfSxoqcn0CtVrXfX2qvirM+3keYrfUd4rGyGGeRomrcElhEzNBl NdF9CAhBLKwev3aXStfgvr3DK+ZKVeluiCs65XPujcGvDOMlVTDi59L89KofgTpOvc0u PA== 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=5X8omQyYFhVc/8DZloWxU+DqAG7tjlfQ0OsfNRy9Ij4=; b=gEGHN/9Jzi1FyReuSG/H2BJwoa6TWcDXZMN1QMN2QpdRls31YYSOUqLvkLh5KvObhMBW3cKiJT2UGHCCs3E2vrqWPguWMwYsxbdkdXdPM1M2hXDvMuT7NrUOBFf6cDZdi2DStMmwktRg1rJeywDJvex8teQ53eyARq8jHX8D9rQ= Date: Mon, 23 May 2022 16:00:22 +0300 From: Dan Carpenter Subject: Re: [PATCH] kmalloc_wrong_size: Preparation work in order to add more functions Message-ID: <20220523130022.GD4009@kadam> References: <7052be5923bd123df3755d71acc262484e46477e.1653127604.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7052be5923bd123df3755d71acc262484e46477e.1653127604.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 List-ID: To: Christophe JAILLET Cc: smatch@vger.kernel.org On Sat, May 21, 2022 at 12:06:53PM +0200, Christophe JAILLET wrote: > The fact that the 'size' parameter is the first one when kmalloc is used > is hard coded. > Pass this information via the last argument of add_function_assign_hook() > so that other allocation functions (devm_...) can use the same hook. > Applied! regards, dan carpenter