Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp41772ybh; Tue, 10 Mar 2020 18:54:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu+NCZgQtJCndS4DHMYg7CTz4X48zcBVmfT9aOy2Evh1pIe/RzgcJ8Osynj7JFm+NAcUqmD X-Received: by 2002:a9d:4798:: with SMTP id b24mr505487otf.243.1583891652710; Tue, 10 Mar 2020 18:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583891652; cv=none; d=google.com; s=arc-20160816; b=QxFPyvQBAqUtr4Ap0k1KSGGatoQBPjnKHVWptGFqq4ZTDRD32JwoKvFyxD10394dlI 8USwW642ynoUs157QJ4Kfj90YK1/kDT48Q9OK76C9DL4akJrTrs/1UJQIBvgPzZgyP6g 4J+rVJLc/tGJx74T75YtgXsn+fwc1ehiW2A/7vaKMGHyABsBmOL6gE96kjll5lwtCD2O AS4/6x3esG+aKqXgIs5SxXzb21EseHv+TJJ84c5FNqOl1GpFLipkTGwPngx7e1FiTPZb TBTJ7Chw5SkJnFAGRvyEN+aj7EHvPAhcLih96chZ8HVrHlV5Fu0+Kz4MxX0APkHn3HU9 Kxtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=MeJypbtXZBi16e+sneeWLK3w3UOQDEmwsecp62tfwK4=; b=WqV9BnA4h4/gFgj1kg6Pw99ueMpBnwch0But+PWV1LJ1JLXGrlixOh7TT/4JgJtBBB JdI32qoZvyiEyrOoLb3thkdR0xYAB+rleW5ja9Io38sgPjyJt3UIF+B62YGCwDKPUcrg 9PX6y723kauOfuMRVXVYUHlYDlU5JKhJV4QD0owf6jqR4xaBJoTaa4u0OdhVgAt6m/gJ 9Lji9wLNDirEE/Tdid+GAa3cXLXdWHbhKcE3B6ihcdthW4AOrlbcKBP7YtaSscVoCtya 4cXbs1+h63d2QRG0Jdgh/x2fZvwIsJVseel2dbYj4RVYXjJoCb49PuXvZc3Hq7W4WT0V ug5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KOftGtCh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 12si263348oti.107.2020.03.10.18.53.59; Tue, 10 Mar 2020 18:54:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KOftGtCh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727648AbgCKBxc (ORCPT + 99 others); Tue, 10 Mar 2020 21:53:32 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:38187 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726463AbgCKBxc (ORCPT ); Tue, 10 Mar 2020 21:53:32 -0400 X-UUID: 6a56e4500bd34b35bb8a16fe0d916be8-20200311 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=MeJypbtXZBi16e+sneeWLK3w3UOQDEmwsecp62tfwK4=; b=KOftGtChChN2R3tI37nwpPyjzlJLlH6lc7hL/U/x5NR5KC/uuqVNNRyNmINeLam4t6hEhOVmvZaKAg8TG0gdTXo9FS1OFiblFDzjrgurBt9lLyxpxR7GHsW26lrrU62+VwKNyzwFQOzp7MUAaxnaA7j0Mj5BvO0DciLjARnR1Mw=; X-UUID: 6a56e4500bd34b35bb8a16fe0d916be8-20200311 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 445182679; Wed, 11 Mar 2020 09:53:25 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 11 Mar 2020 09:52:08 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 11 Mar 2020 09:53:31 +0800 Message-ID: <1583891602.17522.17.camel@mtksdccf07> Subject: Re: [PATCH -next] lib/test_kasan: silence a -Warray-bounds warning From: Walter Wu To: Dmitry Vyukov , Qian Cai CC: Andrew Morton , Andrey Ryabinin , Alexander Potapenko , kasan-dev , LKML Date: Wed, 11 Mar 2020 09:53:22 +0800 In-Reply-To: References: <1583847469-4354-1-git-send-email-cai@lca.pw> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgUWlhbiwNCg0KT24gVHVlLCAyMDIwLTAzLTEwIGF0IDE2OjIwICswMTAwLCAnRG1pdHJ5IFZ5 dWtvdicgdmlhIGthc2FuLWRldiB3cm90ZToNCj4gT24gVHVlLCBNYXIgMTAsIDIwMjAgYXQgMjoz OCBQTSBRaWFuIENhaSA8Y2FpQGxjYS5wdz4gd3JvdGU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