Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp429416lqk; Sat, 9 Mar 2024 18:09:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVE5Y13qfUOhjN7uQKiGyKOZs5DHiaUmSC1Ct316zeJH+UDyYGtI0OYDucJ2tkU1v22KOu+Ra4NqMCFrNlrpvsviyVzKTdO9ghdWLq1xg== X-Google-Smtp-Source: AGHT+IGvvBtq04tzfHKQshmP0TwfHOVz+v1BlU34JuEfSidIZL+eOM0iGSXTx9yj0P4L5Za1BrOn X-Received: by 2002:a0c:aadd:0:b0:690:bb9c:f0d6 with SMTP id g29-20020a0caadd000000b00690bb9cf0d6mr3043794qvb.18.1710036571384; Sat, 09 Mar 2024 18:09:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1710036571; cv=pass; d=google.com; s=arc-20160816; b=iRE1G9DxaL2GBQscIyZNZpWVW738/gqE/e4fXutP7KX78yJzoPzPsjGOgjg0QmGtbr uB3Hw8MzfX3QpXCzkG1UL6PH75SH0Yqbwu9racKrSKPe7jw4bFFSUwl3LjiYRamCkJOp N9vYXvkcboTWs2F7VeeVzO2Wfifl537RGeWYd9V3z9deiA2jfp3MkmSKXM+7Py2ViOfX kdiYyNvV3k2Tp9lTs3zU9nMzNhUeukEDkVfC2+kTgOXU0Gv818DoZYlypt0N5gPMUjLH 2ghh6qzySOynwnUxs/AmuLERx3cTZDsNzqbvO86Wx7IQsKw54pMbmsX6nceXXsEVHpwO C5tw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:in-reply-to:date :dkim-signature; bh=YcbTXn+GZg98Vv/BPAp4vRUPCLHW4NXMPZPsnrVHKvg=; fh=ZZ5CUxrJntyPv61YC65S34Dq2Ob/PSCcZqmDhw0O8CQ=; b=CDVG2E3VjRA9MlXAVFSyfsDfC/v6Y4+p5BGQ2jtQQA823bPse3VzxpiEbvzzl/NyYN QVmKzi+PoggN14SFquC0OUNG4iizBxnoGOR6iwPUobnYZbGN5Bwpp4ZwvWqiR/9YgQa4 +QojXUjtzxaDNc0nL1LJ8UqN0/LCnSWfwjruz9LIVS9wq7GWBP0fmMl7YwivuZSgO+BJ ZaaAHGllitdQsMzpVs05dX5KZCHCcgfiw2YeJKfNjYw1dKzUAM27G072jKbsRCjs4epx paRBz78OCLtLXntZXn21/1Q/AWcC6F4IZf5PWfqkR6gsESBiIquDieEbXBSWo+wZnKLC a2PQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LlVbaPzg; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-98095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gu2-20020a056214260200b00690bbfe9e66si2632730qvb.457.2024.03.09.18.09.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Mar 2024 18:09:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98095-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=@google.com header.s=20230601 header.b=LlVbaPzg; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-98095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 15C1A1C203E3 for ; Sun, 10 Mar 2024 02:09:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B36873A1BC; Sun, 10 Mar 2024 02:06:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="LlVbaPzg" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.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 A56F437719 for ; Sun, 10 Mar 2024 02:05:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710036359; cv=none; b=IMsW/ttoKMpnnomQeoxNu8bUtiytSt2/hg5VeEKj+hb0LezHA1RaMipQ6uWlxYCu/bmduAYISmnJEYSqnYGT7d+qStxrF0QA8KndK5uJ1FfUn1wqe73y6xtCPZis9mV7/2dv0G2CPbHwM3JL8Y6Lz3+jEc+FFGJlTlTkbeL0+S8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710036359; c=relaxed/simple; bh=ZWL6CpbSDkoHT9bHTSvzN2HvMNxtU4EmDh1g2wTW1tQ=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=o0MBg5+JCornX/0G1bJsrC3TR1HFZpkLrHd5VC7h520sPJdNNOpjhLwGWqBPGHw1QR1VhQJOS5QbDsYlJT1qDR1JuNaZizJ4qWff0KbGxatkoExj4yV0efaab3+WtiyopIVDRFG0/5e7KdQWuX8FK35woH09c0z24Z7+emaMnmE= 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=LlVbaPzg; arc=none smtp.client-ip=209.85.219.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--irogers.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dcc05887ee9so2813660276.1 for ; Sat, 09 Mar 2024 18:05:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1710036357; x=1710641157; 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=YcbTXn+GZg98Vv/BPAp4vRUPCLHW4NXMPZPsnrVHKvg=; b=LlVbaPzg3SZLzeFq+0upg5FmL3naDuQtNeVRRATjaVIr2Ao293gZStjMay0I88luJb REZWEdtqNVjNwvVaG85n0qI61sVPKbW71X5dQN4+gbn7LnuOkPQsUhzejb/2OF2y6b13 G7KKYmjBXkkujaU+hIErFoa0+02M3n4FD+uhgeaOZtQVLT4NjD4xAK1VcIR7DWWwdFP6 tOqhUI//yL8wD8dNPA6Q9gXmA5Xkc+LXyrE2mrZ+3M9kQm0LEN8W70xqqiVI/uaArFXI h5jGKEiwZOhtgM4DmUMMXktvWALZTepJakcPvqdRTTHbDTMQ1+lUtXQXtOkyznvsVOIl 07/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710036357; x=1710641157; 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=YcbTXn+GZg98Vv/BPAp4vRUPCLHW4NXMPZPsnrVHKvg=; b=maV1RSdj+YYDbiITWJMVKWBsy/yPywO+YSfrHTnxoTXJtZ5j0XV2i/9gzqH6FfSgyt XCI0GxrzCtj4TQ5C/dEzFnBr30sX9+MZSn9NLC2QUxzI/e3Wag31PES60ydXWVsTmuxG m5ygLWroMnAFAeiX73LTTkxxG1PXA5hRFc0Anrob0xn+qHos+jAjv+lffd3OkfsvnbVy EMYfcw9ASgo79yA+/mK0I18/H8bkkB2JfBKmrQ7/lQqoNjlhMYL1ZRAMb+uZ2/OWpFml 8rNmmJ2qYHNhISMohCLQjKj2BOWb4nsw9J9fhvX6Bdx494Bj7gc8gLmGuxnsWq9nNxRw yfng== X-Forwarded-Encrypted: i=1; AJvYcCVsykt+1XJJdkjVJWA9EL9rZDr83xGl9qbpWh1vu9b2gboouL8r4jS8ZvgTHLWKBsnnnh1N5Z9WrrLJVu+2GhIg1ozClMpHaKlPCDLV X-Gm-Message-State: AOJu0YwZL5L5/BnyU9M5oXxfiXJZo56wTcflhedbKuYvi2OXfYHMwDgQ /pD1U7rVhKjkkBPqWgODMyEzzpciwyDu5EEahiqrrXILuVOhMpuGyvoFHZtBNKzb4N8KJaeoBJG ckRex7g== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:a63d:1b65:e810:3ad3]) (user=irogers job=sendgmr) by 2002:a05:6902:b06:b0:dc6:b982:cfa2 with SMTP id ch6-20020a0569020b0600b00dc6b982cfa2mr183760ybb.8.1710036356770; Sat, 09 Mar 2024 18:05:56 -0800 (PST) Date: Sat, 9 Mar 2024 18:05:05 -0800 In-Reply-To: <20240310020509.647319-1-irogers@google.com> Message-Id: <20240310020509.647319-11-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240310020509.647319-1-irogers@google.com> X-Mailer: git-send-email 2.44.0.278.ge034bb2e1d-goog Subject: [PATCH v1 10/13] asm-generic: Avoid transitive dependency for unaligned.h From: Ian Rogers To: Arnd Bergmann , Andrii Nakryiko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Ian Rogers , Adrian Hunter , Paolo Bonzini , Shuah Khan , Kees Cook , "Gustavo A. R. Silva" , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Andrew Morton , Liam Howlett , Miguel Ojeda , Will Deacon , Mark Brown , David Laight , "Michael S. Tsirkin" , Shunsuke Mie , Yafang Shao , Kui-Feng Lee , James Clark , Nick Forrington , Leo Yan , German Gomez , Rob Herring , John Garry , Sean Christopherson , Anup Patel , Fuad Tabba , Andrew Jones , Chao Peng , Haibo Xu , Peter Xu , Vishal Annapurve , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-hardening@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" unaligned.h uses types from linux/types.h such as u64, but doesn't directly import linux/types.h. This can cause breakages when the declarations of the types is reliant on a transitive dependency and the dependencies change. Add the missing header file to avoid this. Signed-off-by: Ian Rogers --- include/asm-generic/unaligned.h | 2 ++ tools/include/asm-generic/unaligned.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/asm-generic/unaligned.h b/include/asm-generic/unaligned.h index a84c64e5f11e..0cbe118e25db 100644 --- a/include/asm-generic/unaligned.h +++ b/include/asm-generic/unaligned.h @@ -2,6 +2,8 @@ #ifndef __ASM_GENERIC_UNALIGNED_H #define __ASM_GENERIC_UNALIGNED_H +#include + /* * This is the most generic implementation of unaligned accesses * and should work almost anywhere. diff --git a/tools/include/asm-generic/unaligned.h b/tools/include/asm-generic/unaligned.h index cdd2fd078027..768cafe6702e 100644 --- a/tools/include/asm-generic/unaligned.h +++ b/tools/include/asm-generic/unaligned.h @@ -2,6 +2,8 @@ #ifndef __ASM_GENERIC_UNALIGNED_H #define __ASM_GENERIC_UNALIGNED_H +#include + /* * This is the most generic implementation of unaligned accesses * and should work almost anywhere. -- 2.44.0.278.ge034bb2e1d-goog