Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp455788lqb; Wed, 17 Apr 2024 01:01:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEYZQDoUrwhenVnU5TQZ85i7O6oR2JxR4GNF9zf/AQ9RuvyEEcxM34rLyxm91ylNbF4B2mTGDLUaKgMo6EqKlkqY1k+rHmTjkzRPmjOA== X-Google-Smtp-Source: AGHT+IHNe/tj2lpDweu81jftmwwue++cj3n/DlU2cEMcpdXQGxHNltwjooQICmAr1E5VqZo49TRG X-Received: by 2002:a50:d75d:0:b0:56d:c722:93a3 with SMTP id i29-20020a50d75d000000b0056dc72293a3mr10074395edj.21.1713340877971; Wed, 17 Apr 2024 01:01:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713340877; cv=pass; d=google.com; s=arc-20160816; b=sYMJt9zvRv219A2/qoZ7VkX1FhJQkiBDMZFnohNKmcEzni/eCVGUTTbI/GC4SxyAfJ HErRCAE8qA8orplGsVFQzSiKfOFVGgoRZbn4AFYpI/GeVt+QYi2GqLAjTAG3Nw2mLgul PEZCpVXV4V4qQDusVC9fn6KhK8XcBAxtDewwk0FerW8YpqJHXmbtM22XvobfcpalubbU o6JUWtha3jAcqaYl2Jv5zsIyEHyAx5tKEYLkcVJzmhQHF6KrAr0s9ATwrDUAecMcqNMw i0gsEZrNTEZdONfBrk7Z9kKF1ckYoEJzJGQz/TtgSJkJRrdk0alAlv2OzYsnLEKDr4YN MJWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=NRcxTgh9CXUCeKLjqyiddKKqksb1f3wkwo+zMdhzkCY=; fh=s5QNzJJKEmaTZ6YsM1751JdWlZEwvSF7uSqinNmBTkQ=; b=sme1vibNc2NKFMMt3RQk4SRkrSkELPO1kLzVljyWy/gHwpuuWmP4AgL+W3pL5qbjWX 5qrBcJSFFQihvj9sZ5X79XxYN1usu4A3/EZeAXfVc7M5om3lS1oBfBSXt5S1WNIz94J2 XR3YS6eiccWhk/chnQZTb7vCLH8wKiJF3rgWgGwYM1DBGIBrxct9AEkC/J8EPEP/B2+F 9ewiDly2/cgYoadZGXwd3WwGMBldDHZEHSvlAFqLmB+ANrDJ927w9idWB/+bH0S3PbKR 1BtYWwZtvUap6a7sozjJI9JwGXlq31YCFnZSerF+eVF6A95TsLiRh/A4yXpobkXQd/VS BJCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=FOz49k4I; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-148091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c25-20020a50f619000000b0057083e6d7a1si97558edn.497.2024.04.17.01.01.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 01:01:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=FOz49k4I; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-148091-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.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 am.mirrors.kernel.org (Postfix) with ESMTPS id ADCF21F226E0 for ; Wed, 17 Apr 2024 08:01:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24A3E6F079; Wed, 17 Apr 2024 08:00:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="FOz49k4I" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AFB170CDA; Wed, 17 Apr 2024 08:00:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713340858; cv=none; b=ki9phYpHLt6WErb8zLcHUPN+MGfHKnA1hvTzCYrDW8otl/uneedHpr5j0YPQsZ4zP/Je7r+ISJ2CiyNBuqXEL6rkAQU5SopfVDKaxVv5NO/O5NMxMk4SqKBeeBrKPu1CtAAeWiH5HMhGH0aADNorGAMr5vSjo2axZULA9ZQJOow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713340858; c=relaxed/simple; bh=1nNtPhj9hxzF1XVfv2/BM3L77E4VnHGDfl1nJKWiDwc=; h=From:To:Cc:Subject:Date:Message-Id; b=o1Eab0jRMqJBjHOuO78H+0/1T0jjbIgvwaJPPpSnRAqlz4QQRAYhE57FEUn2eDm1LvcZLzH3aoj9eT6hIJpO8z2v1k0TdmLJiLIPTL2LR2Wo7QJ3oM/405uXlXNK91Im7BVNCBJj04MFHSsWfT4/1Ak47ODGIYCXS7J9/yPaaJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=FOz49k4I; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 0A5E420FD4AE; Wed, 17 Apr 2024 01:00:53 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 0A5E420FD4AE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1713340853; bh=NRcxTgh9CXUCeKLjqyiddKKqksb1f3wkwo+zMdhzkCY=; h=From:To:Cc:Subject:Date:From; b=FOz49k4Itw792O7LLjQYalOW1a4m1NhH/5n2zf50K6Sf6xIk6wHNU8kxnVvJ9ythD Rd4e/rUmkt85BxP7CG39soXp8x8UEs6YeN/Ju2zxjmFKmZnZQNccMkNJG4vo2ySEZu ZESnMC2tumU+Ft+2D53xYSde5VGTvjDDdjaIDwqY= From: Saurabh Sengar To: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org Cc: ssengar@microsoft.com Subject: [PATCH] tools: hv: suppress the invalid warning for packed member alignment Date: Wed, 17 Apr 2024 01:00:48 -0700 Message-Id: <1713340848-6901-1-git-send-email-ssengar@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Packed struct vmbus_bufring is 4096 byte aligned and the reporting warning is for the first member of that struct which shouldn't add any offset to create alignment issue. Suppress the warning by adding -Wno-address-of-packed-member flag to gcc. Reported-by: kernel test robot Closes: https://lore.kernel.org/all/202404121913.GhtSoKbW-lkp@intel.com/ Signed-off-by: Saurabh Sengar --- tools/hv/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/hv/Makefile b/tools/hv/Makefile index bb52871da341..2e60e2c212cd 100644 --- a/tools/hv/Makefile +++ b/tools/hv/Makefile @@ -17,6 +17,7 @@ endif MAKEFLAGS += -r override CFLAGS += -O2 -Wall -g -D_GNU_SOURCE -I$(OUTPUT)include +override CFLAGS += -Wno-address-of-packed-member ALL_TARGETS := hv_kvp_daemon hv_vss_daemon ifneq ($(ARCH), aarch64) -- 2.34.1