Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp54935lqo; Wed, 15 May 2024 07:35:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWY+hXFO/ey/C67j4/tdzccJrriLuJu55vFHpETnKSgQBOgaz/3n4HyGjedZE87uqZqd/0h36hbGNJf/fJUGoy8bsHjbbckuiUHxaXphg== X-Google-Smtp-Source: AGHT+IFYRMh8KjuDm/PIgv2xXNiGwtEq8qXgVsR01GGjlDtygpGmzyT2633E8XPkLXrOU0dAAtv+ X-Received: by 2002:a05:6e02:1c8b:b0:36b:26df:ccf2 with SMTP id e9e14a558f8ab-36cc1496569mr213457245ab.10.1715783754932; Wed, 15 May 2024 07:35:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715783754; cv=pass; d=google.com; s=arc-20160816; b=VSpyEGMbtsZ3tJplgz/30YgozJZVLEWLS6eG6iDEzTy2Ahsywu3OOCPf1CFaQ9g0i6 OsWJK8SBoHlOf+5+dwfKXQ5KhV3GLSzvUUQd3nBExqOl6XoOjbgyG463EyvhFAG9gMsn kZKnmd3G8YDHEj97uiN6H3cugV3vYuTUiwCFW5RrLuSy0QXtJkTEp0vvd0fqNoggBFLw /vQ78EaMM9x9EI6qc4R2FDFK1Zw1oBV8Q+ANiVIfeLVVAVR6f3XGTgVfctRkoXmlquPQ 0+irLTNImZ0D1OdHi+0CC/8o3/V4Nz4w5BnbUn/UwnPjvjNCqop+1PlQ1WkmxLgDDHeh AmLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=Zpkv1XFXbjz013sYUtzM2chC9OslxeXahIcL6Fre16A=; fh=C7Yl6cm31Y5Vbi+FEYJE7EBV602YRDnuldsNhGdTz9E=; b=iOKBxehLgdV1uC4JcqrrRbQx1gX2NBtMqiIipFcydTC/A1y6y7tYWdU7rywDByADX9 vmsLdMp7Qi5N5j6fEKH0vt7Gmvdxvuhybq6Rh870Gq/+jJSS3Pi2jIO4No9bE+1Z9AmU heJxmCL15eJt+ylj5W1iSVSwVCwyLscTVoVpajQ0YaU6GNBOSiOTrhpoBOulTkBA48PL WcKXzD3QaVGLkouTnw1syaJRlDhJgbn6IhivX2aIF3l+LqBn5NE6Qgeb5Pgbi6bbcPyY gfQXnGCFIqJSPT3Bv/TbSqNCYLARxairP61HFkICceKZa0F5AMjoJtROngBopuBvKGqg zqwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hN4+gtRn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-179996-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179996-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-651c07522eesi2405849a12.70.2024.05.15.07.35.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 07:35:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179996-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hN4+gtRn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-179996-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179996-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C8178B22AE1 for ; Wed, 15 May 2024 14:28:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5446D13F45C; Wed, 15 May 2024 14:28:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hN4+gtRn" Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 9F43713FD61 for ; Wed, 15 May 2024 14:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715783285; cv=none; b=gDVKAFpXssuKP/PCQbSkDXDKRfH8jZFRaQ3kGM8pfE3bzjTr1Hiq4mpZ3KOZpwdWxALGBw67Xu1+HCNqeEBONJZD3RII5pd91uQOhQ+ShkvFk2/wQqRe2Ry/zIIBojaUYEg0Za3anyAm/+EaMQgPw8t7iSMNMSaI0GDsKIeQe4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715783285; c=relaxed/simple; bh=HG2E5ZzzY3Lbc+03GvuD+dWOrLJSMoB11TmWujlsBcQ=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=X/VhkM6pm8aOkL3uHalvaXMC39UKWxxbp62i9KBhRA0kPPT3ZV4Qv4E6uqxo3wc4IopuURpXAfEXpBUuPI27rojEGJ6k9FO9csPjSXPf2ZYMdXCYJp11xMFIWB0KZlnE9si3s2zcqFjhX29ZGWvnJCnpZxvuL9xAQy0o5cbT55o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=hN4+gtRn; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-41fd5dc0480so43451235e9.1 for ; Wed, 15 May 2024 07:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715783282; x=1716388082; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Zpkv1XFXbjz013sYUtzM2chC9OslxeXahIcL6Fre16A=; b=hN4+gtRnXBGvlljPGLcDjVg6FAOiWTkPvxVoQdoQ2gWyl2vSjVlAQR2TF49uQzPP29 FZ4HvxvpEyOcKe4nrdnkpdNso/Ge5OwUmBflPVBh8brpRYOI3OqxiU5PQbfUsdmYsBVn +/zNoVBOT4NcWUuezkIA3QcHNCkOYArsbg+e3xHS48JrrFKgoVQj3+0x17cOWJnfrqr0 EA006MQLYDYCSVe2fGLqyAqUt0j/9cIE+L2bpzU1ZIu1hKiD6yeMttlS5vcz6rWI4k6L Xx9vS6dSST3Luo2unIN8NvZsmUJuae0GLMHIaK8MpvxC+zkrbmgbqZDAo0Jz+OzzM45j HQ0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715783282; x=1716388082; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Zpkv1XFXbjz013sYUtzM2chC9OslxeXahIcL6Fre16A=; b=sTibxp8yfXIeVDnxBDpfRUJpsaWp/BNEtdfYxz5vViSIovNd3b+GKn0xUt0xfUcv6n wpSG9r2+IZVEUs4fasuJlrMmVGnk2t692zPU73EppvEGNlh6AIqt4TOlp9gVhTl3Y9M+ Hzgz8SCzwA8vXXPKnlwbJX7QZpx93+yu/WTgTFv27jD1zgsK/5tgThWtGwGcw2BVnncR u5+TZORszs9JiIHwNCXPKkK3LjSxfwxe2Hwm5KCRmZbh4R3Txxby0s39iWIywIFlNub4 2IWBjw8p9RuvwDM1Nz1GPF4udH0TX+pTptIl/k34ru/DzmHQEG4wRzfFT14EZO0pBd9Q I0ig== X-Forwarded-Encrypted: i=1; AJvYcCW9d76mYs1aUZZlD3p6g0Nikvnh5/LvxuR0wOYQ7AZNcP4aeMIDIwxOujrCtoU6sBstkBLPFiOnzLHTY9johed6ICe8hr7A63gLHzPJ X-Gm-Message-State: AOJu0YzfRIoIUVIMdQp5RVC8gdxIJKTxqTLVCUk87w+5BVtIuc8Vsaa3 aXt2E6ErkFlWWK3PGDDsGTLhkPYXA/7LzINC1u6VCmn4j5KSOVqblphyA8bGlHLRr0gSkZhOmkY Z X-Received: by 2002:a05:600c:4689:b0:420:509:714f with SMTP id 5b1f17b1804b1-4200509728bmr104553345e9.14.1715783281672; Wed, 15 May 2024 07:28:01 -0700 (PDT) Received: from localhost ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42014f563adsm122363295e9.38.2024.05.15.07.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 07:28:01 -0700 (PDT) Date: Wed, 15 May 2024 16:28:00 +0200 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, srinivas.kandagatla@linaro.org, broonie@kernel.org Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, krzysztof.kozlowski@linaro.org, neil.armstrong@linaro.org, Srinivas Kandagatla Subject: Re: [PATCH 1/2] ASoC: codecs: lpass-macro: add helpers to get codec version Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240510175835.286775-2-srinivas.kandagatla@linaro.org> Hi, kernel test robot noticed the following build warnings: https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/srinivas-kandagatla-linaro-org/ASoC-codecs-lpass-macro-add-helpers-to-get-codec-version/20240511-020042 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next patch link: https://lore.kernel.org/r/20240510175835.286775-2-srinivas.kandagatla%40linaro.org patch subject: [PATCH 1/2] ASoC: codecs: lpass-macro: add helpers to get codec version config: sparc-randconfig-r081-20240512 (https://download.01.org/0day-ci/archive/20240512/202405120735.qbbiUPaX-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 13.2.0 If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202405120735.qbbiUPaX-lkp@intel.com/ smatch warnings: sound/soc/codecs/lpass-va-macro.c:1485 va_macro_set_lpass_codec_version() error: uninitialized symbol 'version'. vim +/version +1485 sound/soc/codecs/lpass-va-macro.c 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1464 static void va_macro_set_lpass_codec_version(struct va_macro *va) 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1465 { 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1466 int core_id_0 = 0, core_id_1 = 0, core_id_2 = 0, version; 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1467 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1468 regmap_read(va->regmap, CDC_VA_TOP_CSR_CORE_ID_0, &core_id_0); 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1469 regmap_read(va->regmap, CDC_VA_TOP_CSR_CORE_ID_1, &core_id_1); 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1470 regmap_read(va->regmap, CDC_VA_TOP_CSR_CORE_ID_2, &core_id_2); 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1471 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1472 if ((core_id_0 == 0x01) && (core_id_1 == 0x0F)) 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1473 version = LPASS_CODEC_VERSION_2_0; 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1474 if ((core_id_0 == 0x02) && (core_id_1 == 0x0E)) 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1475 version = LPASS_CODEC_VERSION_2_1; 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1476 if ((core_id_0 == 0x02) && (core_id_1 == 0x0F) && (core_id_2 == 0x50 || core_id_2 == 0x51)) 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1477 version = LPASS_CODEC_VERSION_2_5; 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1478 if ((core_id_0 == 0x02) && (core_id_1 == 0x0F) && (core_id_2 == 0x60 || core_id_2 == 0x61)) 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1479 version = LPASS_CODEC_VERSION_2_6; 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1480 if ((core_id_0 == 0x02) && (core_id_1 == 0x0F) && (core_id_2 == 0x70 || core_id_2 == 0x71)) 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1481 version = LPASS_CODEC_VERSION_2_7; 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1482 if ((core_id_0 == 0x02) && (core_id_1 == 0x0F) && (core_id_2 == 0x80 || core_id_2 == 0x81)) 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1483 version = LPASS_CODEC_VERSION_2_8; Uninitialized on else path. 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1484 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 @1485 lpass_macro_set_codec_version(version); 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1486 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1487 dev_info(va->dev, "LPASS Codec Version %s\n", 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1488 lpass_macro_get_codec_version_string(version)); 787a4e6d2bc156 Srinivas Kandagatla 2024-05-10 1489 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki