Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp100942lqt; Wed, 5 Jun 2024 19:21:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUar4Dc7xgALVrMbiVh+uEMWdAeb32eErZYkwM4AAQCirVL01l11AYdhPoiXp30opG4S9RRLBaeSugVIzW17I46xNBRA9Q83Fb0uPOszg== X-Google-Smtp-Source: AGHT+IExCJT29WKEI1oZgs8lJXyqy0ohdTI8cJwxK7I8pdamKfXJJ93UASRXcQsyjQx9kGMI8op0 X-Received: by 2002:a05:6a21:186:b0:1b2:5931:574f with SMTP id adf61e73a8af0-1b2b712df57mr5576567637.40.1717640491582; Wed, 05 Jun 2024 19:21:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717640491; cv=pass; d=google.com; s=arc-20160816; b=RQnUuXweJRK/ARldvQQNC64WNXSRLYNxJYl959UB97rvkknMBOs0TLPI/OHWQbN3Id DCabBjPs528V3Y2mEmMkKftkpN7CNNJiS8RRF+SKecTwKNzNH4FzkhoTJSz0vvkxdMIE H3ft2ccys5hSmWuZfWsObdfRV9zs7xBLJTqeeVedEUUVgLoet91qB18m/Bm+3UwBWyMO 5JNMfRlYIuzKdxj0d9DkeJ0N+FEIehPKRwXQxypnqjMvbXWusUfaWKHzcmqq8d3WyGei +OkJbjVbbiMRlkbTxc0QeyI+nS2kXEsQOYfb4dfU6Ud5JDGWhUXom9DPTs4GmWA1AmX6 mjhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=J2HjalGyu16JiUmBtdpjzCgzLQfZA9s0Yu8WWDb1HCE=; fh=x3Wjt/Lz/pXqF0KZ7OGx79D7896R2zq49f5THGJkNdk=; b=LVTCfxsvLiq70VwRpVq4YHq0PEiLznNcTnX7lRX6s8SF5dGLsVoGEWYpnvHHGZ+MMI pgirqBOgjOotyyKhP14bLod8pYMvmhZ+34mQyQPe8+1yyo/lSobZhlpT0/ndz5UtK4RN LWLidoPR6FMdUSa7rOTENu65Bcd/9L1/aNrupBxonQzvkuC/Ash++A9mPuiQQz4VOJJJ o5oTIGD4XX26FS3Qx/s5TxuLAA5pvb7Y8sQIC9Cs213SS0VRcw9X+4I2YRSRbnsBsDyp I/rWUd2iyXUg79LwNtXhWEJUgEb8xMFRmZ3+qDg7tRC+q5glaWtr9wfsiEsebcIhzFQn u2mg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=wU+zKI4A; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-203524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de262c01b1si316737a12.421.2024.06.05.19.21.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 19:21:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=wU+zKI4A; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-203524-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203524-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0D0B3288F65 for ; Thu, 6 Jun 2024 02:11:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64997182B3; Thu, 6 Jun 2024 02:11:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="wU+zKI4A" Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) (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 038BE19D8A9; Thu, 6 Jun 2024 02:11:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717639876; cv=none; b=B6LvHnAyPZdm7HTvdTMv3ywXbDBWZjUXNpgNQ9d1GxpSWyROSb8hnJMiZZa4+Mvb5DfSJg6T7wD1+MzNs3LUPn5LocAedSx9Qfv8Bkjgzf+XI0sHTnwaLQrLx8LoMLMFeOITGA861MUr6lb2jbTnPRLqTA9C6ysIy5p32wMYbKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717639876; c=relaxed/simple; bh=SwDOWZjXkGasfrj5gOSvdtiuegyDLuPA+BB35Wt5NKM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gWV1tXaIAGGN7v5erFG+Mjz0XZdEcZGkQzrPCXj//BKd1B2s4HKCb99/EK2UF1w4AQf1LLQHtc/OGoQ+Js02pWdW6V/sWXLVSvImwipkCOYyGB9DCTd8gu9REV72iNgzxdGCGlj/kf4deIFQAqoSMGG/rKnTguJ/QmRJ5BcrThc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=wU+zKI4A; arc=none smtp.client-ip=115.124.30.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1717639870; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=J2HjalGyu16JiUmBtdpjzCgzLQfZA9s0Yu8WWDb1HCE=; b=wU+zKI4Ar13ms1Conm+ZBGjaOcu2njdSrgQCO+3gBJjirrWmPpTYsqvbg+wEYXkf4mhZo6vSHgpR2WnM3CL01zVCLP3eyXT/TjwMKoYKB6pBip2dG45M01ajC9LylLKeSS8PD6d5GcZ8p9JsZ4u5LOR7eZyrTLAZvyO+0PKDbV4= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R431e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037067111;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0W7wUGVG_1717639855; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0W7wUGVG_1717639855) by smtp.aliyun-inc.com; Thu, 06 Jun 2024 10:11:10 +0800 From: Jiapeng Chong To: rostedt@goodmis.org Cc: mhiramat@kernel.org, mark.rutland@arm.com, mathieu.desnoyers@efficios.com, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] fgraph: Remove some unused functions Date: Thu, 6 Jun 2024 10:10:53 +0800 Message-Id: <20240606021053.27783-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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'. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9289 Signed-off-by: Jiapeng Chong --- kernel/trace/fgraph.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c index 4bf91eebbb08..c00fbf1d0dd9 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.20.1.7.g153144c