From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACF4D13B58A for ; Sat, 10 Jan 2026 16:17:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768061865; cv=none; b=srXXISWBeqytaYO8dYW8qT0QV9PX77wCxfXxfvtpVJcT3joBYO8VMh7oJ7naV7DYPFt/rNejRjqs4g62BRkh0JEUn51ny2MALVH4bmoL3SpNsBPTItceSY5NWA7eyO69aymFUQhgNoPBJBSjDL0nMEO0EiM0/sANRQNbjUD90UM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768061865; c=relaxed/simple; bh=LtJAiYMPu3vSOcm4a9eAPwUHnr6T9RENKRy7pFLUvEE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jhWpCpCjYkCQBnvBxI7pzxvkQEl4S7c7fZlOVW/ist8RL9jgx3vh43kRVQQjLRFt8MQg+NK+RTluM1ix0CGnhjqi27EcQk1jxg/vj9kGJgSagkJexEntHyi7ghQaDwAK9L+Rnb9/zpxwZjVt2IDTQBJKKFC0k0NeKvQ/+MCKVZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=pSJMnZSl; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="pSJMnZSl" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-64c893f3a94so6388666a12.0 for ; Sat, 10 Jan 2026 08:17:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1768061862; x=1768666662; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qncqnLubMYC4ApM8lJi4wrVgA/Yt4u3+/s/LwC2vUkg=; b=pSJMnZSlQVhTHFHaqE66mMqTmAGNtWlCDAHBIg9t2twjVQp+xEz+s/XCLXwzuYgCwd ytaWWeZtHyTV0zSwf8pjyCCt+72CpTvEdcO/N10nv6HcrNtIBBjHPFFCNsbm/i5iAAWf o3xe4d2l1OY/BGosx/Px/POCkAE/R0a9fNwySWVkO9KPxR79UU0auNDeC11t0ORrdD4G mArJewFClqxyGljfJKlMXhWrkMMD5UB6Kt+0xITsqOOxQWDLHqJCFzxS3SQf/uU+pAPl tR1vwrG2gZh5YDT+fxvHO1x44gAKwGiwKYUU7H8I+IJnoK8ZahgRlcUIYgWzcktKWuGq xDLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768061862; x=1768666662; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qncqnLubMYC4ApM8lJi4wrVgA/Yt4u3+/s/LwC2vUkg=; b=Pjj81M5NA4AurSDPBdsvJy016gzEDZWzuH7OlygGJRzjXUObrvJG7pnklzNXbbls36 ToTSGjgOIu7VNlJcuyXhzkR2TeSdJKGg8j5O1JKspEX918uuCyJS5U1MABZq0rrjgVJk 4E22v+7YLg/cwm1obnaOxPvF38ue7GCJ9RIo6PIwtPu1YxWLCgda9wX7s1+YnFKPWplV 85fs57ItIeNFv1bwFrEus1SIAVyotO/JMbzZpFWQFj2qGl2bqS5siC6zU6g61KbHgEcQ a0WWmbaM1nAqaJ1dqDmHVFVb5czUkNA9h65smxEtt8mcHIRUVQAW9bXwiMi2sj9CtIuF kfJQ== X-Forwarded-Encrypted: i=1; AJvYcCVaHL3dzRbfTxF5EZ5qBMTrQxgm2sPus3LbHMVJH4+MvIPf+gKlaIO1/HLY+BGP1L4yJJGq1AkvRMTh4tQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwOZ/UTQ8MWTVHApEUO8XitSjuDM8AAalBLbPkBa2EW20yyw1vs a6NyfF946+5If2+L1VUpwNbG4mW1uo3nL/Uc0cvaHmv6W1uTKWfTbcCsWidN18uQz4k= X-Gm-Gg: AY/fxX5K1NJNFyowncwNKFhdDXTR08hiAt1zIa8xIJ+cTxU+1Rq7VfxSVxpWZOwID21 wHUVgxLPsV8duCbaCsrc2aqzZToUt34b/DMpnMyT+zRIuAvT9NvDtlvSugaK7E8Nq7whOarCCmu 2DvZ5kahgqJvsw/WBGKsLX5jU0WK9mtE5IF5+wROKB3nKDT8MXr6zWPTFtQt3BtVViLXwAl9Mbl H7hkbmpmQsjBsblI9k0+Ng09CLkDVEYS4UCmdxheAYbbWzcPJSjVEt7PXmkYD8dsCoUofiVOPP7 wOFhij6VVCfLhu3ezup0jTbnZ/PSO53t/Cefi+Ne2LIC5cbqL3wy/Y6QT5l6/om019bmhb8qZ5L 1z+zIdmSLudk5U4l1BHxGsawTd8bNnjM1O7pgADM+dRnyERBUhnXfZV78uFUfxpJ6AJ6BbhxGfL KirlC6PkCgwEC6LsWh9Q== X-Google-Smtp-Source: AGHT+IEt1vR7d0Du0VgJnxJCpzSziFh+TSZwsM8O+w7rOv3sQtzjQL9vGDgyVHyYf8b4VXURK530tw== X-Received: by 2002:a17:907:3d11:b0:b80:3fb7:8e68 with SMTP id a640c23a62f3a-b84299be630mr1773773866b.21.1768061862067; Sat, 10 Jan 2026 08:17:42 -0800 (PST) Received: from [192.168.50.4] ([82.78.167.31]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b86f0d6d7c6sm213670766b.42.2026.01.10.08.17.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Jan 2026 08:17:41 -0800 (PST) Message-ID: Date: Sat, 10 Jan 2026 18:17:40 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFT PATCH v2] Use kmalloc_array() instead of kmalloc() To: Sidharth Seela , alexandre.belloni@bootlin.com, nicolas.ferre@microchip.com, sboyd@kernel.org, mturquette@baylibre.com Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, david.hunter.linux@gmail.com, skhan@linuxfoundation.org, khalid@kernel.org References: <20251123070905.93652-2-sidharthseela@gmail.com> Content-Language: en-US From: Claudiu Beznea In-Reply-To: <20251123070905.93652-2-sidharthseela@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Please use "clk: at91: Use kmalloc_array() instead of kmalloc()" in patch title. On 11/23/25 09:09, Sidharth Seela wrote: > Refactor to new API, for cases with dynamic size calculations > inside kmalloc(). Such calculations were found using grep in the > sources. The patch compiles properly with multi_v7_defconfig > and multi_v5_defconfig and generates object files for the following > driver files. Patch description should answer to "what?" are you doing and "why?" are you doing it. Please specify also why are you doing this change. The rest looks good to me. I tested it and saw no issues. Thank you, Claudiu