Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27349729rwd; Tue, 4 Jul 2023 01:30:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlFJkHrWAx/ues0YBDMvg58pd856wQs1LXJCPZlS9YJCkfeIYY+Frp4dI6QrugSTCQowwXvY X-Received: by 2002:a92:d905:0:b0:345:acab:98dc with SMTP id s5-20020a92d905000000b00345acab98dcmr12293118iln.11.1688459457718; Tue, 04 Jul 2023 01:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688459457; cv=none; d=google.com; s=arc-20160816; b=hRV2DMo9K+Vow+rsqOXJ79TjdwAT0WVpELiJfu5ILPF+yubeZcDKW2I+CodJSgGMyg UiOmpKa5sJ9FMXF4wQoFDjoiueu1lQtRWYUZgdib0YUocgswPP/BsqowsAJ4/KTndnjT 9U9/XpOkmMa/k06J8vWqWWJQ4yrcIZfyE522QhHxu1Yd72nBs/IXHH60pi/iHDbXTMCX TVHH7MP7UR/9Diwsa4GOEpB9exOZqVDAvXq+ygJKu7PaO30VLhDf6iawX55x1Y6b9B49 NQ3uEVBlMQ3EPeIcvOzFGE9BvM7w/d6pYVxwi04ZL6bMLQpP6HZ2VBhyrcbf/dEgLurM 9FdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=FPBg6p9QylZ6LXwL7TvvMNJ95t3SM1oPEWDK0MHP+qk=; fh=l6NwUuVRnhKX4r/LsGYhbJL1omXeWSNDj9R1sDEO2KI=; b=gOe36SA/kwdapJPnR/dH2tw8bAA78RpVJniV4FoPzY6huYVRz5zfYosL/QudwTWUIn aqo24VyJObBuEP90SuyJwEiWAvgdxLRrel+joq6R66bq4E/vkuuP1B32zCK+BRjyqtQ/ 0FupJuylt5aZkLnEAJatW2qDfQE96gt748vQbPbE4Q3ovkTXbVDjTmej6EMpfxfBO0KI dzE61m+LBeoHzKuagKP4u0rnHk75m91vnhy9map/v4PAcLEPtMKT7PhT/I6jNf/wfQSw ETxYf8j5G/tnMIU4usBWGz6vSUAnawXCOU5pDI6yiYp5ijjUwjRrRwOuZseYU2UWT4HW B2wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=rfrgAHLr; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f6-20020a631f06000000b0054fcdcbf4a3si20532820pgf.142.2023.07.04.01.30.44; Tue, 04 Jul 2023 01:30:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=rfrgAHLr; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231403AbjGDIQn (ORCPT + 99 others); Tue, 4 Jul 2023 04:16:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbjGDIQl (ORCPT ); Tue, 4 Jul 2023 04:16:41 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31756E52 for ; Tue, 4 Jul 2023 01:16:40 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id CF886225A0; Tue, 4 Jul 2023 08:16:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1688458598; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FPBg6p9QylZ6LXwL7TvvMNJ95t3SM1oPEWDK0MHP+qk=; b=rfrgAHLrrecq/cG6+NsHPf0UHlh9zEBr5aPHwvIy5RVe7QWYZmYt3uJV7vHrkVAwYDKc2D qxvX41Lu6qKN1+r1wF+ch8INYqV5N9OVm93FhVvwE64zunlo4HIcqXv8CT/q1UK7qAdLJM 0ANUF8usKFTFo9B5SQe1Dpdwq7MEjag= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1688458598; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FPBg6p9QylZ6LXwL7TvvMNJ95t3SM1oPEWDK0MHP+qk=; b=zgMUnSPzMkS7ARahdYyIvfy9W954bZlpyFHkl4jpkfzi+iq7L/pp78K/HOnBTc6d6nKcgj mjhfKJjLdJ3UU3DA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9E3F71346D; Tue, 4 Jul 2023 08:16:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Gae5JWbVo2R8JwAAMHmgww (envelope-from ); Tue, 04 Jul 2023 08:16:38 +0000 Date: Tue, 04 Jul 2023 10:16:38 +0200 Message-ID: <87o7ks2is9.wl-tiwai@suse.de> From: Takashi Iwai To: Dan Carpenter Cc: oe-kbuild@lists.linux.dev, Takashi Sakamoto , lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Takashi Iwai Subject: Re: sound/firewire/amdtp-stream.c:1099 process_rx_packets() error: uninitialized symbol 'curr_cycle_time'. In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 03 Jul 2023 15:00:01 +0200, Dan Carpenter wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: b25f62ccb490680a8cee755ac4528909395e0711 > commit: fef4e61b0b765b6d22badcd5b6575b159e7d510a ALSA: firewire-lib: extend tracepoints event including CYCLE_TIME of 1394 OHCI > config: i386-randconfig-m021-20230701 (https://download.01.org/0day-ci/archive/20230701/202307011324.jFJ96dTo-lkp@intel.com/config) > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > reproduce: (https://download.01.org/0day-ci/archive/20230701/202307011324.jFJ96dTo-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 > | Reported-by: Dan Carpenter > | Closes: https://lore.kernel.org/r/202307011324.jFJ96dTo-lkp@intel.com/ > > New smatch warnings: > sound/firewire/amdtp-stream.c:1099 process_rx_packets() error: uninitialized symbol 'curr_cycle_time'. > > Old smatch warnings: > sound/firewire/amdtp-stream.c:944 generate_tx_packet_descs() error: uninitialized symbol 'curr_cycle_time'. (snip) > The curr_cycle_time variable is only going to be used if trace_amdtp_packet_enabled() > is true. We would consider it a false positive if build_it_pkt_header() > is inlined but a bug if it's not. (Technically passing uninitialized > data is undefined behavior but if a function is inlined then it's not > "passing" anything). Yes, this is a false-positive, so no much worry needed. But it's hard for compiler / checker to know it, and I guess that simply initializing the variable would be the easiest workaround, after all. thanks, Takashi