From patchwork Thu Jul 9 17:45:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235176 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632113ilg; Thu, 9 Jul 2020 10:47:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMP8dEzXlN7jW8GqfeIV5jJAmTElgaR/MH8r9yerkoBZbDL9XSL8/fNVmNTPywkyhlMsdU X-Received: by 2002:a17:906:8381:: with SMTP id p1mr56623973ejx.280.1594316822700; Thu, 09 Jul 2020 10:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316822; cv=none; d=google.com; s=arc-20160816; b=j/eGP/Y2sE9jeq1lmLtDV6O9TcGSWKE0ixmz84IddKTuQ25TVf/2umlKh/UXM/DVRO TJnvAb2po3ls4SLKp1GA+MO1BGcf6jN+IYR2KJDo9joE1cy7GVOmIzQJGysPSzGL21al zdPvlhhLJA+TpjjEBf25E8vRf/m8/JYzqC5FLmfK46WkghVeYy7/UY8T1MVD64so64JW AfdOc2a4mrDPiUGs3/vssT62Ej9kFlwOwOuHq3AocGoFgq75Rlf4lEpD93Bb3OL/jIqN jhC3Rgi+dlu3WKBF86YoQPnHdJ+iAmqxcerA5pMsPkl2WVOVNX097t4Bwsbt9FhStHyM eL7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s1f2VykJlM3ygLpY+EskgDzDL15LmxoT0Iv4BzUdNoA=; b=sCiAWeuyt0Jk1ciE6sGf8RNMDWlE9NJf0thIAORZF0FTbP/A8d91fdW48geoBKRhob 0VWUkPQTS+K8jjuWBDhfTte+zFrx2P/A6XB7oZyhn7DemDy1FTW6EvzSgZ0/FTPG9mwP NaRPZDkaE5kf6VyH3Qz/JJGPwFao2fF+qTNdutTpzDeHzD1Nqk1zEvSsDSBU8h8wkrv/ wcgBjdW+bQrtGVsXVaXDLggK3sh8LeO6XvM0RHyWAviG+CNI0tIRk2SzbouM05JiVnoy tYEyTJs/royvIeeNtInHEQQ3WnvFaZUfgx1pXJWVkDpJFJb9TramRRINFRE3BhFB4d2p +iTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gwDnoQdj; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lz14si2465629ejb.65.2020.07.09.10.47.02 for ; Thu, 09 Jul 2020 10:47:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gwDnoQdj; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728753AbgGIRrC (ORCPT ); Thu, 9 Jul 2020 13:47:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728594AbgGIRqR (ORCPT ); Thu, 9 Jul 2020 13:46:17 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0127C08C5CE for ; Thu, 9 Jul 2020 10:46:15 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id q15so2842914wmj.2 for ; Thu, 09 Jul 2020 10:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=s1f2VykJlM3ygLpY+EskgDzDL15LmxoT0Iv4BzUdNoA=; b=gwDnoQdji4kOk1Gx453RYcXY4/p19T4HB3UAOQ9r3rQaWnjsvW0jmbOlA03+LBxTq3 cccf4WtZJ+jFJIgvLBlc0fl05f4XkCMrn/PZjoP0/eB1sReRdbWyhr4PgQUteMSCJQT5 74G/xtJ+G9WQRmREe9OMsS26QhO7p+oQAjCufWAQe2QSW7gt0smOYdfq5SSD1K3GO1Au neGuSaytWS5kVXNk/LVX6oVer891CsdBxti/TKD52US2OTHUnggCtcKhtOL7mXQkfZDx YRQeURxxT3p/+ET+tmL3fpIPL5mLt9Io2nWOgCYOGe88FmGV+/WRJRN4Cv9Gac3dwdn3 iDhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=s1f2VykJlM3ygLpY+EskgDzDL15LmxoT0Iv4BzUdNoA=; b=OY+z9F6jXFouefQFoMDy6GqX/jpnIFyKJnDby0kAyg4LTVoVwJb+79n8QEf4tCO6Nb Aik/lg7IHAzm/HVY0zcQ26w75kOKtRrVwrMwCdMBBEgJOuXLp6NCQtKc5y64r1Ce908O A1lzBG+1IB0obgQLdfQx1SAvxlGGpfUuhTu2IyaBItkI69a0uCm49JbxYb2itvJTjp8l DmlWghj7EBukOCww5LJV0q6vgwmoHPuMrVmxnv9B8O7kK7Z6QhayLypRMzAMaTYdZ5g3 M+Izndk1ljXVXS/5/DLif7k3U0ForQg8TBEwjARXm5/wxxbUE57lLivqtLUFvsuQH0oQ J4aA== X-Gm-Message-State: AOAM532/Gay2DkktFBAOFoPJpRpX6q49mxBOWA8HxUcmaKikC2LOuZ9r 7Dbt0eN3b5bOZdPwBvRYN4hEvA== X-Received: by 2002:a05:600c:258:: with SMTP id 24mr1143837wmj.70.1594316774530; Thu, 09 Jul 2020 10:46:14 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:13 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Brian King , Alan Cox Subject: [PATCH 14/24] scsi: ipr: Fix struct packed-not-aligned issues Date: Thu, 9 Jul 2020 18:45:46 +0100 Message-Id: <20200709174556.7651-15-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/ipr.h:1687:1: warning: alignment 1 of ‘struct ipr_dump_location_entry’ is less than 4 [-Wpacked-not-aligned] 1687 | }__attribute__((packed)); | ^ drivers/scsi/ipr.h:1711:1: warning: alignment 1 of ‘struct ipr_driver_dump’ is less than 4 [-Wpacked-not-aligned] 1711 | }__attribute__((packed)); | ^ Cc: Brian King Cc: Alan Cox Signed-off-by: Lee Jones --- drivers/scsi/ipr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index 9a0d3d7293206..783ee03ad9ea2 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h @@ -1684,7 +1684,7 @@ struct ipr_dump_entry_header { struct ipr_dump_location_entry { struct ipr_dump_entry_header hdr; u8 location[20]; -}__attribute__((packed)); +}__attribute__((packed, aligned (4))); struct ipr_dump_trace_entry { struct ipr_dump_entry_header hdr; @@ -1708,7 +1708,7 @@ struct ipr_driver_dump { struct ipr_dump_location_entry location_entry; struct ipr_dump_ioa_type_entry ioa_type_entry; struct ipr_dump_trace_entry trace_entry; -}__attribute__((packed)); +}__attribute__((packed, aligned (4))); struct ipr_ioa_dump { struct ipr_dump_entry_header hdr;