Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp801689pxf; Thu, 8 Apr 2021 12:54:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXKGAJsQn0fYx/9cV3PxWELLfJWaSTqgNUSWyGrwQXT+0wUA8XfUx5VTMqTWHKp2mbMY2S X-Received: by 2002:a17:90a:f2cf:: with SMTP id gt15mr10004552pjb.49.1617911645254; Thu, 08 Apr 2021 12:54:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617911645; cv=none; d=google.com; s=arc-20160816; b=ht2op5y+BdARw1CGyAN5AWDAqUXjVuoG0jY0EcGYJL9cWN8evyEHN/41TSNEtfVj4T FmAZSWage1MBB9eEz/zr5wcoS1FK/Vkquj0zmLQoCfsozeI3fMYpcBAnM/x3HOLP36RK Vc3WnBRf8USb0/Z6p14uEhzv7SmHSampuWFwonvi6hyRchJzAGKN/DzrPMbDlDFtdUps AjUZJpffDaepKe8xwwIJAiYv0e/GmWSBoNd3eF9YdUuV9KQrK57QsJTGOha/ERHZLd4+ xrNSlePcTbN9aGXwpPqIYPTcBLVjXkmrRYvkixf9HRBIdYRBNKv6pwv2aPFXstq4uqtf 2i9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:sender:dkim-signature; bh=KIJug2I8LAqDysW7Zo57l+mpQ9+Qy9uGWvQ5b4XssOE=; b=WDNiCco/zSpr1/3O3Evms02NX9jUY80EFMYVgaPH3CcvaqoF1vgUagkk83/fwnOSxc gfmN2KY7feptBizUPqUKrG07D5Kzcb+n6J2bJcJa/nYVffMiLpjr5+OPoT4Ci+G0pk3i Db0ZdeyGe7txz1VTh5lgrjFFlkRhIsgJQccRtdYbt2RVQkVok+iyju5W19wD5xm6WvoI j6dkMCswThYgUwPX2ZazG6A+UcH7VRLODFJOwswFgLjxciqekfP1+p1PmJvyvWZk8zsG Qls+JFC/zLFgjbtvokhUpIhdFd7HSDzG7C/OuIjHnG4/MbR1lIgr8S5XkyeMqednT0Qm CPBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BzjFJ+sJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o18si192836pgc.156.2021.04.08.12.53.52; Thu, 08 Apr 2021 12:54:05 -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=@gmail.com header.s=20161025 header.b=BzjFJ+sJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232488AbhDHTxC (ORCPT + 99 others); Thu, 8 Apr 2021 15:53:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232631AbhDHTxA (ORCPT ); Thu, 8 Apr 2021 15:53:00 -0400 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4B61C061760; Thu, 8 Apr 2021 12:52:48 -0700 (PDT) Received: by mail-ot1-x332.google.com with SMTP id v24-20020a9d69d80000b02901b9aec33371so3520620oto.2; Thu, 08 Apr 2021 12:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=KIJug2I8LAqDysW7Zo57l+mpQ9+Qy9uGWvQ5b4XssOE=; b=BzjFJ+sJa9iEVzxX221VwZhVsHUSFC35bCBi/VFen3WfL8h0Vsv/VWtCaHU62e0lT4 Vb0/CnMCRn/3p6ZtJWScvd0+XBiTRbOIU6I+01kfrRl17YDi1FAmCcrEKJ6RgireYCK5 9yiTlx8mQkO9kHa/5pKytwbsIJILN1Ka6UdjSG8ko4cN01VKJSbPxjHJqjrx3ZtPdmNU 3wchXJ37HG392b3stMdxkupThDf70E9M529Yeqs/PPmnHhZHpSwAMSYTZWW+H8fsE57s 8hRjYcmURniq1cStXVBqDgwHwyirRLqrOU3VuxGnq3+NcQ3GQodV/IyQywcFr/qVryUo 4RJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=KIJug2I8LAqDysW7Zo57l+mpQ9+Qy9uGWvQ5b4XssOE=; b=MIpbImRQlWKlndgrfXF0eJP2oxiqJOvF+6nrPtJf9VvKwbJo/5toMJZhlS7YMnkK3W /cUhqIWwLXKqhRhC/Pt4I7a/+kxSs7sR9Xw2Lntp7CrD7AxOuMmTfDJ8DPxnolqir5oN 9Q2TWkwVEScq50gq5tSFAO4mRyRAaWtvSRRjh+r+/IZV06edAo8Vx4MqA2v2lFwOFtTJ g9XN8PNfdEhd+7e8lHUtduLFDENPC227ichDSpcO6ifxZ2gbsXZGeqXCdiS48ZDwUcrK zN8xfp4TanGfn+Yx3w3vJ8CK/QzIu0SffsQ0Z/2cv7wUcl+TDK3tJRVjhYxhW3tQe/7v I5Lw== X-Gm-Message-State: AOAM531q+/Ui/2pV4ltvbQ+H6ekgSNEcYVCZ3nvdc5TGr9dRilOMyAwQ Sb+BioJgl4qb2wN5xdwlOco= X-Received: by 2002:a9d:51cb:: with SMTP id d11mr9314460oth.32.1617911568145; Thu, 08 Apr 2021 12:52:48 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id i15sm89125oou.10.2021.04.08.12.52.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Apr 2021 12:52:47 -0700 (PDT) Sender: Guenter Roeck Subject: Re: [PATCH] block: Disable -Walign-mismatch for blk-mq.c To: Nathan Chancellor , Jens Axboe Cc: Nick Desaulniers , Jian Cai , Christopher Di Bella , Manoj Gupta , Luis Lozano , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com References: <20210408181210.u7cudatr7zcmbmb2@archlinux-ax161> <20210408194458.501617-1-nathan@kernel.org> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5f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FZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Thu, 8 Apr 2021 12:52:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210408194458.501617-1-nathan@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/8/21 12:44 PM, Nathan Chancellor wrote: > LLVM 13 adds a new warning, -Walign-mismatch, which has an instance in > blk_mq_complete_send_ipi(): > > block/blk-mq.c:630:39: warning: passing 8-byte aligned argument to > 32-byte aligned parameter 2 of 'smp_call_function_single_async' may > result in an unaligned pointer access [-Walign-mismatch] > smp_call_function_single_async(cpu, &rq->csd); > ^ > 1 warning generated. > > This is expected after commit 4ccafe032005 ("block: unalign > call_single_data in struct request"), which purposefully unaligned the > structure to save space. Given that there is no real alignment > requirement and there have been no reports of issues since that change, > it should be safe to disable the warning for this one translation unit. > > Link: https://github.com/ClangBuiltLinux/linux/issues/1328 > Link: https://lore.kernel.org/r/20210310182307.zzcbi5w5jrmveld4@archlinux-ax161/ > Link: https://lore.kernel.org/r/20210330230249.709221-1-jiancai@google.com/ > Signed-off-by: Nathan Chancellor Reviewed-by: Guenter Roeck > --- > block/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/block/Makefile b/block/Makefile > index 8d841f5f986f..d69ac0bd8e61 100644 > --- a/block/Makefile > +++ b/block/Makefile > @@ -10,6 +10,7 @@ obj-$(CONFIG_BLOCK) := bio.o elevator.o blk-core.o blk-sysfs.o \ > blk-mq-sysfs.o blk-mq-cpumap.o blk-mq-sched.o ioctl.o \ > genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o > > +CFLAGS_blk-mq.o := $(call cc-disable-warning, align-mismatch) > obj-$(CONFIG_BOUNCE) += bounce.o > obj-$(CONFIG_BLK_SCSI_REQUEST) += scsi_ioctl.o > obj-$(CONFIG_BLK_DEV_BSG) += bsg.o > > base-commit: e49d033bddf5b565044e2abe4241353959bc9120 >