Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp99086lqj; Wed, 10 Apr 2024 05:25:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWeVVb50Ix5YMTpJsS39PrUbTY1uPI3wm0O3bIpphqtTt/l0EHmgKkvDyMaf+MqDWuKLw94MEz8buipBLD/Y+waYV6/AVCE3o4Q/2VjLA== X-Google-Smtp-Source: AGHT+IFxL10tHcfL5EWFG2T9N4ZFllwMTz9UagYGaWhRVsd99k7NszOJu8QsWPivrO01AAC8xWIh X-Received: by 2002:a05:6214:f6e:b0:699:1252:e9a0 with SMTP id iy14-20020a0562140f6e00b006991252e9a0mr4633925qvb.1.1712751899887; Wed, 10 Apr 2024 05:24:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712751899; cv=pass; d=google.com; s=arc-20160816; b=cBblN2++oHQU36dmOj3yf/CwYh6L9HAQKXR9D76KTaQ4FA7jIefVi/owGoejPODX1F DTnfbxxJdJABZo8gs5qr6nO/e6sqLxsw5kWjVy4xxFEza5p3tEZLQuRRXYoXKTAQ8a1D YesdwN13qWG64E+NlichKRJXaKN4WZX0eEcL255lLgoIw/c69oxCsctd3MpMdQvUBvzS 5910CR2zFdlTZvfPZXt0H6B2n1Fuc3vXW5yryDl3l0x1Aq2J7fJq1244RTLSBn31Tntc v8BokOaaSypOdwXxh74/WVpINRwWuA/qvq6ZngtcT2Go9exJPjLAaJ26SjLghq070X3o YM7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=RUIlEzeKDdt/kW+iR+gyTxS6xtOvltAaKzIdl1cntp8=; fh=bU0S13Rp7FJ9/XdgL/9s3Q+hOdpNiX58e7VOB6N6uRM=; b=oJsXEcU6BxlHVXFDeMO6yisjc/w0jJouHeZAhKMsDtnCIc6wQfwUCr+M40lolSt5TA QuekYE91n0vTsmeoY4wR+g42917F/q/FLciMyyOfSbOBmG6QCFLKi5OSl8e/cfNquLdz /CeL2f3l5fbzE0tIDK0A77k0Oak5dYXhZN6KO2xaYJaQt2ZwTnbZss+acHi06tNnfyn6 wXBMdfU4x+zCHoZKYPh4ie+vioFVF4ASiuqT9uVTQlJpVaAdZrwoK0OzU8/qNOtLY0k0 LYavKTayH1l/3wadwhDRqaZkSwFqL1FuY7asE7dfRfhACbGPSd8Qbfx4DeMoYVny+S4K iqFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YTVLi4rG; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-138482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138482-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r5-20020a0cf605000000b0069b421b2bf2si386438qvm.137.2024.04.10.05.24.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 05:24:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138482-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=@chromium.org header.s=google header.b=YTVLi4rG; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-138482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138482-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 970091C21B53 for ; Wed, 10 Apr 2024 12:24:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8829715B997; Wed, 10 Apr 2024 12:24:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="YTVLi4rG" Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (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 16A1413C901 for ; Wed, 10 Apr 2024 12:24:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712751882; cv=none; b=p4BdfMNp+KZKvWptVATfu0MHQCpUmrf/uhXkxBnmm3ELOGHANOcb2RMwO/eXXJSQqBZgr3pJyIHfIxn8GpDyHgq3y4mi4n874lnTSdf5pay03p0iM8uw+OLztP60nfRJwyIOh1UiOFfxp/zaEw34cfyInqT6TbURqsiydVQpvCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712751882; c=relaxed/simple; bh=VxCGXNSti7mYfnBvR6+4fLs7SRhuKscu5GzRYGQSjhU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=T6t1sY4CD2BpfM4AdZjUKyQb6ZzGHcb5LBqEYNw4FQLZZXWXWg8dDmJiJ4Vvuvh1YhHKd73Tpzvbq75iEqoLlaa5D4IDUlriNZg5f0Ng++0x960X/feu/+fGRaEUP+i3y06b3CeCall+nfJ19OHZAQUR9bE5sJhfQJc7mXy2u84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=YTVLi4rG; arc=none smtp.client-ip=209.85.160.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qt1-f174.google.com with SMTP id d75a77b69052e-4346e50ef62so34007401cf.1 for ; Wed, 10 Apr 2024 05:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1712751880; x=1713356680; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=RUIlEzeKDdt/kW+iR+gyTxS6xtOvltAaKzIdl1cntp8=; b=YTVLi4rG/JQEJQ6HjInbnGt4kGfjv+jPyUyIzoz+cc2mHv88l/v+nN3XTT3jEVU6pT CgnBNKez5rIj5rBnx049gx7sGARe0th+espbyV+zYi3sl98EhdQ5vSD4GWvTy9jzAAB4 LbOR8R/cGVDvou2GBBAIJmvb2wfFhBAL7WCRg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712751880; x=1713356680; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RUIlEzeKDdt/kW+iR+gyTxS6xtOvltAaKzIdl1cntp8=; b=as1HiAwnEHNgH9YS/UjkKZTjxwG+Aw4dvKlN6zEJdQsTtcIxIDMw+5msieMKbn2rE+ sZivhdqrhheHNp7KCfPonIzHKjFUDZ3iLXZcahRgLbr6WEuw7WRvait6q0wkIfEph+H+ LXEubnbGCHnTku5UCtzGkuISnDbzqqJjtxh5aVgli0Pjjw/s4iCljkMIX2d7k/QTZHZA CoAUN30UXehO1t64hRJPW+7m7XMsi2laTzE9rKr9XsJ18XnMKGR1PwyXAjAdSRkOJqa3 Qs9DyY36p2j+VVJ7oYEupJ2HzpEO+eRxOOzliVTp7q+W/QKfgMXlvD0ckasbdm9nFG7T Vy+g== X-Forwarded-Encrypted: i=1; AJvYcCVK1yHrQ/nuviAvFX5Vz54sKOSDuttUkITdHu5YVD8Cm+xWfe0VBeiyKn4gmc3WDx0KNQC0lnj5bF9pADwkVt7VGoj75UFqGNNBgasu X-Gm-Message-State: AOJu0Yx6GREZxQLQa3fXl+m614M+So70wL7mSb0exr32aVNyIt57S7Nh 66GdlBQfhvMd402+HlyXo6NgQ/Rj1Oa2U8VSsorp4gXA2MrdJbO+ca3B0HJQsg== X-Received: by 2002:a05:622a:528d:b0:434:e3bd:b351 with SMTP id dr13-20020a05622a528d00b00434e3bdb351mr6689698qtb.29.1712751880009; Wed, 10 Apr 2024 05:24:40 -0700 (PDT) Received: from denia.c.googlers.com (188.173.86.34.bc.googleusercontent.com. [34.86.173.188]) by smtp.gmail.com with ESMTPSA id jy14-20020a05622a818e00b00434ce53c664sm1921579qtb.80.2024.04.10.05.24.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 05:24:39 -0700 (PDT) From: Ricardo Ribalda Date: Wed, 10 Apr 2024 12:24:37 +0000 Subject: [PATCH 1/3] media: dvb: as102-fe: Fix as10x_register_addr packing 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240410-pack-v1-1-70f287dd8a66@chromium.org> References: <20240410-pack-v1-0-70f287dd8a66@chromium.org> In-Reply-To: <20240410-pack-v1-0-70f287dd8a66@chromium.org> To: Mauro Carvalho Chehab Cc: Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 This structure is embedded in multiple other structures that are packed, which conflicts with it being aligned. drivers/media/usb/as102/as10x_cmd.h:379:30: warning: field reg_addr within 'struct as10x_dump_memory::(unnamed at drivers/media/usb/as102/as10x_cmd.h:373:2)' is less aligned than 'struct as10x_register_addr' and is usually due to 'struct as10x_dump_memory::(unnamed at drivers/media/usb/as102/as10x_cmd.h:373:2)' being packed, which can lead to unaligned accesses [-Wunaligned-access] Mark it as being packed. Signed-off-by: Ricardo Ribalda --- drivers/media/dvb-frontends/as102_fe_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/as102_fe_types.h b/drivers/media/dvb-frontends/as102_fe_types.h index 297f9520ebf9d..8a4e392c88965 100644 --- a/drivers/media/dvb-frontends/as102_fe_types.h +++ b/drivers/media/dvb-frontends/as102_fe_types.h @@ -174,6 +174,6 @@ struct as10x_register_addr { uint32_t addr; /* register mode access */ uint8_t mode; -}; +} __packed; #endif -- 2.44.0.478.gd926399ef9-goog