From patchwork Wed Apr 10 12:24:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 788722 Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (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 1BE2215B12E for ; Wed, 10 Apr 2024 12:24:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712751882; cv=none; b=cC9WokT7xv1tmBnqJkLu0hjAX2ENliKtMIykXAtt6A4TaIFrJIPeus6pQM18AUJR0fAiizmNhuar4bI9ea+6mTRY3Jyy+hArEC2dYvfoZNMDeB4P+rPJyx787uFHEpBrlWvt+9LyrFgsvoml5376e3WAyBvgUA0v30RmXzIPYTo= 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.177 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="YTVLi4rG" Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-434a6024e2fso22453361cf.0 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=q982A3oKmuDCjlVugrUI0bjRtH6ItDPdx4pPwDFspD/M9CHbkTXpOIhzk6Jir/xbx8 m3ZSjhTvuJ+DUSY/b+QGTKBLKbRwxunwREkJX4AJKsGA9ZOBCE/HEasg9E3H6o/Gl+FP g1jpshWQEaEL82uLIprUsc3h2nvGO2RmjKOLnGS1M78qDC+Pxr55hkgaVabEv20EKRHP UZTPxZIBho3AQGbKQDZjsvHYtCcE/0o3poUUpOJjzldq+N6N/PDm66YsPo4Hvs81GGh0 SWd9PlZB4WuX9IICMWaZVt32pa4sba+HmJA/6TxQAdqdlv2R2ZYHeFFgXiOugFe7t4Zo ZjMg== X-Forwarded-Encrypted: i=1; AJvYcCX4XrnEd5dUkaKwyhRX4pTrOsdcfrEtveYuKdxx5mFp0dPhBJYXFC2pvC2+mVGodeSUfshELiWe2CwCNpHfMzJsSrBRZjMVDR7swCE= X-Gm-Message-State: AOJu0YzJYc2WbZwbE794F6NRvrSqDsEfUYRniPvLzgrY9wed977HsJSG YglLO4WNQ6gmcxYnZm/tuFunrity/c4uQsivXA0WFc4xRPdHJEZfplZHwHUZy+ZtILWixAGZG88 = X-Google-Smtp-Source: AGHT+IHjv55W8B3JTfAxR3jtqM118qBjh2u5zb8b0xUS9LyY2r59GizLh0fI+ICqFWsglx6sCiE1zg== 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-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 From patchwork Wed Apr 10 12:24:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 787761 Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (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 B96E315B138 for ; Wed, 10 Apr 2024 12:24:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712751883; cv=none; b=L8fKyQ8/nNvSW1BiEGTs7bcHnelBkkD68H2Ao/bC5ZpcxKOL2lvwIQ2GWh5RMg05rUyxYmce3Wqw6UJrarmC4v8/F6NCHEGjljRTwftbhVZgvak5t123ij+SNjejkDqKEiGz7ioydN5uDn3JlV4qrMn5AEU/ygXo3XiEraXYsiQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712751883; c=relaxed/simple; bh=h+vf7G0kjHJYwkBBJVmcfH0e9L0dP7Y8XHI5/w0p8E4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YwQ3LwXATCwWFlaTiuSoDL7vRD/6P0t14rGi+i4NE98tWXnPLdleoCfk0TqWxirxQj2q91cJVX7AQFKFte+Oz4Vceuj0dbCBKs77jpK0UDiBBbeZzzZF+aVx+B+v2mbAYW/79tYCh/rhzk/8C0eGXV4grgqW6+NjalZIQxXaH2o= 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=U/dTef3t; arc=none smtp.client-ip=209.85.160.182 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="U/dTef3t" Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-4346b686dbdso21897141cf.2 for ; Wed, 10 Apr 2024 05:24:41 -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=cipJ+LzpYmxWDcZVVR8wW5ciiJUlfL1kO9izAQg8a5s=; b=U/dTef3taUbXkewVMCfH2+D+7zsCLSxLU1Q1Ok6MWaBeKmrGmViTlZ/40S/jkw/K8C 3XsYzUX0VWfBRZfJY32wEoOB3AO/Y5uqXTo83LZ0thxQUGcpvHad0zUYpKt/mt/sz+Wr H4JbalpY5SuY/mAx12oKhO8uXzejllEI1Sn+U= 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=cipJ+LzpYmxWDcZVVR8wW5ciiJUlfL1kO9izAQg8a5s=; b=JHKGpeCHblppa35NY+u+ziQfPreT4ceR1x1KRVmrYxNoWV4LZ05oMxPQRC0EJ6lwuu PE3ztA7rqhDQ3QZ3CcA1ozIn2IX+NXpssiqtga17NUiVxYo01r/mahSqwH7g5+3ZQQgw V/qk9lW+Onko2eBTjZ/xPZGqU+dVDJU4fnPJuBwtmOVWtu552yuEzI7254j99s6/O8bE S0Mep8ZVim7RHvhLKj98xzk3kLPAgGrSfSZt7CGNss7syzXLjy1hH4rwCD14+IlGK0Yk 84ZKDO9njxqkvzlUc1oecjE6uhZYHKBA7uPC0RMVpOGqWfEHMlrk2qBAqBdsq4EV5tqb 0amg== X-Forwarded-Encrypted: i=1; AJvYcCXi/CFuSNt+/9Lppa1KTas6p6W3YVhnoNYQAQt8f90KlmxuEUf6SujAWzpdn2dqA0qvbVWtl4B61o+M9Jquohg0BjMgeggwQk1ntG0= X-Gm-Message-State: AOJu0YzThHVENSFuCPIor5c/fN/eLlm7XAR+ozsYwCM+JpVGBKKSAfDa m0KC8s4exx3is9d2N0/4rZzzA7tP1vf36WV60A0eOzFbGqJoqMQBmrohMpG9LA== X-Google-Smtp-Source: AGHT+IEymOH/PliO0PmHpGlN2VUrtSmnhFU2/z8OBzR7B82zy/tWDCDTqVf5tJGOnAn4PsawMwbbnw== X-Received: by 2002:ac8:5a0a:0:b0:436:4da4:7801 with SMTP id n10-20020ac85a0a000000b004364da47801mr204451qta.41.1712751880710; 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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 05:24:40 -0700 (PDT) From: Ricardo Ribalda Date: Wed, 10 Apr 2024 12:24:38 +0000 Subject: [PATCH 2/3] media: dvb: Fix dtvs_stats packing. Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240410-pack-v1-2-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 The structure is packed, which requires that all its fields need to be also packed. ./include/uapi/linux/dvb/frontend.h:854:2: warning: field within 'struct dtv_stats' is less aligned than 'union dtv_stats::(anonymous at ./include/uapi/linux/dvb/frontend.h:854:2)' and is usually due to 'struct dtv_stats' being packed, which can lead to unaligned accesses [-Wunaligned-access] Explicitly set the inner union as packed. Signed-off-by: Ricardo Ribalda --- include/uapi/linux/dvb/frontend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/dvb/frontend.h b/include/uapi/linux/dvb/frontend.h index 7e0983b987c2d..8d38c6befda8d 100644 --- a/include/uapi/linux/dvb/frontend.h +++ b/include/uapi/linux/dvb/frontend.h @@ -854,7 +854,7 @@ struct dtv_stats { union { __u64 uvalue; /* for counters and relative scales */ __s64 svalue; /* for 0.001 dB measures */ - }; + } __attribute__ ((packed)); } __attribute__ ((packed)); From patchwork Wed Apr 10 12:24:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 788721 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (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 A4C3615B15E for ; Wed, 10 Apr 2024 12:24:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712751884; cv=none; b=tE6DWX50X/aK/B0uz4s+9rb57JE7zS8cGeZEZGexwjSEg5Zz4T2CChqg/KI1DnOpEYlGHFyCzYuQ1ZM/9iHVkw5nhgFFBpHbrenKJryRkp15mdTFbHTdwa5zVtfCiyc3xBOdE5bLUqwqLZM4hoP8mzHNo+y88G8EidwURvV+D9E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712751884; c=relaxed/simple; bh=tqy5RaJiXteDvdC/cyKO+b2613HwrFfwHfeUjkXSy8w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BrGRwm3IwDmF/Wa9ftHO7nZO7q5gXnlYIqvzCKWmoRYjnsDVcV4TsXrPLeCAu0CtASoSfBfIwC1lhwQhlgR0HIh2/1FjW/Y3zlOCWF0kc49cQ8GtbJ3pxHRKm+CiIHY03aifn6DG/DX+NYUgNTxG7Ds8K7qqnLNqM7eHjrm6JlI= 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=DgKr42tu; arc=none smtp.client-ip=209.85.160.171 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="DgKr42tu" Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-432c947e92eso63141881cf.0 for ; Wed, 10 Apr 2024 05:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1712751881; x=1713356681; 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=MfpAXz8Bcfy/TLkzFPLD2yYUR7bPCnwgt9TJrWa9s1U=; b=DgKr42tuIiVRjo3s/bmAVguAs4KQ8U0+lvepaCv2uiJcNXVIgBEpsbS7Y8Y9ytc7yJ shZi0m7M9iW/9pBYnSn6NfjjLyCd2jp9e3xttu4eoMGAnrINhIy/s0ncNDExPvyj9Zlm Qhq0YIcCcyslyR9ZSS2C7BTBSdin+Ql9f4exc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712751881; x=1713356681; 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=MfpAXz8Bcfy/TLkzFPLD2yYUR7bPCnwgt9TJrWa9s1U=; b=tMFtbg5rlqAcJpjocW0hwsG7ri0GJJ56UnOFGz3/gO3Yg5N94SxBcesLdS6sqXzptN cTTlXHx3aa0rS3RoSn6+vrgQcW+jO+tPbIEVsTXmfNSuWMZwN7Rv9GbuGXsf3gXTdmKX NwF82hlgGKEdEhoakJkup85Abi+obqzDfs5PdVUqJGBepdE5+Cpo3Ry7ggrOZ96EqcVp tB51et7fHz8AY9DIbddrh+VnkMXhGj+ncZcx4VEif36++Ioj1HSo7GVeUwGl4UwC6Cgt R/vsvf21P62Gl0dJeGOijdQ0zwD7KUTRkIAWwbWNihT2ICLYuVntOUC5tyYvK2bR81hK dwSw== X-Forwarded-Encrypted: i=1; AJvYcCUjznBnJSmW7Pu8+5rhbI+IUeKO2PZY7NCiImRWz95+Brs/cmV/EiaV9pQ3pCSllTdLpzo2oNb/cr6XjuFN7j4b2HTrRQ/u6xUvFRA= X-Gm-Message-State: AOJu0YyUEc3rAcYifSM20Mf/qJlFr1trVvzCqZn1QhMfIrSDAB6FaEsp Sdk85khShn21cWs7O4iusaKZn/2siaheeioz+69ArH2nyAnb7NZR/n5wG8xkPg== X-Google-Smtp-Source: AGHT+IHniFHijne50ct4dDiCfXqrYaE0q7Ul3bSD5D/xopuvSqykSDUiWPdCd6gCi40hRkdVKi8rNg== X-Received: by 2002:a05:622a:19a1:b0:434:6fee:5983 with SMTP id u33-20020a05622a19a100b004346fee5983mr8687083qtc.7.1712751881654; Wed, 10 Apr 2024 05:24:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 05:24:41 -0700 (PDT) From: Ricardo Ribalda Date: Wed, 10 Apr 2024 12:24:39 +0000 Subject: [PATCH 3/3] media: videodev2: Fix v4l2_ext-control packing. Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240410-pack-v1-3-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 The structure is packed, which requires that all its fields need to be also packed. ./include/uapi/linux/videodev2.h:1810:2: warning: field within 'struct v4l2_ext_control' is less aligned than 'union v4l2_ext_control::(anonymous at ./include/uapi/linux/videodev2.h:1810:2)' and is usually due to 'struct v4l2_ext_control' being packed, which can lead to unaligned accesses [-Wunaligned-access] Explicitly set the inner union as packed. Signed-off-by: Ricardo Ribalda --- include/uapi/linux/videodev2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 2663213b76a49..bf12860d570af 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -1842,7 +1842,7 @@ struct v4l2_ext_control { struct v4l2_ctrl_hdr10_cll_info __user *p_hdr10_cll_info; struct v4l2_ctrl_hdr10_mastering_display __user *p_hdr10_mastering_display; void __user *ptr; - }; + } __attribute__ ((packed)); } __attribute__ ((packed)); struct v4l2_ext_controls {