From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2ED9FC433E1 for ; Fri, 5 Jun 2020 14:18:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F3740208B6 for ; Fri, 5 Jun 2020 14:18:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591366683; bh=nZhiGEfILEKMt44G8xrubVFUgbwYyN4KAnoxAwiFdG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=vj/E52lDBsoEsRAEnJ7umssLPWxVkFWFjT9JdGIRdk1wcS8qY3tglAsHeVNDTuhPh eM2IdI+DpgAsDrW+jTZJSeKVsL/Qm3aabY+6rvpj0/YwcT0k8u4SMCnyFdjJdNupU0 xAPNIJXsRoJdtdJG/nuzks7jcP02/LO7S6GXaCgE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728583AbgFEOSC (ORCPT ); Fri, 5 Jun 2020 10:18:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:48120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728543AbgFEORt (ORCPT ); Fri, 5 Jun 2020 10:17:49 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B268A208A9; Fri, 5 Jun 2020 14:17:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591366669; bh=nZhiGEfILEKMt44G8xrubVFUgbwYyN4KAnoxAwiFdG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=16m48TuBYUMgd1B6kz67v+3nvoaqD6d+rXNgjf5OV3Rs3xExtD3hTlQshNFMp4fDr v0ije9FTXgwC+93C+g+EdaGCQQcel3kDWL05saKc/L+MVDKLp32dUcnFMkUYaRK5jy 35R5ADQaDguz401oBfZ/v3fgFzxBx82EEgZLakr4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tomasz Figa , Bingbu Cao , Sakari Ailus , Mauro Carvalho Chehab Subject: [PATCH 5.6 41/43] media: staging: ipu3-imgu: Move alignment attribute to field Date: Fri, 5 Jun 2020 16:15:11 +0200 Message-Id: <20200605140154.678386284@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200605140152.493743366@linuxfoundation.org> References: <20200605140152.493743366@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sakari Ailus commit 8c038effd893920facedf18c2c0976cec4a33408 upstream. Move the alignment attribute of struct ipu3_uapi_awb_fr_config_s to the field in struct ipu3_uapi_4a_config, the other location where the struct is used. Fixes: commit c9d52c114a9f ("media: staging: imgu: Address a compiler warning on alignment") Reported-by: Tomasz Figa Tested-by: Bingbu Cao Cc: stable@vger.kernel.org # for v5.3 and up Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/ipu3/include/intel-ipu3.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/staging/media/ipu3/include/intel-ipu3.h +++ b/drivers/staging/media/ipu3/include/intel-ipu3.h @@ -450,7 +450,7 @@ struct ipu3_uapi_awb_fr_config_s { __u32 bayer_sign; __u8 bayer_nf; __u8 reserved2[7]; -} __attribute__((aligned(32))) __packed; +} __packed; /** * struct ipu3_uapi_4a_config - 4A config @@ -466,7 +466,8 @@ struct ipu3_uapi_4a_config { struct ipu3_uapi_ae_grid_config ae_grd_config; __u8 padding[20]; struct ipu3_uapi_af_config_s af_config; - struct ipu3_uapi_awb_fr_config_s awb_fr_config; + struct ipu3_uapi_awb_fr_config_s awb_fr_config + __attribute__((aligned(32))); } __packed; /**