Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp39645pxf; Tue, 30 Mar 2021 18:33:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjUFaOpxSvC0mtGSKhiM/CNt0eaORE3uudpPNdAnz5yTyLIx9toQC/rViVyUP/OOnHu52T X-Received: by 2002:a17:907:216a:: with SMTP id rl10mr952857ejb.365.1617154422804; Tue, 30 Mar 2021 18:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617154422; cv=none; d=google.com; s=arc-20160816; b=Q+g8Dv2ySq1X8q3xTOtW2BYgRIjeTVwEDSO+CEuTHL1RUdJ4kT+q17A6ZgWA8aht5/ uY6k/R0mitjnA0xE9a5APZYElAQs2ATEuQ1jUnZvR1OhWE63AIORAefOug8wcyzaEIa4 4CmmhDrkF/yJUYCuXedf30rlBTN0dB7RQBMaMiMoL3g5UCAqH7Bl/cN6VhhdcfMMoEos 9lKPPIDK+bD0Z2gLnnXejl0gfyFgDbsy6O/oQIXAonUAjdt3wUDWd4pOlYNxeV0jkPbX vBSyBOqDM7E31zUiCSWmMHLWP/Ot0NCMJLd9wlicjlVrjazdkxQOJyYhWUZ0A7wOaLJV y4Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=H8Y07hDLvNzX62UUhlhC8myk9QBLpL9amBPbya95S+8=; b=tf27nmzGZOiWI+CekHP0+37b7fDsK0wWA+r3GObRy9FWAcnmx+uap2xfs1SY4gC7LC 4cp8PwBDhAyvH2BmPXEfOtQN9kQ9benFvcnTbndbjD+Hgb/SIU2AI3dXKqzvXYwsykj/ 5pIrtMnuPj4IriEXIdM0JRjYrlzqR+Yoe/VAoFYo+6fNzW9WX7SjjfbdtIJNVfZWRlGQ QfFvciwPgTojo53VC0zaVMvrJX6lBlO+3DkVMq+FHJFGDIQqbIRss7J0X4fOu23uWX33 G012du4DyvGJVD+qKsUghqeS0ZhY0Ha/PP7KQddRJBIp68vfJ6emsjVQ9q2SFVtg/S35 JGsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=sshq6hQZ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d19si471222ejp.154.2021.03.30.18.33.18; Tue, 30 Mar 2021 18:33:42 -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=@google.com header.s=20161025 header.b=sshq6hQZ; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232650AbhCaBcP (ORCPT + 99 others); Tue, 30 Mar 2021 21:32:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232401AbhCaBcE (ORCPT ); Tue, 30 Mar 2021 21:32:04 -0400 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40A3FC061574 for ; Tue, 30 Mar 2021 18:32:04 -0700 (PDT) Received: by mail-ot1-x32c.google.com with SMTP id 91-20020a9d08640000b0290237d9c40382so17436523oty.12 for ; Tue, 30 Mar 2021 18:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H8Y07hDLvNzX62UUhlhC8myk9QBLpL9amBPbya95S+8=; b=sshq6hQZp/YiRNinDqntPqwwo3aL+kNJRNh6ZTY83UlX2yz2WeWW9E0/nCahP1Rz5q jHmgsCvdZGZGUhB8JRhax5Ped7fwUvernhBfxZUXKfpVSueKOdE+CCYn0D6Ikc+DVmNn 9XCig06EsAkuIwbPYg3KDj1/qKoB/WZEoCDD26YeEDfawEELBUqUB3I+kFoC4RewWaMC iZnBX062q3hwLWPr1uu6rx0dkEDQBhm5X5hfW2DV1hmVGY4jB8nN+f5eXhMXCoOhj69d eJeruXmeQ8ZM5zGvlg9i/ITtNOTG8ZvuNRl8RX0j6XRJJZ5Uys6g5GlY7eReEhSXGxBP zQhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H8Y07hDLvNzX62UUhlhC8myk9QBLpL9amBPbya95S+8=; b=AfmSFz/gLLTnQrWWDL9gg4DdYQJBmrMBNIB3G8R3Zd1qVkfcRH46Q5pbfVRmzZQjWv uGHDH74CQ6NIH6tdfCbIHJLaU31qo8fnRq7Bmeevi0kmSVK8NlXh6tOmRMNiVHVGIAfC CWgzmTmCH+x4O6SR220pE7FpVKCCSZPvkqGDIaY6Uug0NFwDvGpFdwa0dzq55sNBpBOW wcUQvduHRUqyzdt3BKBFKh+aVyyqXh9oCGjnJ/VkbxoUESLCh1WpIDVxIbaMBFo1zyun YEtpV0oNhZVtSxuSoMY4s76vU2coigrQcRaq9xftqQE/qpQ8FINtBh/FBoPr4JQL0kj4 B0tA== X-Gm-Message-State: AOAM531UT4Yqa+A7hAQ7NzEgwdf9xnFSUpjH8LvXbXruKTayX1vaUCD7 6Xr2Wpfr/U2mDf2LcSAo+SzvoipULSCLIH4+3Cc38g== X-Received: by 2002:a9d:1c89:: with SMTP id l9mr594551ota.25.1617154323238; Tue, 30 Mar 2021 18:32:03 -0700 (PDT) MIME-Version: 1.0 References: <20210330230249.709221-1-jiancai@google.com> <20210330232946.m5p7426macyjduzm@archlinux-ax161> <114a5697-9b5c-daf1-f0fc-dc190d4db74d@roeck-us.net> In-Reply-To: <114a5697-9b5c-daf1-f0fc-dc190d4db74d@roeck-us.net> From: Jian Cai Date: Tue, 30 Mar 2021 18:31:52 -0700 Message-ID: Subject: Re: [PATCH] blk-mq: fix alignment mismatch. To: Guenter Roeck Cc: Nathan Chancellor , Christopher Di Bella , Manoj Gupta , Luis Lozano , clang-built-linux , Jens Axboe , Nick Desaulniers , linux-block@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for all the information. I'll check for similar instances and send an updated version. On Tue, Mar 30, 2021 at 5:26 PM Guenter Roeck wrote: > > On 3/30/21 4:29 PM, Nathan Chancellor wrote: > > 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. > > > > As commit 4ccafe032005 states, it increases the request structure size. > Given the exchange referenced above, I think we'll need to disable > the warning in the block code. > > Thanks, > Guenter > > > 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 > >> >