Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp905789lqm; Wed, 1 May 2024 21:56:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcIDTUbmul00qAyxpoeeBHKx9s6p3WDied/smDXob34WDkspMt3xxuZoWlOHva7YjLpQg9ZFvvzXLcTR/ZuszQdDkLkqMdvMk3ClhHZQ== X-Google-Smtp-Source: AGHT+IFIx6qDy5mqHjNRN9AsyXx1DkSK4yc1tWJHwnV/lTPb+zkl6JjAqOzszCiTaqs50qscYYJy X-Received: by 2002:ac8:59cc:0:b0:43a:a802:d124 with SMTP id f12-20020ac859cc000000b0043aa802d124mr1034544qtf.22.1714625782626; Wed, 01 May 2024 21:56:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714625782; cv=pass; d=google.com; s=arc-20160816; b=srqIdFFuv+8eA7AyRAyTdz/7USwcQJmeYR/YooEG9izpyLiL1RLVgRNVVvilm1u4Cy Bwal5wiBozBbH1HXdkblzp6bZCO57bis0s0NBFl45rDXqJypcVGcdrGrla6lTzr7H7bC C+6BR5cm6mHGJ26NktsWh+fKjDzpDY0i2YgJF4XrPkIvzuAejxcz5WVne9IYI6Zdl5Lg uahcvjRlrZ04zWyMFe/KysvkwgD5h+kyD/e2bZRvUQM3ozi/XGJ/hgKSTWoc7xK6QP0b V19PtpF9FcidijQUYZvwEw+BKk3oKLsIULgN5epGyqadUGrWoMK8o57pUtpuWKL5cAJX MbdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=RK08lcpJuJc/7PixNknwpeT95vGnmm8v1HbGonQY+dU=; fh=aACJ57xQOX9lTiNCo5qCM4Ivg3/0taLZerNsRebZsz8=; b=tTr/slDs4jWAQF0Y1ALXC3vKsI/XI2Bq7a2WJL7i2QYGs348NDHHyYQ9PiErIt0bul RZVoKMm1ygcPZykILdmYqd6P3UfbBRkotH5COtnVz/3lsoMTlpKc3l/1E+dY5IrbjUsk V8O0v4xe0cBhrKoRGd7idQw+moXftmq/W6cPc/XEXqt1m/2W+/a8iJy4TWsIegfn6ALC n8YHEP3zuIWvz6eSJGAxiFkmJ+LyZ+I6iJvYSzlrxdgodH1JIjZZPZL8JBWAbUPXCRuH Kp+gTJPuzBBuHR1219rwaw0aY6bgb9uiBj1czplobEMNZvD3pD30T6ujmmXeiwVUDqtL WBpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=I3zl5MD5; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-165968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165968-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s31-20020a05622a1a9f00b0043ae9dae13bsi210875qtc.510.2024.05.01.21.56.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 21:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=I3zl5MD5; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-165968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165968-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2D7131C21337 for ; Thu, 2 May 2024 04:56:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B53E1CD39; Thu, 2 May 2024 04:55:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="I3zl5MD5" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 440801C2AF for ; Thu, 2 May 2024 04:55:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714625725; cv=none; b=LP9ui7DDOL69KFTY7vKD4uAmcPuyCyrAuvK+l+LubOB9X5zQ4fwL/xy4KxkPlXcOWGr0d6+O2cFFchUAfBg+L+9GSXFuo6AxC5PnhcMuiW0xJ58L9cm4xOfA6vWxb/Wtoa+U2/IAtS2yZ4gWybfUuufBjCsD9XFxzd2D+MojF2Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714625725; c=relaxed/simple; bh=4IglGpEQXVEJd3y9Ud+13pqeqzo11NDvuTmBinB2z90=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=olnbSG6ufOoYPZWdj7tn+ncguTuhLI7mCg48s8DQRduQDtk9nV6OKVaMmdLnARtT8z4WgBcFrYYJxpDDUGGg+reVYTJ1Gq84CkjgoDdTrQnZ98mOYt2VJqgnaDEOfZFjD7+ycUBY1U1I8hJkXBMyJN+lI10B8sYs3bIxilMX20s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=I3zl5MD5; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714625724; x=1746161724; h=date:from:to:cc:subject:message-id:mime-version; bh=4IglGpEQXVEJd3y9Ud+13pqeqzo11NDvuTmBinB2z90=; b=I3zl5MD51K3MtJrCkYDjylzcw6QME7pqFUvUJS9LPdY9CPeL9YpZAKJ3 29555IQzFX+gFiThbnmrNbf3nNtgiMHrjPeprAQaIppOw8rkRBLXh/CpN WjRG06D36MZjxvNO/cFrf+k+QgLLCdkfCM9+wHLCtUSG/LX3GuXR0ZP+r rtglaee/FfDtJl/MZsBM0u0+Kj7z5TEXWK9NJRXeszs5YQ5RN/4WM4bvS 6mzsubuKvzUdPgSR4i0JF3HSSnNrXicFWJU7kafakMVSdLKgc0oshkdXH IkcYlGOaUGx4yFBSMNnsVJPKGAbdiN+UcuJkivBHvRIvnksu868wPRkDp w==; X-CSE-ConnectionGUID: 8zYqznxuRKmaCb2yVZfU7A== X-CSE-MsgGUID: ST5mad8GQSKlfuSWwT5dzA== X-IronPort-AV: E=McAfee;i="6600,9927,11061"; a="14157639" X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="14157639" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2024 21:55:23 -0700 X-CSE-ConnectionGUID: oEc6hzzvTXCgCbWiK/RNpQ== X-CSE-MsgGUID: ltjWT4plSKGKyTGA/GMSSA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="50192763" Received: from lkp-server01.sh.intel.com (HELO e434dd42e5a1) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 01 May 2024 21:55:21 -0700 Received: from kbuild by e434dd42e5a1 with local (Exim 4.96) (envelope-from ) id 1s2OTX-000AP2-0g; Thu, 02 May 2024 04:55:19 +0000 Date: Thu, 2 May 2024 12:54:54 +0800 From: kernel test robot To: Shenghao Ding <13916275206@139.com> Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Mark Brown Subject: include/linux/compiler.h:69:46: warning: 'fw_entry' is used uninitialized Message-ID: <202405021200.YHInjV43-lkp@intel.com> 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 Hi Shenghao, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0106679839f7c69632b3b9833c3268c316c0a9fc commit: ef3bcde75d06d65f78ba38a30d5a87fb83a5cdae ASoC: tas2781: Add tas2781 driver date: 11 months ago config: sh-randconfig-r033-20230707 (https://download.01.org/0day-ci/archive/20240502/202405021200.YHInjV43-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240502/202405021200.YHInjV43-lkp@intel.com/reproduce) 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 | Closes: https://lore.kernel.org/oe-kbuild-all/202405021200.YHInjV43-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/firmware.h:6, from sound/soc/codecs/tas2781-fmwlib.c:10: sound/soc/codecs/tas2781-fmwlib.c: In function 'tas2781_load_calibration': >> include/linux/compiler.h:69:46: warning: 'fw_entry' is used uninitialized [-Wuninitialized] 68 | (cond) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | (__if_trace.miss_hit[1]++,1) : \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 70 | (__if_trace.miss_hit[0]++,0); \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:57:69: note: in expansion of macro '__trace_if_value' 57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~~~~~~~~~~~~~ include/linux/compiler.h:55:28: note: in expansion of macro '__trace_if_var' 55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) | ^~~~~~~~~~~~~~ sound/soc/codecs/tas2781-fmwlib.c:1972:9: note: in expansion of macro 'if' 1972 | if (fw_entry) | ^~ sound/soc/codecs/tas2781-fmwlib.c:1911:32: note: 'fw_entry' was declared here 1911 | const struct firmware *fw_entry; | ^~~~~~~~ vim +/fw_entry +69 include/linux/compiler.h a15fd609ad53a6 Linus Torvalds 2019-03-20 58 a15fd609ad53a6 Linus Torvalds 2019-03-20 59 #define __trace_if_value(cond) ({ \ 2bcd521a684cc9 Steven Rostedt 2008-11-21 60 static struct ftrace_branch_data \ e04462fb82f8dd Miguel Ojeda 2018-09-03 61 __aligned(4) \ 33def8498fdde1 Joe Perches 2020-10-21 62 __section("_ftrace_branch") \ a15fd609ad53a6 Linus Torvalds 2019-03-20 63 __if_trace = { \ 2bcd521a684cc9 Steven Rostedt 2008-11-21 64 .func = __func__, \ 2bcd521a684cc9 Steven Rostedt 2008-11-21 65 .file = __FILE__, \ 2bcd521a684cc9 Steven Rostedt 2008-11-21 66 .line = __LINE__, \ 2bcd521a684cc9 Steven Rostedt 2008-11-21 67 }; \ a15fd609ad53a6 Linus Torvalds 2019-03-20 68 (cond) ? \ a15fd609ad53a6 Linus Torvalds 2019-03-20 @69 (__if_trace.miss_hit[1]++,1) : \ a15fd609ad53a6 Linus Torvalds 2019-03-20 70 (__if_trace.miss_hit[0]++,0); \ a15fd609ad53a6 Linus Torvalds 2019-03-20 71 }) a15fd609ad53a6 Linus Torvalds 2019-03-20 72 :::::: The code at line 69 was first introduced by commit :::::: a15fd609ad53a631a927c6680e8fb606f42a712b tracing: Simplify "if" macro code :::::: TO: Linus Torvalds :::::: CC: Steven Rostedt (VMware) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki