Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp114756ybh; Wed, 11 Mar 2020 22:05:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv513r5NEovpCyBCr5Lg9u/CpyQY5SitHLWq4TS5cmViH/rUa5JIaqf4o3MMs75LNEk9mNc X-Received: by 2002:a9d:1427:: with SMTP id h36mr4753716oth.219.1583989507548; Wed, 11 Mar 2020 22:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583989507; cv=none; d=google.com; s=arc-20160816; b=p/1rlQA+1gAVEYR83orFV6Wa7I6Kn0NKnh4w+7Rhw9ihHUUxFEZdX6UvwzejjgvT4C +3nM0A6imKxY0122+Z0z4k5zGD67AuA6XA66D59MsyXdgSzxeY1JpfuhD7mU1kNixFeB jd8NAmBEODZFdhJWyqZvur9xJ1OGoufYatEHuXOPfZ0iocd0CA7VbNrQR25li5uf6qgT 9Ot4OHkmjnF1cvGxfNAgelTM7SapRMrOUGk/yt0oX8gu7UV+IBWMNf/1ipqa+UBcA+t2 nx0+5F1Tjj1p4pXqAa6IkE6pACdCxxbacL2ECKnTuhdtLRLTPW8ZnUwVRRkNThutH1fc i6iw== 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=EiH9wliZJ7SlCOgjGr1o9krpwAx0Yhk57Jmk6JMcvtA=; b=ti4KGSRIDpz2ZRAxBl/LwI5ALyo+5IiCX9DDCitTT76k2fMAcr1X0VyLEnR9Oifzw/ JDWQl/NBOeDIHPKzyAY0oe6Q6jla+A+JiZ2NfM54No5i0onqIgl9dyr3q8KvjObOzvD6 vvlT/5N5xrF6AyHqhW0kJfpdvIGhlHgRpOZCijEpyNx6Mo0v2sBw1PaS9BfuJbAYwz+6 1ckYANu5zMIB3GC1wiqdVOm+RaWmU7hOiE/iu9pNYnam9ez+zc0qjEPm7kxsweilcBLm QFEBOk7EQgmRRA0uSuA+cVCiGTYKy714oJFVG5ewnpwVGUD6axLUwlRVVCQWu+t9ink/ oPGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WXCgrUwv; 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 q26si405677otn.296.2020.03.11.22.04.53; Wed, 11 Mar 2020 22:05:07 -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=WXCgrUwv; 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 S2387788AbgCLFD6 (ORCPT + 99 others); Thu, 12 Mar 2020 01:03:58 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:37829 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387676AbgCLFD6 (ORCPT ); Thu, 12 Mar 2020 01:03:58 -0400 X-UUID: 478dd462c20f46619b06cde0ca3267d9-20200312 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=EiH9wliZJ7SlCOgjGr1o9krpwAx0Yhk57Jmk6JMcvtA=; b=WXCgrUwvwPckPJtrgli7CI1U5PziZL60rSUU1If/uRKOocJn2Bf7DiMVvg1bW13c5lC7uTkCP6KBN8KunoFOwNYhV1Mnb0qSB42mvG7PgydgKaDLk6l7YrlSI6ZMLBgFkx1DDTSfkPPFRz16ibhCCTruDcXwWLcaJdzXQN2W9pU=; X-UUID: 478dd462c20f46619b06cde0ca3267d9-20200312 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1488432028; Thu, 12 Mar 2020 13:03:47 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 12 Mar 2020 13:02:47 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 12 Mar 2020 13:02:55 +0800 Message-ID: <1583989425.17522.29.camel@mtksdccf07> Subject: Re: [PATCH -next] kasan: fix -Wstringop-overflow warning From: Walter Wu To: Andrew Morton CC: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Qian Cai , Stephen Rothwell , , , , , wsd_upstream Date: Thu, 12 Mar 2020 13:03:45 +0800 In-Reply-To: <20200311163800.a264d4ec8f26cca7bb5046fb@linux-foundation.org> References: <20200311134244.13016-1-walter-zh.wu@mediatek.com> <20200311163800.a264d4ec8f26cca7bb5046fb@linux-foundation.org> 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 T24gV2VkLCAyMDIwLTAzLTExIGF0IDE2OjM4IC0wNzAwLCBBbmRyZXcgTW9ydG9uIHdyb3RlOg0K PiBPbiBXZWQsIDExIE1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