Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2436782lqb; Mon, 27 May 2024 22:29:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWw4o+f8AZNrSyd1NdebjBeHTjeT85fJ8A5jmLa8oaJmTzUgA2hPUt29iS1iXeukMYp3acrUIQvLiDCA2tkw+tEtaAWkqxWEIRcdoe2Mg== X-Google-Smtp-Source: AGHT+IHH8Bd4gJid+9xGF1H9SkK4U4GXXZ9zK0sqYWM36GwCWhdGVr7OQIDBCbWMqMiTa4f8AEBN X-Received: by 2002:a17:902:d2cc:b0:1f4:9ce1:6e76 with SMTP id d9443c01a7336-1f49ce17509mr51068915ad.65.1716874140451; Mon, 27 May 2024 22:29:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716874140; cv=pass; d=google.com; s=arc-20160816; b=UEXKvcR+B05qWBApcU7uKSs63sfolB4zEcgaZ4LVZIRPVm1vay38PhrIlDLbKKmOir 702HZyTM0ODJHkvUrLTfuWaCdIGPdW/khOEyI9NHMcPjY3yGZZK9s7VWWxxtkvkEJYnr WiPVjqwxhxHHQf7N9rIEDF/hwhx+h+jvMlVstukjt5uCPabB0sO7Scg8ZpySB6sBn/db YJeh8ElUxJUkGgW9w64hRYS1WFQSBmJEVDZJle2/bkF9q9elogQ07f1oMBDGGw8wSN2Y srW4Q+tzDJ2nm4FB1Go9DvlEIdoRGee3sSjCeJ4dcK2GnmGw4Iu/bp50CqU1hTP6AeUo OxUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=t5kFZAqWhL3uMzjEMOl+7Z8/CsSLGsMcTngYdrg2mHg=; fh=sNifQuhSU/EWZBC+WOzJk7Ign3c5KjDEhc9gL+ou600=; b=sPcuzjMR8wfHEME1ZCs/z12wIDxZB8E9VkhrSqRtf8nOJtclUNISQ/yN+Tzk0ndON2 Ziyvx+3stzAnxAaXoDIxl44A0SXG6kw4et+/htF0C/ACanC6G/7/GUcTvkOcbH8hR6fa J7827Utx965vmd8YUrAfi7NG4K6mGDt5k7f3JI0FkT4KDfDGP4WMRLT9k++ARGlNPBPh m5zdbUVFaUhxW2ao45jUa6w9o1xq3k55G/id8LdY4PdRZ2KFKDe4U9dzYQfbPSs4TNTL +y+K0pJEYdonqZGs0I/mhWrVtBu6hcJgxdnV/7rJKxDnzVzCsnWWSrqhSSuL5Ft1e7ci Bhaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-191769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c785d18si73460455ad.3.2024.05.27.22.28.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 22:29:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-191769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3F126B226D7 for ; Tue, 28 May 2024 05:28:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC33661FE6; Tue, 28 May 2024 05:28:04 +0000 (UTC) Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (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 1F67461FC3; Tue, 28 May 2024 05:28:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716874084; cv=none; b=Q8qL4ddBz8LWo/v9SwLPR40DHtCurXzpDhrnSvwOa8x56Q4e1u7fnqrPn/JGDhrJSB1nmuYIhtjqZSSjB9RBgXmz1+Pdj75yzhmgnF1uIzfedYzHKwfuNbtSTjMVLOMeTy9qGFx2KnxLPBVO+iNEnm7xGH+acgw6TiG1Hj2cg8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716874084; c=relaxed/simple; bh=1R7MWX4+mwMsp8JZCjM+ndoUuOg2Be0WWXY4SVDxvz4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q4tAIPWvlGruUTw99ZZCJYgGs83cDk4NQEGZFjRszb5P6zkMzn3XCD13RMb63IyXyNycdFwgJHkHEqPZoruFXxOZtt1b00w+tUwH+L3QioxY2pOpN+ZmZWludabT4r20F7C2/UZyKfRcythbJ/JGGTBd7K98E+1MI8NtNKJPmZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.160.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-24ca0876a83so202426fac.2; Mon, 27 May 2024 22:28:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716874082; x=1717478882; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t5kFZAqWhL3uMzjEMOl+7Z8/CsSLGsMcTngYdrg2mHg=; b=Ai77oaER1OHm2d9gUIsZbu7u7RiDk58ZzO2Xw9X1lPufEeBjwEdts16slA5WCyNLSG a5/lm8o9icEou/ZecsYFS7502ThTMoQB4lWRPFLGm5DbUh75WmHQSBAJ+2CE7yz0XQ9c ThQzsPtx0RM9OLhBpV3xmSbNS+nEI3hMWVZXkJovaz5ApluraUxag3aQvCzItOLxuHQm cwpNnBXFDacDLjaH6DZZ+anFZk//zX+x0OdCsTuiF6aDDQaUFiij3qk/Cww0lIF09Bi5 JlFLLU+hKOWew4Khd+oKq9seiyxOGbA63mDSZ8yqm9vzCIaIn7Vc76+b2o1iBi3zdr3o zmkA== X-Forwarded-Encrypted: i=1; AJvYcCWtLalVNeuTFbPnD4S5udPpmWZZHfPQSyqCDBYTz4/yVyb5ic0+yZY7zLlg27XcjSoTZrkkL7CvfHAEfDWh30e3F8FVa6l+iIxjDnw84ALXWrHzR/qBBe+0yDdJNkLVTgXCNniawZmvdvxx X-Gm-Message-State: AOJu0YyKuzaFJRLOx9GR0o97xlhf3kl9aTCEWSWeik9tQ+NpfJaLXxl/ swhhdXV72zMUf4eQxu40Tx+Ru+TbXNBdUknXfqeQ7ND3zKzO+myJ X-Received: by 2002:a05:6870:b68c:b0:24c:678c:4282 with SMTP id 586e51a60fabf-24ca14011dfmr10707891fac.44.1716874082135; Mon, 27 May 2024 22:28:02 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fd4d5b1asm5697366b3a.206.2024.05.27.22.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 22:28:01 -0700 (PDT) Date: Tue, 28 May 2024 05:28:00 +0000 From: Wei Liu To: Saurabh Sengar Cc: 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, ssengar@microsoft.com, maryhardy@microsoft.com, longli@microsoft.com Subject: Re: [PATCH v2] tools: hv: suppress the invalid warning for packed member alignment Message-ID: References: <1714973938-4063-1-git-send-email-ssengar@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1714973938-4063-1-git-send-email-ssengar@linux.microsoft.com> On Sun, May 05, 2024 at 10:38:58PM -0700, Saurabh Sengar wrote: > 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. > > Fixes: 45bab4d74651 ("tools: hv: Add vmbus_bufring") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/all/202404121913.GhtSoKbW-lkp@intel.com/ > Signed-off-by: Saurabh Sengar Applied to hyperv-fixes, thanks.