Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4734576pxf; Tue, 30 Mar 2021 16:05:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJLTNHK2vjfHV/GoN6aUJI3E6y42zGsiz7TG0mOvVIeGHvWSQZHDndZ/eEqGRD3XlpdB3O X-Received: by 2002:a05:6402:1c98:: with SMTP id cy24mr227807edb.296.1617145508435; Tue, 30 Mar 2021 16:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617145508; cv=none; d=google.com; s=arc-20160816; b=uL/8aLsfHHv4MHksz4YOlGYx51CN+qF/oMm9KYSu3la9MoFtwAwBraqADE2U/VYtYn e3H8S64y2RSPLcIibOGPtaa8LR1AkbSo8bp3bbNMrp/wGzpLMhvl5SEZ1PbWKzFrZTOT P0hEySaOGnGofg2GbAbV0TB34egJtOpn2trfOTfCC7fbWiSTjFNcfjiG7RJlseDzjNjl Kw50pvuva4appwrUcDimgeKRQ/1LSECtWzo3cnrnTk/xVUoMW1kSvnvf+zHcCOofoGiH IK2uRNaIz211mSCt1IRZ50h0prxrScSw9RO35D/TGKnHj5BzCNdLFS6d6M955rGTJFwD 51GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:cc:from:subject:mime-version:message-id:date :dkim-signature; bh=lKfr5+52jWwI+Zvip3lB7Kvy32Qdo0Kz4Xcb667U8qU=; b=guzhzwVJcsBSikk0LA54v2S/v5C5HpqyFPncI3FicZsTJoYK1DgX9pK8m1vk8hFeAw TsB47dxzFHxWFd1eFj8QKKQdQJXjRDJV3P3sX+ywbc7nXL4gOpRkfaPjFrjTArzRmtiJ YGo0v7SxzkUkd8y0AqRrjBLshJkc4sbT4R1ajX2QhKPM6D3/b6mlZYsF4xLOmItDaMff NDMMKxqNAto1pgZaMMl3RPWQiLtVGoIc1x1Uhk1tHu8/wffD723mBoFtsJq/4Pxx+Ny6 FyuA2Lvh9c7r15m+5JdSaXgbhTCM3wdsw86EPyDMlDknVx/nX/dhuzVK2t5knYAZch/5 PQcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RbDrIYhM; 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 a7si346427edm.320.2021.03.30.16.04.45; Tue, 30 Mar 2021 16:05:08 -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=RbDrIYhM; 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 S231951AbhC3XDQ (ORCPT + 99 others); Tue, 30 Mar 2021 19:03:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232966AbhC3XCx (ORCPT ); Tue, 30 Mar 2021 19:02:53 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 770AEC061762 for ; Tue, 30 Mar 2021 16:02:53 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id b127so212332ybc.13 for ; Tue, 30 Mar 2021 16:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:cc; bh=lKfr5+52jWwI+Zvip3lB7Kvy32Qdo0Kz4Xcb667U8qU=; b=RbDrIYhMcHjozc9q3bGMvQN6iDdXiqTQBwd84F628py0QRxg2sWsbX13cGz0DRsrv/ RW+fOWEdvl4ujWoowaUmE8QqH32XZIfE0zAB3wCXUE0dOvCF6rgg7+SjnoTpK/dNrbyr 79YgyVA3GJbJkroCodQj60rEu63NpoZua1lFp1BerT2emie7UK+DrGfuWjpQ4m/IzQsI yGUrhF5X6TJT3OJ2NazFg0+b9DEDCvH1qLUdv2CgBg15F8ft+7o9EQtGhh36li6uOoke DY8bN8VWFBnkkttcUhlM+GIinit7M7N7L59oD0taDnDVvx7jyFFItc+N0hkMWWTmnilk J1xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:cc; bh=lKfr5+52jWwI+Zvip3lB7Kvy32Qdo0Kz4Xcb667U8qU=; b=DpL3pJjwgDVSfGUTKNWvK9uyWMM15XGyIQuaTFYFQXaO7Zdq9xruNpWIkSChKeUfgW NvUXsSR6J2dtD4ZqFtbEASkcazLmvsycxN0/gHipFqI/Giqv25pNFjPSds8GA6GIPNin 1Hmyhlz+r7kr2Fv98dUWhKQaWwy7lu3Mf/q1d3oCfA/qbd5PX7MbdgJPsNkzGsg54jg1 rAl0Mfu7s5B8X3qGB50CdfZDpC6hG1gaSU6Zf7va8aKof7hkrfCJy0yJZQ3NEANBg2pY CrsrHwKohJr87c2JGdAaAWBYBkCXtUxWR6ltLxB5o6p3MWi+7tcHbN0K/w+6decKm69R nCow== X-Gm-Message-State: AOAM530s1PLsNwp1z5/lv6jb4hIwJvSf7H0tjGjTs8s7UPk9pPgI7PG1 Mtw275ki8/eu0cMuK7lmUddwMWEhMzFQ X-Received: from jiancai.svl.corp.google.com ([2620:15c:2ce:0:b0cb:af41:d8ca:7230]) (user=jiancai job=sendgmr) by 2002:a25:2386:: with SMTP id j128mr754316ybj.284.1617145372572; Tue, 30 Mar 2021 16:02:52 -0700 (PDT) Date: Tue, 30 Mar 2021 16:02:49 -0700 Message-Id: <20210330230249.709221-1-jiancai@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.31.0.291.g576ba9dcdaf-goog Subject: [PATCH] blk-mq: fix alignment mismatch. From: Jian Cai Cc: cjdb@google.com, manojgupta@google.com, llozano@google.com, clang-built-linux@googlegroups.com, Jian Cai , Guenter Roeck , Jens Axboe , Nathan Chancellor , Nick Desaulniers , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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