Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4750468pxf; Tue, 30 Mar 2021 16:36:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxux6YFo+c53AF8zb7lCl+a/+77Hzxy2rZn9zV7SOrrsshBTOwGgJPCgeeRQbTfpP3NQ+i0 X-Received: by 2002:a05:6402:b2a:: with SMTP id bo10mr369922edb.144.1617147367923; Tue, 30 Mar 2021 16:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617147367; cv=none; d=google.com; s=arc-20160816; b=OPW/xd7h4OqIDuoK4jrP2c7+AIgEqT0/IV2zpjQ0L6URQReMuQvOE3PtnHXKjL67sB piEvCLRHtCSFVYgo845BN/Hgj5dZBMRwAQWQbYjg/CW42HUyqx/sU2qn+nQk0BLz97Lk WfCBTEdmeZAE7J9pqbVbCyBvPyxBwaJe7+gTAOs9TCNNm9VmG1mMKVIYbqevl/BW1p86 +jiqgiFkQsS6/8DF9XhZVOY6Rj6HIa5waJW6tEv+dlQYzGBnsFjHsNpfjRkOruWvgjmn GzoqyNVDF2H1iYCifUndCR/brV3qr7PlnPrlrUsQx0Pi2zjtJNpc2n7q5hPCrAo0TaKP nffA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JFLjN+V6qhh1JShJZARV2EusiaL34Xnt311pGYtDg+M=; b=tWwCH963wpG6+hsFuGc1WxM+XFR1f0R8EzfjNfDfJzS/GVaWnkn90SMM9gv7p1vM/E Dhc/pD86Px4n338XQPgGCQoeY0UM+1Iawq8rk3B57x+7jiPN6PVPM3IFuI08OqxvlBlp ZKTgg+VySbBUxXkQXXyK7VxRGgt1f285r3MC3DoMeSkyZcrAQns+ZX0i9s5tgMyfGyMm XcfIMgwccOCdxBbmiCyc+/N0Tf0nF4ASL8CePTDfvMIJH8dfd8w3D95PGuaMXgu/PpXU 0Fi/Dc7ESeGla77JAxffXm/xjuSZf6QyD3xE9Ca6wsOSV0jDCWseBn9wXj0haMqF3z4Y hlcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JNjyX8Ug; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x14si367984edr.255.2021.03.30.16.35.45; Tue, 30 Mar 2021 16:36:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=k20201202 header.b=JNjyX8Ug; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232519AbhC3XaG (ORCPT + 99 others); Tue, 30 Mar 2021 19:30:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:36362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232589AbhC3X3v (ORCPT ); Tue, 30 Mar 2021 19:29:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CC9B3619B9; Tue, 30 Mar 2021 23:29:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617146991; bh=pFv56VvafOhxhfjfYu4/MQ1cLcgzzN0jhy6Oq7chMBI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JNjyX8UgayeJPVIoMPEy/8EHfKuqS25d0xcGMlgoHcWN+gjm4WjdkGfGhgZWI9vdj mRuanoNg6CUQM/qlxRYqzpQcEQJJD2qUZbmRENGRJgz5vQvBybljIkYtxwjZgZf+23 bp3ac/CaXNLuvRoj82swXuPkDPb+dxdVJCc8z3GW02qRmR6lDm6tobNIIkehyA8LKM 8ixSVtXOoT2q5Vd/1pjgDyUIqud6Tc1bCojrNdKEofkeiDBX6bvi0Lk4Q+sSPBUpyz 3yvBu+D0zO4t8c7sX+11Co58jJcHoVTs3FuEm4g/WHRz9l8j8vPj6LVnuUzNfzKM5E XQvbSWLo5ezhA== Date: Tue, 30 Mar 2021 16:29:46 -0700 From: Nathan Chancellor To: Jian Cai Cc: cjdb@google.com, manojgupta@google.com, llozano@google.com, clang-built-linux@googlegroups.com, Guenter Roeck , Jens Axboe , Nick Desaulniers , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] blk-mq: fix alignment mismatch. Message-ID: <20210330232946.m5p7426macyjduzm@archlinux-ax161> References: <20210330230249.709221-1-jiancai@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210330230249.709221-1-jiancai@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jian, On Tue, Mar 30, 2021 at 04:02:49PM -0700, Jian Cai wrote: > This fixes the mismatch of alignments between csd and its use as an > argument to smp_call_function_single_async, which causes build failure > when -Walign-mismatch in Clang is used. > > Link: > http://crrev.com/c/1193732 > > Suggested-by: Guenter Roeck > Signed-off-by: Jian Cai Thanks for the patch. This is effectively a revert of commit 4ccafe032005 ("block: unalign call_single_data in struct request"), which I had brought up in this thread: https://lore.kernel.org/r/20210310182307.zzcbi5w5jrmveld4@archlinux-ax161/ This is obviously a correct fix, I am not just sure what the impact to 'struct request' will be. Cheers, Nathan > --- > include/linux/blkdev.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h > index bc6bc8383b43..3b92330d95ad 100644 > --- a/include/linux/blkdev.h > +++ b/include/linux/blkdev.h > @@ -231,7 +231,7 @@ struct request { > unsigned long deadline; > > union { > - struct __call_single_data csd; > + call_single_data_t csd; > u64 fifo_time; > }; > > -- > 2.31.0.291.g576ba9dcdaf-goog >