From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8002950217780343895==" MIME-Version: 1.0 From: Tony Lindgren To: kbuild-all@lists.01.org Subject: Re: arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here Date: Wed, 31 Mar 2021 09:38:31 +0300 Message-ID: In-Reply-To: <202103271303.BNY18cjh-lkp@intel.com> List-Id: --===============8002950217780343895== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable * kernel test robot [210327 05:06]: > >> arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is= uninitialized when used here [-Wuninitialized] > name =3D kasprintf(GFP_KERNEL, "smartreflex_%s= ", sr_inst[i]); > = ^~~~~~~ > arch/arm/mach-omap2/sr_device.c:191:29: note: initialize the variable = 'sr_inst' to silence this warning > const char * const *sr_inst; > ^ > =3D NULL > 1 warning generated. Thanks for the report, FYI I posted a fix for this at: https://lore.kernel.org/linux-omap/20210331063556.30654-1-tony(a)atomide.co= m/T/#u Regards, Tony --===============8002950217780343895==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8EBAC433E1 for ; Wed, 31 Mar 2021 06:39:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9EACA619DC for ; Wed, 31 Mar 2021 06:39:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233686AbhCaGjG (ORCPT ); Wed, 31 Mar 2021 02:39:06 -0400 Received: from muru.com ([72.249.23.125]:49172 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232805AbhCaGie (ORCPT ); Wed, 31 Mar 2021 02:38:34 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 692A780C3; Wed, 31 Mar 2021 06:39:37 +0000 (UTC) Date: Wed, 31 Mar 2021 09:38:31 +0300 From: Tony Lindgren To: kernel test robot Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here Message-ID: References: <202103271303.BNY18cjh-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202103271303.BNY18cjh-lkp@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * kernel test robot [210327 05:06]: > >> arch/arm/mach-omap2/sr_device.c:207:51: warning: variable 'sr_inst' is uninitialized when used here [-Wuninitialized] > name = kasprintf(GFP_KERNEL, "smartreflex_%s", sr_inst[i]); > ^~~~~~~ > arch/arm/mach-omap2/sr_device.c:191:29: note: initialize the variable 'sr_inst' to silence this warning > const char * const *sr_inst; > ^ > = NULL > 1 warning generated. Thanks for the report, FYI I posted a fix for this at: https://lore.kernel.org/linux-omap/20210331063556.30654-1-tony@atomide.com/T/#u Regards, Tony