Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp412552lqh; Sat, 4 May 2024 06:23:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuio72PulIDvEyqP11q89WSLDH5W1XVDdVIFDZxOQC9SFwdx65Xzx/RbVE41UgQiulwpMHyYIcUuX9K6SXbLdKITEV9WobmbxqALVfGg== X-Google-Smtp-Source: AGHT+IHXgjznP4jWenCyVeHJinMMPyryIQ4qHBN97o3A5lX3kg1DjuSXLmxrn8KVQ6/gDabyCYIN X-Received: by 2002:a05:6214:224b:b0:6a0:8225:d89e with SMTP id c11-20020a056214224b00b006a08225d89emr6815476qvc.25.1714829016703; Sat, 04 May 2024 06:23:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714829016; cv=pass; d=google.com; s=arc-20160816; b=HmpyW+7goazwi4H2DUTf2a8Kx2HOPlXaeIE2Pws3Lq6NbQkKXQaIHL4HM5uUohd4uf Z6Q7OGXwXVEljhJrDGZw9cgJSdOpmvw4R7zv/h0fZGsuJN5FGpL9PEasg2iye5Vd3i89 inkh1Qo8n0dQzWKGdsufMXZibm+c/e2Kae6wmbuvEX6EKcs6UOJZ0EUhUBFqQKgwiAWA jRHXa4H8MkNlz1V96zjTM9yVMmcXrJOGkFfsg/rfFCUBeTY3D1XLgde5zXvEAbvyg/y6 qTbpOICMuYiHXrO96JcvsH+AKuF0AYqW5jAPfjWCFxh7+TL4gU9VKOIB0SNAc711pXOb FnWQ== 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=OZa4/AI0KRmeOPBifgCo9CMRnurRIOGqDfHkqHbaCoY=; fh=57glYG8e6dDoG0AXVdJokKq9ybpW/0CGt4Jb0hW7uLs=; b=RY8lYYLy+OC7qBt45efzqEPtgYN1bVxN/UjkjfCyeK4kiKCbHaQpLy6/T4azjXUT0Z 7du/JTP8y2hiTzz7/0gqfpTaoEV5kHc5BIS2j8tbdMuDOWkT+tL6y9QBQmMKq8yJdhBw 3TK9dLuomoePvpYJ1wnDO7sCv2vmk9DCs8JSkqJXJfegHNEedwUFA9rI09SdSke0dwD9 otmzNHgRa6lHCj4/wiiIkm/euiUrJ3iTP5TXfmy/fXf9LHx8Jco8JHOh6B3XfPoaL/go VbFHjQSziCd1qBHLd/8JaIGhscxWodT+BzuEvUmgnsD/Mp9wVF3y65gjHa1t/F3y+XgW EcGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=YA1Y0DPK; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-168692-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168692-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.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 eq15-20020ad4596f000000b00699437f0563si5295920qvb.408.2024.05.04.06.23.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 06:23:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168692-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; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=YA1Y0DPK; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-168692-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168692-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.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 6C8C21C20F42 for ; Sat, 4 May 2024 13:23:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02F603A1BB; Sat, 4 May 2024 13:23:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="YA1Y0DPK" Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (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 8944338394; Sat, 4 May 2024 13:23:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714829009; cv=none; b=OoJFYiUlEJ6PzIUk9TMOBBcIDOF1fUUPk9qXN2LCodFIlBYsRbhlsIFjH3kGjtFgfj7PrmPGRfQ3COTY+VKFQZBJIaAXJTWDCOSTmCwaSvpyNyARIl/UEUJ5Mb+cRlz3yhGyR5srlPShajxTDLS53g7rbxotQtVjhzFYo2c+HHY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714829009; c=relaxed/simple; bh=j1r1jilx6lGom9Gnv3zuJNzqKo9xq3dNbo1zLxLuV2w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HZBpZnIN9ADSI6AUlpozLV32Hp/DP98KMWnHwfdzm6gX+xwErrSdNVnZfjtI5IyFxPCRpJ9nNJr72ZjQGWDjxqMSYLe7WVHC11JqsNpDuaaHtGFsWyutUMxpqwSQcJvzZmIgazQRimTf1gEm7YAkYqMA2nCQFoiOaj164OksKb4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=YA1Y0DPK; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=OZa4/AI0KRmeOPBifgCo9CMRnurRIOGqDfHkqHbaCoY=; b=YA1Y0DPKmf9ibdD7 TiJwjHTkWpvigshrq3pt4PdX+8cERDwazd6I4WpUIqO4DwSnN8qOQXFvTdgpU78BwcLL94m1uZ1lp aMS1753cUa/DDhN8zUUh6eT0JkB2XDsSHIo/d5ZaguElKO0fyimIK9NR/MktwG0R9K+p60FKe/AXt jZyGhtjgQ8JiA/I2wF6rjItnohJgCGEABhWPt7T5R/pA7nwsHyE96HuBbhLoKpE43eo6WYVxgbJ8K J6ligwwnXzDW9gfZEbq9b+TlcxffDoIrtGdcHC/Z4ATOgBmpxV6cfmsKCX+bKxnpEWBQ30zS2TViC VsO1QIaE7RszQpcjfw==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1s3FM1-004hMp-15; Sat, 04 May 2024 13:23:05 +0000 From: linux@treblig.org To: rostedt@goodmis.org, mhiramat@kernel.org Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH] ftrace: Remove unused list 'ftrace_direct_funcs' Date: Sat, 4 May 2024 14:23:03 +0100 Message-ID: <20240504132303.67538-1-linux@treblig.org> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Dr. David Alan Gilbert" Commit 8788ca164eb4b ("ftrace: Remove the legacy _ftrace_direct API") stopped using 'ftrace_direct_funcs' (and the associated struct ftrace_direct_func). Remove them. Build tested only (on x86-64 with FTRACE and DYNAMIC_FTRACE enabled) Signed-off-by: Dr. David Alan Gilbert --- include/linux/ftrace.h | 1 - kernel/trace/ftrace.c | 8 -------- 2 files changed, 9 deletions(-) diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 54d53f345d149..b01cca36147ff 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -83,7 +83,6 @@ static inline void early_trace_init(void) { } struct module; struct ftrace_hash; -struct ftrace_direct_func; #if defined(CONFIG_FUNCTION_TRACER) && defined(CONFIG_MODULES) && \ defined(CONFIG_DYNAMIC_FTRACE) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index da1710499698b..b18b4ece3d7c9 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -5318,14 +5318,6 @@ ftrace_set_addr(struct ftrace_ops *ops, unsigned long *ips, unsigned int cnt, #ifdef CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS -struct ftrace_direct_func { - struct list_head next; - unsigned long addr; - int count; -}; - -static LIST_HEAD(ftrace_direct_funcs); - static int register_ftrace_function_nolock(struct ftrace_ops *ops); /* -- 2.45.0