Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2212853iof; Tue, 7 Jun 2022 23:22:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU/GilLxfQIyWMFBQ3qIdIpk0e9C/s8/kiv5O4L8xfnV+N1BLkjKI3NhgNgHnvDOTmz1Ga X-Received: by 2002:a17:90a:e2c6:b0:1e2:fad9:40f7 with SMTP id fr6-20020a17090ae2c600b001e2fad940f7mr53693064pjb.198.1654669376667; Tue, 07 Jun 2022 23:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654669376; cv=none; d=google.com; s=arc-20160816; b=naq1hn210fzFIRHH3H7aIuAQ7lNdvm+jzRw4Go/2Ffs2d72ZIIgK3LBYSrpZBH3Q5A Ke8EZ1i7SF/mMKWZZxpp2YD7/ZYEHlbq1GpZswxyyMMjJOPKiDbKWeLx300ts3iF1Ypx EhZD7gXhlLP2M1RhzioYvTDaG+vz2N3iYeVz4DqZxKM1xKrdV17Mjrt9sO38/3vAdpbx nr3Dhk4dPi3om3Umw5TfTzA5WhZouztaw856+boSlndUyOl8GREpw6dwGFrl9xUqDbUd LgSgWGDqs0DnUjqymxdDGv9v37/cqXcz14VNsqOuN72KOLktZxKeKO2AR4fzTIAqJtIo nW/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8qkH4ywactME17BmkakQBbrnf6ocO3mHexhGxJdlqf4=; b=mPwXEUODB6C7WYZA8VudaMcIevMQdBN7hwoE1BRboGOu6eA1ZBVP66gjBk6NebxtQp 6krbVXPRKrGW1t5/g6+QKqOfp8ziJ1ihZx0F+QZ9oQ7TGIz8GtcZJNhZEtvdXlnZH0Qw o/XHTaAhieI/1AmUJqNMspDvm8vg3+xpmG8c8umKmlxO0dAIZ9YBWRXga3VjMHWvnl5E X3k6+eOYeEs80PaGKIGme8klhmMuG/NTNXwh5qAdtLNt7qBSGAhUcds0CpazGwup0jvK y1jk6kJ++dSfl5RrPLH36XSrpXQjsMfzCXMkr6v2dCU63k1hdeAByJ0d2lhKfxEBlB84 ZnPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WLrGoU6P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y8-20020a17090322c800b0016777c63534si1259067plg.129.2022.06.07.23.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:22:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WLrGoU6P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 68AE942CAF1; Tue, 7 Jun 2022 22:43:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356146AbiFHCEl (ORCPT + 99 others); Tue, 7 Jun 2022 22:04:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386291AbiFHAWO (ORCPT ); Tue, 7 Jun 2022 20:22:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EACF1973CD; Tue, 7 Jun 2022 12:20:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1993061947; Tue, 7 Jun 2022 19:20:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 207BDC385A2; Tue, 7 Jun 2022 19:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629610; bh=OcWhrdsFQIgNPCqf/QrOHTOvPgdXZMIducRNLcG6Qdg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WLrGoU6PjoTwR3dTsYNoD9AwMI3ydfIfW0JZ5OzAA0vYvKD7vWKs7TIB1UornFAFo PTntIuDaf5cHtE7xu4m4TG+TbemKtqz9a6kXo8eviCqwa1T3tkTGrVUEwPTCGmsoxI vEFxtCEqKYjOuJF33Yi9eJI4ghICZ+/etSFatbI0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Masami Hiramatsu (Google)" , Gautam Menghani , "Steven Rostedt (Google)" Subject: [PATCH 5.18 752/879] tracing: Initialize integer variable to prevent garbage return value Date: Tue, 7 Jun 2022 19:04:30 +0200 Message-Id: <20220607165024.689097542@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Gautam Menghani commit 154827f8e53d8c492b3fb0cb757fbcadb5d516b5 upstream. Initialize the integer variable to 0 to fix the clang scan warning: Undefined or garbage value returned to caller [core.uninitialized.UndefReturn] return ret; Link: https://lkml.kernel.org/r/20220522061826.1751-1-gautammenghani201@gmail.com Cc: stable@vger.kernel.org Fixes: 8993665abcce ("tracing/boot: Support multiple handlers for per-event histogram") Acked-by: Masami Hiramatsu (Google) Signed-off-by: Gautam Menghani Signed-off-by: Steven Rostedt (Google) Signed-off-by: Greg Kroah-Hartman --- kernel/trace/trace_boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/trace/trace_boot.c +++ b/kernel/trace/trace_boot.c @@ -300,7 +300,7 @@ trace_boot_hist_add_handlers(struct xbc_ { struct xbc_node *node; const char *p, *handler; - int ret; + int ret = 0; handler = xbc_node_get_data(hnode);