Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp332486lqt; Thu, 6 Jun 2024 05:14:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXo8rfutqABVa71fk78mJzD2ph6ZTpQ3LFNqbkqqjWpTjHrfgRZbUAsFpbMcEdw6xk04D/zrIY7FTaix4nz2Wg0jQ8SR+NpdCQrrUj0nQ== X-Google-Smtp-Source: AGHT+IGa1ypm4s4yr4O9kbpEFgqn22EdngSIv8NnqeN5tjAGt24TVNlUipdTxfTIu8EddL3Ty9oT X-Received: by 2002:a05:622a:11c2:b0:43a:dd5b:d306 with SMTP id d75a77b69052e-4402b69ee2fmr71127721cf.55.1717676094168; Thu, 06 Jun 2024 05:14:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717676094; cv=pass; d=google.com; s=arc-20160816; b=U0qPksOq78uFgMfYCoXlGBPhK0Zm1SPzUUl6mBPqOoegdUPeNes/SrW+BJSD9KT1yU 9azDkh3n/Br+ux0j2jvJcyN2dUHCFwP23rIdvgsLEDNAOmfoUXeEbXPMcqe+RjVqQWT2 uD6DBv4AW+hXd4AgLn0VCRmxQdDfvBo/JBI9Yg3a8b8iGvZmMUNLcAitjBU8MaoRXSv+ GW8fyjiBrje2plzqIJUuMYcEcD0bQk2kMaXC+qEa2WgFgB3c5mDJLrPrxptfAC3nsB3G gKG7BflesQHv57QqwDwgX2qg7SXZ0HtTMno9YGyg3dGgld0LhMaulqXMgBFRmdimBHP6 hDQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:subject:cc:to:from:date:user-agent:message-id; bh=lcDmpoKLlS2S+zLdmoPOZCdnobpI39SPH1SKDfxyQac=; fh=Gvjb1/u6YWeKTMmKjPod9gMOquEY5MakcYdTp+Oj0/M=; b=R3z0qVM+aUmBB8cRQKh4cmKx+8YUjXdfn8FTMKZNG+dUdktvxKWxKlvC3p8qo2kXfd UHGlR2IkmuqcvI39PEwgm3ZMBTXR2Ml4z4ZAYUKsZjK5dj9Rq9eRAJ7TJoVxpTFCWLFZ 7t90uyYCzodW0s7x5UUceeprItvpSEJV2rN64usnq8SEzrN6X7dGKI27+YhK0cP3B5c2 e8tDRR2PT/BMkAar1dmIOssFr+VqWPDdIutHGnckRPinvaLquxAbNrUtN6d5Lh8b8eia TKnVobd66BuauzM1s4hQu4xFilljKVdAkKuACyNy6kfJcQT5yPJg7b6lAjmtJjLgo1Ck 5r7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204254-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204254-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b7cbbcsi14193221cf.719.2024.06.06.05.14.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:14:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204254-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-204254-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204254-linux.lists.archive=gmail.com@vger.kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C8E5C1C25698 for ; Thu, 6 Jun 2024 12:14:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00035198A16; Thu, 6 Jun 2024 12:11:03 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 673E8197530 for ; Thu, 6 Jun 2024 12:11:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717675862; cv=none; b=dEauC0bOOanIzOPvQwdAS2IwosU+i7UhobfNCdmh9Nh9fbJTJmNZEWd9YJRKP303+gXcw6S4oq5q773h95ol4YoSikFdBOAHy7gKqlBtlKQcqHTA0As+yH4piRHNdFWNcKo+W/fNJJ1FtjSgr7pDZR0Bva3jGzmpPg1x10Q5oME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717675862; c=relaxed/simple; bh=g5J78wUfojd2WmwHbBCDPFONoHxtPGid/f23v9af9tU=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=IyrWECULQKgEydictZUIOz3GKMyGdo9PwPYjRIVT/LvNKU/noyb9Svc4gO4TglCN80y4ajKpyPF7Ecwdrx1QL1TIxrrqC02KkRaEjvsijwS2OKBe64c6INHU326TINNadrhH4PjXmaO5rLg6GAVoDGtH46ApA08756gDVw5js9Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53B4CC4AF5F; Thu, 6 Jun 2024 12:11:02 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1sFBxS-00000000nPp-3rmn; Thu, 06 Jun 2024 08:11:06 -0400 Message-ID: <20240606121106.784134644@goodmis.org> User-Agent: quilt/0.68 Date: Thu, 06 Jun 2024 08:10:19 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , Abaci Robot , Jiapeng Chong Subject: [for-next][PATCH 15/15] fgraph: Remove some unused functions References: <20240606121004.857581251@goodmis.org> 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=UTF-8 From: Jiapeng Chong These functions are defined in the fgraph.c file, but not called elsewhere, so delete these unused functions. kernel/trace/fgraph.c:273:1: warning: unused function 'set_bitmap_bits'. kernel/trace/fgraph.c:259:19: warning: unused function 'get_fgraph_type'. Link: https://lore.kernel.org/linux-trace-kernel/20240606021053.27783-1-jiapeng.chong@linux.alibaba.com Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9289 Signed-off-by: Jiapeng Chong Signed-off-by: Steven Rostedt (Google) --- kernel/trace/fgraph.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c index c0e428c87ea5..a13551a023aa 100644 --- a/kernel/trace/fgraph.c +++ b/kernel/trace/fgraph.c @@ -255,12 +255,6 @@ static inline int get_frame_offset(struct task_struct *t, int offset) return __get_offset(t->ret_stack[offset]); } -/* Get FGRAPH_TYPE from the word from the @offset at ret_stack */ -static inline int get_fgraph_type(struct task_struct *t, int offset) -{ - return __get_type(t->ret_stack[offset]); -} - /* For BITMAP type: get the bitmask from the @offset at ret_stack */ static inline unsigned long get_bitmap_bits(struct task_struct *t, int offset) @@ -268,13 +262,6 @@ get_bitmap_bits(struct task_struct *t, int offset) return (t->ret_stack[offset] >> FGRAPH_INDEX_SHIFT) & FGRAPH_INDEX_MASK; } -/* For BITMAP type: set the bits in the bitmap bitmask at @offset on ret_stack */ -static inline void -set_bitmap_bits(struct task_struct *t, int offset, unsigned long bitmap) -{ - t->ret_stack[offset] |= (bitmap << FGRAPH_INDEX_SHIFT); -} - /* Write the bitmap to the ret_stack at @offset (does index, offset and bitmask) */ static inline void set_bitmap(struct task_struct *t, int offset, unsigned long bitmap) -- 2.43.0