Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6926483rwr; Tue, 25 Apr 2023 06:02:44 -0700 (PDT) X-Google-Smtp-Source: AKy350ZUknSLEoSrynU311uvQxdbwqNUZ1O5K39cSXkNar+8oLqfZqpoabsHYwGHVtGIVm17AXKS X-Received: by 2002:a25:c0d5:0:b0:b8f:517c:1c15 with SMTP id c204-20020a25c0d5000000b00b8f517c1c15mr10685440ybf.11.1682427763679; Tue, 25 Apr 2023 06:02:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682427763; cv=none; d=google.com; s=arc-20160816; b=ptfSbcQSKqnic0v5uJaAmmfkhSBhcA7WpW+dOPp1b14URG9dCseR582FVHgYR/H7JV nVZ6DWvcgy9yWQQLQcPn1LdtuT3gtLz6pFmbvkICzgBG6+MIB7wedbDVVOlOa1cV6fQG qApy0ZgUqi/wdciIRO3mYQd0dWh2xgohjkOIM62Z1t4Ejs92p9z2fWz9ucV4AZgacVMn BwZTSUAeRooklYs9H/bUYhZxBCLy1sZZHk41lsxB3puv8FcnQqIumyY1/wGYKXImDH7l 1mdvnimijyC7uT9UAcy2nEZKAx/5/yOZ8wu597JsVmVGnrljWcfF0yafRRuriyTr9RKJ iFpg== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=ieSrsMACwl6sjt84Xfs3E3rP3/LU1TneRfyILlQItl0=; b=Jhrs1FAE6ab4P+fu1lMNGYD5i3Vx4uoju/M5gJkvSr0F3MmBB82/uIiRx8UzxyKw6H XoRMLaPmnv+nvNX6DPo9+i6oFW3zjkybhWq1714Z3c19k0oBF8+LsH/ldlpgdkbXaFpb 4lRLp8Nm5jF0CW7mV9xE+pY1tCPllzhfvfDo6TpA+bhzO4CsLDyAdZL4wmd2PSvhjqoK F7sQ8TjUha4Ud3ftp/GfuEaCZtAo/YcBdf7IUZU6nMhfYgM7iQAtY95/P5HL+pqnjm9U ht2b6tS+fwUg4f2eNnHmLi6zoWxZ6PlvN59rIG5nAG466CqKbKokOo4LEyXcjbu9SbaG a39w== 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 129-20020a251487000000b00b7bd70a3309si8387504ybu.107.2023.04.25.06.02.19; Tue, 25 Apr 2023 06:02:43 -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 S234181AbjDYMvk (ORCPT + 99 others); Tue, 25 Apr 2023 08:51:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234174AbjDYMvi (ORCPT ); Tue, 25 Apr 2023 08:51:38 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0EEADBB8D; Tue, 25 Apr 2023 05:51:36 -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 7E1934B3; Tue, 25 Apr 2023 05:52:20 -0700 (PDT) Received: from [192.168.1.3] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E5B7F3F64C; Tue, 25 Apr 2023 05:51:33 -0700 (PDT) Message-ID: <108babe4-20cb-e637-e7da-7d04127d2a9e@arm.com> Date: Tue, 25 Apr 2023 13:51:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v3 0/4] devres: Provide krealloc_array Content-Language: en-US To: Greg Kroah-Hartman Cc: Jonathan Corbet , Jean Delvare , Anand Ashok Dumbre , Jonathan Cameron , Lars-Peter Clausen , Michal Simek , Andy Gross , Bjorn Andersson , Konrad Dybcio , Jiri Slaby , linux-doc@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux@roeck-us.net, michal.simek@amd.com, Jonathan.Cameron@huawei.com, andriy.shevchenko@linux.intel.com References: <20230320145710.1120469-1-james.clark@arm.com> From: James Clark In-Reply-To: <20230320145710.1120469-1-james.clark@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.6 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 On 20/03/2023 14:57, James Clark wrote: > Changes since v2: > > * Remove change in qcom_geni_serial.c in the last commmit and replace > it with a comment instead > * Whitespace fix > > Changes since v1: > > * Style fix > > ----------------------- > > Hi, > > I had a use for a devm realloc_array in a separate change, so I've > added one and updated all the obvious existing uses of it that I could > find. This is basically a copy paste of the one in slab.h > > Applies to v6.3-rc3 > > Thanks > James > > James Clark (4): > devres: Provide krealloc_array > hwmon: pmbus: Use devm_krealloc_array > iio: adc: Use devm_krealloc_array > serial: qcom_geni: Comment use of devm_krealloc rather than > devm_krealloc_array > > .../driver-api/driver-model/devres.rst | 1 + > drivers/hwmon/pmbus/pmbus_core.c | 6 +++--- > drivers/iio/adc/xilinx-ams.c | 9 +++------ > drivers/iio/adc/xilinx-xadc-core.c | 17 +++++++---------- > drivers/tty/serial/qcom_geni_serial.c | 5 +++++ > include/linux/device.h | 11 +++++++++++ > 6 files changed, 30 insertions(+), 19 deletions(-) > Hi Greg, Is it possible to take this one? Or at least the first commit? Thanks James