Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4463028pxb; Mon, 27 Sep 2021 18:23:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaKnBIyPVX/xqwfOsVMpzVXDMmQ+ncX4l7Kxz/yi9WXIJsEUyNn6oPm5yj04c+CvokmLMZ X-Received: by 2002:a63:7984:: with SMTP id u126mr2230134pgc.468.1632792188943; Mon, 27 Sep 2021 18:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632792188; cv=none; d=google.com; s=arc-20160816; b=mcC3PNX1cPXxc+e/V2dOQXAuUYWubOuetzZ8n1XNXGIsP5Qn1Mpg4L49f4pQOeVpnW GoHvwJe/NDdE98pUzI2xtlLXaQ1g8K3BWT4rxMD0dSXARaBliMvRiQlMwi9pu2M7fZQp TJoWU0dyCm3ikNl8nKEeR/ENJAbFyr7N99hs9+Rm5lqiMXVm9ICrE2bPS3shLgC2orFD fFtppmmr/2ebeRUNmQ7nqEC85P554bQS9NTxEC4+LeFFCuNsrCLh/MgPqb4rd61/Bdcl HRU9OogZQ/NmmHCmYYrP7H3vu7jhsd/JEYDRcAc3Q0On4y6cUxs/7PnC+irgAXQ+lNFH P8IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=BLlymuonkhKMUQNrGodsUw+v+u1VEea3dRqmgRuo/6A=; b=onttckBG+g3LBQelpUAnNB+L/KiZnBnc28vDNZoexIZSZ2sBdnMG4ZUx/0UnRDvuH3 lEkbWEMko/oNmQS9a9dff7tsQVhJbdwp0PQ1TUj8lNNTlpgE2jydmMvbyp+Kbce+4zjM FGZKLB8SF5HTYf6lSWwxjaDh3WpHgYZ2RBlDMp0RNjYtudoKRTnmUjXL8rF7Qx6fXc1O k9Vqy866bsybSnR3SvCqhOXSHHxZDY1nN6TKs/qwoDkWZGZLikU0U5b8uWZvEljSrIxA dhpKFVf+OV+VhFSyh1GDkKLtNfaLU5JPEZQICDpEaY0lRipgr9zEtXUss3kTGgn2M4Jt GT/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hX0CKKRG; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si23313050pgw.437.2021.09.27.18.22.55; Mon, 27 Sep 2021 18:23: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=@mediatek.com header.s=dk header.b=hX0CKKRG; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238425AbhI1BXX (ORCPT + 99 others); Mon, 27 Sep 2021 21:23:23 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:44214 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234467AbhI1BXW (ORCPT ); Mon, 27 Sep 2021 21:23:22 -0400 X-UUID: 0472ea340c5f4a6cafb182f94f6d8091-20210928 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=BLlymuonkhKMUQNrGodsUw+v+u1VEea3dRqmgRuo/6A=; b=hX0CKKRGGXvxUqmTKxm69Qff3MSfxXB+BDGIXBGCPgyNsgAkiJT+aVwClbYTf2LH8MOYfhmdNk3NJ2xzSd9TTOk00EEXpZ4TynemgAwx34GXJ4ullZ9Olx/ndzpmlmBrnJTvnuII0CGaK0JPEy/w7CfQ4HXpkVlFG3pdjJso4qY=; X-UUID: 0472ea340c5f4a6cafb182f94f6d8091-20210928 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1292667397; Tue, 28 Sep 2021 09:21:40 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 28 Sep 2021 09:21:39 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 28 Sep 2021 09:21:38 +0800 Message-ID: Subject: Re: [PATCH] iommu/mediatek: fix out-of-range warning with clang From: Yong Wu To: Arnd Bergmann , Joerg Roedel , "Will Deacon" , Matthias Brugger CC: Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Tomasz Figa , Robin Murphy , , , , , Date: Tue, 28 Sep 2021 09:21:41 +0800 In-Reply-To: <20210927121857.941160-1-arnd@kernel.org> References: <20210927121857.941160-1-arnd@kernel.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIxLTA5LTI3IGF0IDE0OjE4ICswMjAwLCBBcm5kIEJlcmdtYW5uIHdyb3RlOg0K PiBGcm9tOiBBcm5kIEJlcmdtYW5uIDxhcm5kQGFybmRiLmRlPg0KPiANCj4gY2xhbmctMTQgbm90 aWNlcyB0aGF0IGEgY29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