Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1569728rwd; Wed, 31 May 2023 16:13:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7F7GvNoIH+3y55ejNpiM1HnvLi5u225UQuvByqRg3FB+S8zLTcUd5Edu8hWwMcWvg24VkN X-Received: by 2002:a92:c048:0:b0:338:a3d5:88a4 with SMTP id o8-20020a92c048000000b00338a3d588a4mr3893061ilf.17.1685574833415; Wed, 31 May 2023 16:13:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685574833; cv=none; d=google.com; s=arc-20160816; b=woL5ZgIUNFOzQMgMp4NLYaqkWgWlWmS+l7ZGt33FvlijnXeXIOkM7IO+WZQ5iuLbzP CLu+4zVJ4Vrd354RbsJtIfgtkA7sr37Nkg3bu8+iDI/ZmuIQN1zPbKD3S03YqUYyvFip DiINCemoMn42062tXjic1Q3sQREAAU57vpHbgg7riCsZ6xH9+L+1xvDknnm8Nx6nF/7x nVDZWvl8rHed4xc/qFfZhRfBjf91ZguPMrXCCpGDTXMbrFDJPG8a9Mc4MZ19iuGbn0Um s3Ra33m4sCWiCYp1ohu575HcCCBPTsmG5UVfB7ogns7jIzMGS9/JMa0hvT0CTU4fYbOR XNEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=JJ1H9VP2v459xRAkSBqF5/NI437fKHWC1QBMZO2+kdY=; b=iSKbibxbRMh+V4ZfgSmGiAgKsgIXMUE9viCtMJ1SfnA7DE0ayLNt/wkkrIJscefDcx IHGGx2ENoFekw2wQ8LuUBUobNtw58dM14AEn6rg+NuXNF/OvV22+9uqkagQolqNw9XUC 7JcD5blFp4+2qeI6+j/iWPB6ZkObX3fuGJ/YGn8va0ziHuXhSp/F8tm39jWRiXKWoM8T nDa27Dwii7LrFzR3aSdarZeKaFT250JdWR2XQQ+irAKzzYPpVL7kB2rPnPEhHPzLT8jP cYA1sxYHdO8fkmagm2qk33Ahp9XmKC8+jfa6NfkhSt81Z2dl94LjTXhet0Tx4AK2hHD3 fSmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l190-20020a6391c7000000b005349008e6c1si1908559pge.264.2023.05.31.16.13.39; Wed, 31 May 2023 16:13:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231309AbjEaWpA (ORCPT + 99 others); Wed, 31 May 2023 18:45:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231272AbjEaWo7 (ORCPT ); Wed, 31 May 2023 18:44:59 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DE01811F for ; Wed, 31 May 2023 15:44:57 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B588E1063; Wed, 31 May 2023 15:45:42 -0700 (PDT) Received: from [10.57.22.124] (unknown [10.57.22.124]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 91E973F7D8; Wed, 31 May 2023 15:44:56 -0700 (PDT) Message-ID: <46bb773c-31a8-c57a-0cde-39c27d0a6e36@arm.com> Date: Wed, 31 May 2023 23:44:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Subject: Re: [PATCH v4 1/4] devres: Provide krealloc_array To: Greg KH , James Clark Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Coresight ML References: <20230509094942.396150-1-james.clark@arm.com> <20230509094942.396150-2-james.clark@arm.com> <2023051340-sinuous-darkroom-2497@gregkh> <89ad5070-db72-7bf1-5d86-a89fea54e789@arm.com> <2023051530-immunize-pony-49ef@gregkh> From: Suzuki K Poulose In-Reply-To: <2023051530-immunize-pony-49ef@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (Removed irrelevant recipients), +Cc: coresight ml Hi Greg, On 15/05/2023 12:55, Greg KH wrote: > On Mon, May 15, 2023 at 08:55:33AM +0100, James Clark wrote: >> >> >> On 13/05/2023 12:04, Greg KH wrote: >>> On Tue, May 09, 2023 at 10:49:38AM +0100, James Clark wrote: >>>> There is no krealloc_array equivalent in devres. Users would have to >>>> do their own multiplication overflow check so provide one. >>>> >>>> Reviewed-by: Jonathan Cameron >>>> Signed-off-by: James Clark >>>> --- >>>> Documentation/driver-api/driver-model/devres.rst | 1 + >>>> include/linux/device.h | 11 +++++++++++ >>>> 2 files changed, 12 insertions(+) ... >> Maybe something could be done with some macro magic, but it would >> probably end up being worse than just copying them and would affect the >> real ones as well. So yeah I can't think of any easy gains either. > > Ok, that's good. Given a lack of objections from others, I'll just take > this through my driver core tree in a few days. Apologies for hijacking the thread. We have a series for CoreSight[1] that depends on this series, which I see that, is queued in your driver-core-next. I would like to queue [1] for the next version (as there are other work that depend on this, e.g., [2]). Do you have any recommendations/comments on the proposal ? Are you able to share a stable branch which can be merged to coresight/next and queue the series ontop ? (PS: I haven't queued anything for coresight/next yet). Kind regards Suzuki