From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 9C72C2F0020 for ; Tue, 17 Jun 2025 20:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750193696; cv=none; b=OcSxAcMBhVQvioai8Pg31j/vK8NtJXclsNYVDBCPK7mUFkqoGO+DUUsHZNKGGtEgNyYKyJd2kFizvWC/eqRZVj8cAnFwiyADvfiRGE4VFKokB0b2aPaOLHtyVTmEyH/o80ZyWPUpJpZbMwjod0DTfuQo0z8mC4vYKPDK7TgBJV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750193696; c=relaxed/simple; bh=k5HJSRWuV+1Mln/4BLkxqduXgXeG6WrJ7rZ+a26pUuI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=sZ0dx0Smu2YY53amV2L4l1Bb5SAB1oV/At0EBfe8nw/b5ulIiWm4wIvJtexNbn3S4W2vN9rUFAff2mKqpv9GQoNKDOLSSB8hRF5rLBKzQhA5gypCEFiTvAhNQWxg5NC7RbMOV9dXQq9OdrifskRZE6C7ukKsS8ulgTLkFTbIO64= 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=ohpAtdWI; arc=none smtp.client-ip=209.85.216.74 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ohpAtdWI" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-31215090074so8467130a91.0 for ; Tue, 17 Jun 2025 13:54:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1750193694; x=1750798494; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=3xlQaSGpJbgGPPU4jLd2/c6BgEh1uTog2yg7MQ8roEE=; b=ohpAtdWIMsVPagMpTdEEqbqqGJEINACu8Ez32VvCIGk5A+AgpJJuYZhnJPE8pa3ndx yIO0vpR4sffKtd3c2QS3SCu7gFf59OqD74lvwoQPMSdmv+wEEoeC8PRjQPrA/IkC9ySc iUV2S87P080tR+6/Ky8iUARHW48TDM9VYQcAc8Shk24QFrOtogIm6k63ONgEXEcBItYQ 2qvvfIK0GsWr9yb48s4krz9hCG9COM3TEUKPZe22CGDcab1pjY+8LmWZDuqyaCM5yU+m kKldg3mkL2WGm5Yk7j5wwf0Ji3dcFfr8VOFENb2KUePCcUFSMojba/c7H+Pwwyia0N6f qHNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750193694; x=1750798494; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3xlQaSGpJbgGPPU4jLd2/c6BgEh1uTog2yg7MQ8roEE=; b=JWE2ohy/TTYfeNpnSaxjBrEEx/gdQVvv9LOcjfMhtDBo4bFgLsXGqpmub3o6Vv+x0F O89D+TfZWl4ELyGs2dapC+6ocgWy86ZM6CtJ/2gxcvFF2A6QEM5frNI83yF6q3GHxp1h AMp06krlkqKjYRqu/UMvIDt0z4ZePq9D7a7gRAo1sCALxSlgD7VaYEirQcg+taEoPFpj iK4L7SR/q1KFK/KJeAhZTxfMgNWeiW0b4IuZBdwz43grwYBt5/FqBhsYMwbQL9LQaBIv fqQBawiu5QNys6kpTxvk7C/8QzQJlflaKAWYd7E10W93biqTLGD2mfTaHCxV3HLWNO1s pbFw== X-Forwarded-Encrypted: i=1; AJvYcCUZyQmb+v5Nz/JmdxFpluJTlqG86k5R6hTA2Q3lX7v7BtEoMAQMUkZ4JwTLxoIhAPW0Yy32u7ustruDin1Vrg7a@vger.kernel.org X-Gm-Message-State: AOJu0YyTe6nsJSQqPtcgvy7Ia+/Val6vDc0bpH3vBYTho6o+bUw7x+Ez QxFbvlwoR2ty4ZLpZMINdv+HseIZGIevjQS/nIteOSQ8rzw5WpPCNfL2iaXLWzwb6ru7g/G/RFv c7ml+RSktRA== X-Google-Smtp-Source: AGHT+IHSVka4J5eAYOjalcWEI2+0Bl25UJzGl73fRn3zliqO43FS2CrU0+33Xsoa30I91krygdj+UOT9DaDG X-Received: from pjbse12.prod.google.com ([2002:a17:90b:518c:b0:2fc:c98:ea47]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:53ce:b0:313:23ed:6ff with SMTP id 98e67ed59e1d1-313f1ca7758mr19569857a91.1.1750193694031; Tue, 17 Jun 2025 13:54:54 -0700 (PDT) Date: Tue, 17 Jun 2025 13:53:20 -0700 In-Reply-To: <20250617205320.1580946-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250617205320.1580946-1-irogers@google.com> X-Mailer: git-send-email 2.50.0.rc2.701.gf1e915cc24-goog Message-ID: <20250617205320.1580946-4-irogers@google.com> Subject: [PATCH v2 3/3] tools headers: Remove unneeded ignoring of warnings in unaligned.h From: Ian Rogers To: Eric Biggers , Yuzhuo Jing , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Arnaldo Carvalho de Melo , Al Viro , Christophe Leroy , "Jason A. Donenfeld" , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Cc: Ian Rogers Content-Type: text/plain; charset="UTF-8" Now the get/put unaligned use memcpy the -Wpacked and -Wattributes warnings don't need disabling. Signed-off-by: Ian Rogers --- tools/include/linux/unaligned.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/include/linux/unaligned.h b/tools/include/linux/unaligned.h index 395a4464fe73..d51ddafed138 100644 --- a/tools/include/linux/unaligned.h +++ b/tools/include/linux/unaligned.h @@ -6,9 +6,6 @@ * This is the most generic implementation of unaligned accesses * and should work almost anywhere. */ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wpacked" -#pragma GCC diagnostic ignored "-Wattributes" #include #define get_unaligned(ptr) __get_unaligned_t(typeof(*(ptr)), (ptr)) @@ -143,6 +140,5 @@ static inline u64 get_unaligned_be48(const void *p) { return __get_unaligned_be48(p); } -#pragma GCC diagnostic pop #endif /* __LINUX_UNALIGNED_H */ -- 2.50.0.rc2.701.gf1e915cc24-goog