From nobody Sun Nov 24 01:49:12 2024 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 0D07D79CF for ; Sat, 9 Nov 2024 00:34:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731112446; cv=none; b=c7/EcfRP2QYEQnOSQZiAVUU24cH5dKRFwKbhLB4V+8JPGOW/DKA9K1lCqpfwz1UkXefWOrkk0JvU0kblrvHNHJYNJDhoDo6bXYyJeLTriHCDCNRl2okU99d0HZnuKqVWFr5p5GcvPUgM03RpuzfDwMZ/49Di1j5Duw6+OjRE+P0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731112446; c=relaxed/simple; bh=JR2W9BY58B7KI+DPucllOVM9yijzERRopT+DlqMeLCU=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=BxBKh8m6cg+3Nu2j3/d314jVTkTmrqMENpUwI7w6IjjX2GZrAqmPd4dUr2QTTH1Pwi5Cs96/6NciqMoXOSZz3JnB0u+sxgN+UWjmiU7NGbePitoV1qFvWybl0r+qo1TlQoim/zHe5QLQqTIPn2DpFLlgiQuyfgb9W4sU070kCEk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=NN9g01zn; arc=none smtp.client-ip=209.85.219.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="NN9g01zn" Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-e30df8dbfd4so5582052276.0 for ; Fri, 08 Nov 2024 16:34:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1731112444; x=1731717244; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=3SPWlc2lPTGFJEvFedKLB5LrjZb1UnFHbKvI0m+mSBo=; b=NN9g01znbIBzhADNo0L0gn6pbVE1FcOtPk+4Q3X5HAIYQq1JbvbR5nZaDUcUZ/syD9 inpm8niVFmsc4Pwh2+V0cfbPRmyN8St4Qc9TCV9Kbq/iYVRjs0Ngfq+jZr7mFRHryRCU nw8r2BCMh80Ym8F9VDq+5d1ULDOixihVBJDwVqmyLBzllYCRWjjHCNxO/gTfmSNb5Q3P AKW3ABAdrmRXMTIVKfqW8OchobM/KMahRXKOGMWparefnJmzilV1Dg8dtJq/DgosMjJQ A/KPDtVwgJHzfcGFd+pP0as8tkG62umZej2qKmc6sUxzF+TTFitrip6l2AWYMK1c5WGa yGrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731112444; x=1731717244; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3SPWlc2lPTGFJEvFedKLB5LrjZb1UnFHbKvI0m+mSBo=; b=atOTvY3rb/c2ERcid+ym1syrVu1M/+uQWCow3m/UHwXNQmQ+D77KM+NaxCG3mOVlfG mzT/Z1gSlFhyp0InDJ6JFH3AhvDOepPbX7x5GkYejSJMcHZ4UnvtE+aoudM1JTGTC/jv NpyAu6Aw0o/7cEHRZWHFq1aLUK9psgs69ulQ6koLdUGIEslgNisXd3DOeTpKEdp4SCUW 4+Y/kH9iNAfeiyqGgbTMciW+H4JCSHLeWcG/UmF4DRVwvB/wtiR7aJOSasyxaR/SwUzT 0PvLviuPf9OEpoFOimRz6NuEBQnzBnzojjxrxBTqQWfVJEiAErhsmwv9ZBhB+cGMxCHp 3a6A== X-Forwarded-Encrypted: i=1; AJvYcCVTkwW7AtknxSHPyh7/au1e1/WBZ6jFDUtiybTaHFPZ5O2uAzS8PtOaFf0TJJ2DMAlzGO6FC/CVEj7302Q=@vger.kernel.org X-Gm-Message-State: AOJu0YxFSVEc3EMkkmqoh5qizpGLOeTLiNKhsu+8whoIcPUOfHQG2a+m 0oSd87Ul2dx0nZ41yCN0iZhjAa0jy7eZYY7wFm0wdAJiEWGBdk/9pMzQ7Tc0euIvFkSaGXyfS4B quL0sKg== X-Google-Smtp-Source: AGHT+IFPezKGEklr++nG5H/4/AeOE+yWUxDwLwnQft/snPRaDbCVYhzMwgPF847otz3H/KeF3sq9zCTHNjhL X-Received: from irogers.svl.corp.google.com ([2620:15c:2c5:11:6fd2:1e36:6d8c:7c49]) (user=irogers job=sendgmr) by 2002:a25:264d:0:b0:e25:d46a:a6b6 with SMTP id 3f1490d57ef6-e337f8d405emr6111276.8.1731112444057; Fri, 08 Nov 2024 16:34:04 -0800 (PST) Date: Fri, 8 Nov 2024 16:33:52 -0800 In-Reply-To: <20241109003358.461437-1-irogers@google.com> Message-Id: <20241109003358.461437-2-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20241109003358.461437-1-irogers@google.com> X-Mailer: git-send-email 2.47.0.277.g8800431eea-goog Subject: [PATCH v8 1/7] tools api io: Ensure line_len_out is always initialized From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , Ravi Bangoria , Weilin Wang , Yoshihiro Furudera , James Clark , Athira Jajeev , Howard Chu , Oliver Upton , Changbin Du , Ze Gao , Junhao He , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Ensure initialization to avoid compiler warnings about potential use of uninitialized variables. Signed-off-by: Ian Rogers --- tools/lib/api/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/api/io.h b/tools/lib/api/io.h index d3eb04d1bc89..1731996b2c32 100644 --- a/tools/lib/api/io.h +++ b/tools/lib/api/io.h @@ -189,6 +189,7 @@ static inline ssize_t io__getdelim(struct io *io, char = **line_out, size_t *line_ err_out: free(line); *line_out =3D NULL; + *line_len_out =3D 0; return -ENOMEM; } =20 --=20 2.47.0.277.g8800431eea-goog