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=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 CFC32C35679 for ; Mon, 24 Feb 2020 07:28:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 981812072D for ; Mon, 24 Feb 2020 07:28:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582529327; bh=J6d4/zQ5bokX/jh/q9nTSIwMW4JfTe9fU6cuuaY23cg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=eTcxoaoaXLNrZ9D+1AQU9MDHCwLtTZTHq/GOWgIMIwFS0W0XMiARbWa8yD7BWT0uJ 0BApJEOMvIAF5b+W1hd5H7xypLVx7ldK/B+HAeJsukzV+Ft9FnGHUehx/lyoLM2LZh wG9ApOan3JeiYv6ViYKXHEdd5KNhXIkxeekUUUdk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726452AbgBXH2r (ORCPT ); Mon, 24 Feb 2020 02:28:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:43656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725792AbgBXH2r (ORCPT ); Mon, 24 Feb 2020 02:28:47 -0500 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (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 D20C120578; Mon, 24 Feb 2020 07:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582529326; bh=J6d4/zQ5bokX/jh/q9nTSIwMW4JfTe9fU6cuuaY23cg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=07M6sgQeO+jrmTc2UQUXKvxaz4sx2Kyf2yM0DVDS6/pCs+YBq3lFcVvTmGT2VVfmx Lp1QIiWp5RsUhOcqipXCfV74BpQvMfLf9j0hXSr8BfTkGl9bsu4dbNvmu/CpD1APNA /AyXbNMSEiXjK9kzNNdv3BTFC9mizsSlATiycpPc= Date: Mon, 24 Feb 2020 15:28:38 +0800 From: Shawn Guo To: Leonard Crestez Cc: Dong Aisheng , Fabio Estevam , Michael Turquette , Stephen Boyd , Stefan Agner , Linus Walleij , Alessandro Zummo , Alexandre Belloni , Anson Huang , Abel Vesa , Franck LENORMAND , kernel@pengutronix.de, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH v2 4/8] firmware: imx: scu-pd: Align imx sc msg structs to 4 Message-ID: <20200224072837.GU27688@dragon> References: <23b7eb459829d088fb4da188aa8063c2011fc2ac.1582216144.git.leonard.crestez@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23b7eb459829d088fb4da188aa8063c2011fc2ac.1582216144.git.leonard.crestez@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org On Thu, Feb 20, 2020 at 06:29:35PM +0200, Leonard Crestez wrote: > The imx SC api strongly assumes that messages are composed out of > 4-bytes words but some of our message structs have odd sizeofs. > > This produces many oopses with CONFIG_KASAN=y. > > Fix by marking with __aligned(4). > > Fixes: c800cd7824bd ("firmware: imx: add SCU power domain driver") > Signed-off-by: Leonard Crestez Applied, thanks.