From patchwork Mon Sep 16 22:15:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 13805795 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (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 D26025258 for ; Mon, 16 Sep 2024 22:16:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726524967; cv=none; b=eLq5tOCd2DtSsbcrnizjYondgjmfnxgqhIHIg3fLsjuFhZY5Bfrc9jyc5M2d3Dp27H+YoRFpcEFvPz9nPnWknlBBbyM5ZbFWQS80oO4xOEc6C0ZUpYFgAXmKxo8BgtWsZGM/U9QAMnSv1oBLfezdVp6vyAKDfV6PLs8Yz4FW1nE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726524967; c=relaxed/simple; bh=a/CYzoyiyTYqxyaRI1+XfZbNFCG0nW5mkKxUaYDHDek=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=QWfDFzUzvS2MsfpEEpc8juYTBeYZceaZ51RUqNrl9LRV0DiburgdWjB484Q0krSIkbrH6zrxeJd40A3hKA6SSKQk5OD/XWBAzJMly5UTS5sSuRbssOpYCa9I5H57PMdlRBNF7A5z26q4dEDxEkJXf5WppGkteVD6E11O/n/eueQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--samitolvanen.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=yVGBEOxH; arc=none smtp.client-ip=209.85.214.201 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--samitolvanen.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="yVGBEOxH" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2056364914eso52432885ad.3 for ; Mon, 16 Sep 2024 15:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1726524965; x=1727129765; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=8n7Jp6FXHVveLAJZ3oVyHEjTOsFYi1ZJhtN9OuWs38g=; b=yVGBEOxH/Ly+H0YeSELrg4XdDySw3e6tgnQcfKifatfrt7k24W+xKuRPlh9HxCRGXJ tUvv+qWwG/GZNhAYSk7PXzBPJ39ftm/we+olmLnDb88YkkVWz7fBuYTnbLsv20795HT4 6thRu0G108/6hgreqqLuxt8qVwncp22LWy0kg+vKLZ6ZigLzeuAxJTkOKe9Xr2FvPkmc nzvC4BY9OLjeXGTnjbhYrSRzS0I7AHL+SvDfclmnfYZ6HwSoLYfVm/G7+l/4RlNPKkSQ OdHF7kl9NHbylw+kipOPCdLDApFet0RLgdiuTn57k+b9VxfnkP6J+Zsc7zWYxkC49SSH HpVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726524965; x=1727129765; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8n7Jp6FXHVveLAJZ3oVyHEjTOsFYi1ZJhtN9OuWs38g=; b=O+MAkYZiVXdDibOCKC+DY7FsLEDxMuXPP6r4vtrcKrgqd90bq7G+CrJpEcg6qapDX2 P4whFuTa+vHQg/mbx2tjL+jbq1V2HNlV0hlsxpiTcMFoeIzneqHfvcx0IL2opP5Usij8 hN18yV39qj87smt4Nlu+UmNOQKcJhoekd8WxE9SzhQBggrublJz9oQ1SlBrn6qSxLF+0 8WlIBTIcH7bRSAUA1KacJV8bUEscC+Z8cTqGnwAQtiUAALRbqs8dEazh0XHZR33hOKzj ec0Hv1tHt4h++E6GfBg5RIhewwcGDMcYRAXAUX8LzeQ/sed3mZ5F5h402h7xTxkQwbXP t4zw== X-Forwarded-Encrypted: i=1; AJvYcCVjTMEkrRM9I3eIyBsSElaUmeINQLXtATa9yONnZtGxsj9gycgTD44Fg5RKuK7jEplNGSPj30WpifpFrVi4R4DZIME=@vger.kernel.org X-Gm-Message-State: AOJu0YyDOaKDmPWNlwtS08DK7YOwxNS6Xw80tLzxDsKyt2qTvxm7CDuh okGhtukZG3yA0ad9qpCqE2qAjOSItptzNl46MLT4eX0nVBZ7L8FgHzqaIcvjJ7qmAT361usrOMb +zbZxPH1ovUUwAXIIN2+iZMdFCw== X-Google-Smtp-Source: AGHT+IFbXOgcMBi5dra7XRoap6d3Flff/7btwVMF42wsUonrECBkq1byGD0+nyRAgMXyuksdh0ANfJQ9psgm5Y9m6RM= X-Received: from samitolvanen.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:4f92]) (user=samitolvanen job=sendgmr) by 2002:a17:903:2450:b0:206:9b0f:48d7 with SMTP id d9443c01a7336-2076e3f7779mr10596575ad.7.1726524964945; Mon, 16 Sep 2024 15:16:04 -0700 (PDT) Date: Mon, 16 Sep 2024 22:15:57 +0000 Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Developer-Key: i=samitolvanen@google.com; a=openpgp; fpr=35CCFB63B283D6D3AEB783944CB5F6848BBC56EE X-Developer-Signature: v=1; a=openpgp-sha256; l=876; i=samitolvanen@google.com; h=from:subject; bh=a/CYzoyiyTYqxyaRI1+XfZbNFCG0nW5mkKxUaYDHDek=; b=owGbwMvMwCEWxa662nLh8irG02pJDGkv1snW9d7fuZ8ha07VvnNfZv3a+6rK9O565uXXroaHc 5ik19650lHKwiDGwSArpsjS8nX11t3fnVJffS6SgJnDygQyhIGLUwAmcmgqI8P7Z5qT9p1Ymn97 73PNK73TTOe/v1DtkWgi33i32dzv3px1jAxNnA/Y+VeyvlNnKMjb+Ln4r5fqi1bBqS82HRf46K1 xcSsjAA== X-Mailer: git-send-email 2.46.0.662.g92d0881bb0-goog Message-ID: <20240916221557.846853-2-samitolvanen@google.com> Subject: [PATCH] x86/ftrace: Include From: Sami Tolvanen To: Steven Rostedt , Masami Hiramatsu , Mark Rutland , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Cc: Sami Tolvanen , Masahiro Yamada , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org uses struct pt_regs in several places. Include to ensure it's visible. This is needed to make sure object files that only include compile. Suggested-by: Masahiro Yamada Signed-off-by: Sami Tolvanen Acked-by: Masami Hiramatsu (Google) --- arch/x86/include/asm/ftrace.h | 2 ++ 1 file changed, 2 insertions(+) base-commit: ad060dbbcfcfcba624ef1a75e1d71365a98b86d8 diff --git a/arch/x86/include/asm/ftrace.h b/arch/x86/include/asm/ftrace.h index 0152a81d9b4a..b4d719de2c84 100644 --- a/arch/x86/include/asm/ftrace.h +++ b/arch/x86/include/asm/ftrace.h @@ -2,6 +2,8 @@ #ifndef _ASM_X86_FTRACE_H #define _ASM_X86_FTRACE_H +#include + #ifdef CONFIG_FUNCTION_TRACER #ifndef CC_USING_FENTRY # error Compiler does not support fentry?