Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2435018ybc; Sun, 17 Nov 2019 21:49:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzRu7Zbig4y9ZACTQZeNNThvNVbDS18G9REEnYvVn//i2ITm25WlqSirNimhmmhbkJPepJE X-Received: by 2002:a17:906:2e81:: with SMTP id o1mr23898472eji.284.1574056168130; Sun, 17 Nov 2019 21:49:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574056168; cv=none; d=google.com; s=arc-20160816; b=0wJLZUfTokln/fN7u0freNJp/O7smi2xwKwd+e8wwxWz0q2kVFrhb5NfuU7IrK+iQX BPUNlZuUiS/bWwVVVtON8yvSPT6S7RScS0A4Z8tCQaAo2yZnD4isXlP/NNcvKKRja+sk FdHof+t3xaYxZBr/tu9+S8eBt91+ht0B2/siP/CJLITBineBHptxs1RwmDOINW7MBq4o TMj1SDUML4P6ICFFIqdn8FMm24XbGLy1LR6ovDs40GNExO5MAmCUFDJCZu0JtvVnVyrq jGwlWAUVjEspmYxNxJsNHUgoD9nCjMdQhB96XDZy2HP5D/9qepyL5pCqt7ENAhclr+WI DeVA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=NlWDv9SeYsgi2iRUgyMRzJCtwYNFcrKvnRskCn7RxFw=; b=OnBFNfGHVOsyS1on/9VuuJTi+k2JxC+IjJhz0xuxiJAC+JWKx4zLXS5TbVAHUxkv7l YeCcwctlVn6NdZq2MXzcrITiT2RaxFN8Ghp9Wl9qy2FDgH2ExqAD5D1/LagaLEVyj4D/ FVa381GHEhhTiSZKBPB4BrnrUlVzCAmx3uaC6h9vnU6P1vYQL7KCvTV+RBT9D0AeS+Xj gmn0Q6cXYcekSWx5Uq35UAiQlWWGvLfiYTbhyCdZ/CYhkYPItyMPIAHGwB6ay70zHRp4 IGullTho69rrxMiqptNPO+uKFOI+glkYn8wR0v3eZDPUXyw0aYHquIFhJPDuAjn7BnEl +Kiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=HUV8LWcE; 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 g6si12006684edf.256.2019.11.17.21.48.51; Sun, 17 Nov 2019 21:49:28 -0800 (PST) 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=HUV8LWcE; 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 S1726331AbfKRFre (ORCPT + 99 others); Mon, 18 Nov 2019 00:47:34 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:61530 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725816AbfKRFre (ORCPT ); Mon, 18 Nov 2019 00:47:34 -0500 X-UUID: ee90d34a165a443a8d730f19011d0a9d-20191118 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=NlWDv9SeYsgi2iRUgyMRzJCtwYNFcrKvnRskCn7RxFw=; b=HUV8LWcEufP3lgh09H4dCiX+4K0hRxp3bJ/Dw+nSRccYU0KBjKIfvG+vtmWYU+rR+gCIuiz4wIugjDYN/USwG55arzRspi98G27k3+dGN/JS647FsfQ0TpQomdBMSgbHx6JYapYWPcr1PTwRztB++WgARTUhlr9bMzijZ5sIeAM=; X-UUID: ee90d34a165a443a8d730f19011d0a9d-20191118 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 667588555; Mon, 18 Nov 2019 13:47:30 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 18 Nov 2019 13:47:24 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 18 Nov 2019 13:47:37 +0800 From: Miles Chen To: Dmitry Torokhov CC: , , , , Miles Chen Subject: [PATCH] Input: evdev - convert kzalloc()/vzalloc() to kvzalloc() Date: Mon, 18 Nov 2019 13:47:27 +0800 Message-ID: <20191118054727.31045-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain 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 V2Ugb2JzZXJ2ZWQgYSBsYXJnZShvcmRlci0zKSBhbGxvY2F0aW9uIGluIGV2ZGV2X29wZW4oKSBh bmQgaXQgbWF5DQpjYXVzZSBhbiBPT00ga2VucmVsIHBhbmljIGluIGt6YWxsb2MoKSwgYmVmb3Jl IHdlIGdldHRpbmcgdG8gdGhlDQp2emFsbG9jKCkgZmFsbGJhY2suDQoNCkZpeCBpdCBieSBjb252 ZXJ0aW5nIGt6YWxsb2MoKS92emFsbG9jKCkgdG8ga3Z6YWxsb2MoKSB0byBhdm9pZCB0aGUNCk9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