From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DB8443B6C4 for ; Fri, 21 Aug 2026 10:59:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787309984; cv=none; b=sk8aYuZX3ZX6zIAnKeZVXQVVQKPUPJN151ouAbt9n1lwR6QgxO5cF90gkG8w5xVajkAaQecFwAJI9b5D8SDhxnWUfvURSUHdanLvw2BrLG/MQV/MhJThaaMm9kkJLXfW0KBCDBXS9WxcFsBQ86J0GKyRJP8zwNRluX8WJUDvixs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787309984; c=relaxed/simple; bh=18vtLRzZ/1AiNuoaGkYSc9RUHIiM1aUgGl3jXeV3I1k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EvkneraM8oRqg5d9mdgeLyvaNbMac+5wQtFcIMYhCV0MxAgw+kVtzOdwAyb7s+51Ys+vgRccZqteyR1nduP6wjiEtJc0bgwGEpG9FX2RaDl5RhtaTkGK2gOIZpu6dE/xYo4YWG2IG+DkfPQ3lOPcvcobS2QpgsGJY857xqAuSlg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=n6aPOHvU; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="n6aPOHvU" 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 0F952153B for ; Fri, 21 Aug 2026 03:59:39 -0700 (PDT) Received: from [192.168.0.1] (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B20413F66F for ; Fri, 21 Aug 2026 03:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1787309982; bh=18vtLRzZ/1AiNuoaGkYSc9RUHIiM1aUgGl3jXeV3I1k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n6aPOHvUHUGq5w11SCKP59HozzkNZVK+tXfZ8nrvaqOsrSrW5ASwvM2zPljAWP75K Ekz/1ZC4hvoZa3Xw8dYRu8+ZhW+AIzARThKbbbhIdB5SR8dyFYst8f+wMpWQq5CwKz BkBjEv+19Z3EqztkgA6zuOigVaF8Wu0i0CcI/rao= Date: Fri, 21 Aug 2026 11:59:32 +0100 From: Liviu Dudau To: Geert Uytterhoeven Cc: Sudeep Holla , Lorenzo Pieralisi , Linus Walleij , Russell King , Thierry Reding , Jonathan Hunter , linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH 1/2] ARM: versatile: clock: Make sure clk_init_data is fully initialized Message-ID: References: <66afbce10c485164340a3947885cdf4217a4ee2d.1787239869.git.geert+renesas@glider.be> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <66afbce10c485164340a3947885cdf4217a4ee2d.1787239869.git.geert+renesas@glider.be> On Fri, Aug 21, 2026 at 10:52:24AM +0200, Geert Uytterhoeven wrote: > The clk_init_data structure contains several mutually-exclusive members > for different methods to specify the possible parents of a clock, > prompting drivers to initialize only the members they need. However, > not initializing all members may cause subtle issues, which are only > exposed when CONFIG_INIT_STACK_ALL_PATTERN or CONFIG_INIT_STACK_NONE is > enabled. > > Make sure all members are fully initialized, to avoid such bugs, and to > prevent future breakage when converting drivers to a different method > for specifying the parents. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Liviu Dudau Best regards, Liviu > --- > Compile-tested only. > --- > arch/arm/mach-versatile/spc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-versatile/spc.c b/arch/arm/mach-versatile/spc.c > index 7c3191aa3e12d1f3..d3f84819532fa498 100644 > --- a/arch/arm/mach-versatile/spc.c > +++ b/arch/arm/mach-versatile/spc.c > @@ -522,7 +522,7 @@ static struct clk_ops clk_spc_ops = { > > static struct clk *ve_spc_clk_register(struct device *cpu_dev) > { > - struct clk_init_data init; > + struct clk_init_data init = {}; > struct clk_spc *spc; > > spc = kzalloc_obj(*spc); > -- > 2.43.0 > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯