Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp14569pxf; Wed, 7 Apr 2021 18:32:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLSQtdR3sUcu+G9hiH3h61wihKUi7nRmFjUwxZLR4iLUzxhKwiI32Ajs2vUkBzxxWPsOhC X-Received: by 2002:a17:90a:31cd:: with SMTP id j13mr6079680pjf.231.1617845553796; Wed, 07 Apr 2021 18:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617845553; cv=none; d=google.com; s=arc-20160816; b=RQJZyXKs0kSu2uu2+r9uyqePd6Hw0Ckp5A8q3FDX0IoJDnHYBGlB01fprrKyDzm6+L 131cK7J+jUjtJS2Da8Xl6dOAU3VX7mMaRAzJP+bs2psmNc4mGhst0XeIfoppFLiqJRvq UCLptDd0hsylEqQnd+9FR0/VQeMkYZvmP4Qs54vibT+75mpcLK2dKwqCUZpDXBX3TaiE LQ5iLfzt0Y4VB2fMEO9VVm4kn4YdOZlYr6lXtQSwVnDSeVr6ssJVeAHtnhfEqnno9tc1 eFlt+WYLNWoniPiRIT8wn8LuSfmZzxLfG3UuDNnLO/6TE8EiEz+O9fwGNaBl2S3gGo51 I+eA== 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 :message-id:date:subject:cc:to:from; bh=fj9n01lzAlXoyAqK/Kwk38QaJL4mqCJR5cb3MLuGfHw=; b=fgkNE40uX0owvCbQ5ySjVNCHuFHTggNcvrTymKK0tXF2sM7Kjt3wBIfwgmh2hyNPfp hJLQH84PiNZY3p9P4jnJy9nsAJWz/Wyq3LMa2XrBzNwYweMrE9CiEcHiVNC5nx4G9URB qgNovceWKObMdyUg665ISaUGHQ5L1xCbe+SAFmrd7Fi9+ljTfyz64mFnqCf96/ck5/C2 XEcIzfkw2wSfeAtAJxgRxW9BrAbHwZ8jdJPf2xzu/NP86ccRoKezqe2r8guSWLAJ1w4x RWnle8oYdJ0WcpxgIoop4Zlso2CD9RJeihNU9vOr2ZjhF88TAz5hexdqXMzG4BaLvULv 9o5g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o5si26509293pgd.410.2021.04.07.18.31.56; Wed, 07 Apr 2021 18:32:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbhDHB3Z (ORCPT + 99 others); Wed, 7 Apr 2021 21:29:25 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15167 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhDHB3X (ORCPT ); Wed, 7 Apr 2021 21:29:23 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FG3WP5kLKzpWN7; Thu, 8 Apr 2021 09:26:25 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 09:29:02 +0800 From: Shixin Liu To: Kishon Vijay Abraham I , Vinod Koul CC: , , "Shixin Liu" Subject: [PATCH -next] phy: ti: j721e-wiz: Add missing include linux/slab.h Date: Thu, 8 Apr 2021 09:28:29 +0800 Message-ID: <20210408012829.432938-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When compiling with CONFIG_PHY_J721E_WIZ, Hulk Robot reported: drivers/phy/ti/phy-j721e-wiz.c: In function ‘wiz_mux_clk_register’: drivers/phy/ti/phy-j721e-wiz.c:659:17: error: implicit declaration of function ‘kzalloc’; did you mean ‘vzalloc’? [-Werror=implicit-function-declaration] 659 | parent_names = kzalloc((sizeof(char *) * num_parents), GFP_KERNEL); | ^~~~~~~ | vzalloc drivers/phy/ti/phy-j721e-wiz.c:659:15: warning: assignment to ‘const char **’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 659 | parent_names = kzalloc((sizeof(char *) * num_parents), GFP_KERNEL); | ^ drivers/phy/ti/phy-j721e-wiz.c:697:2: error: implicit declaration of function ‘kfree’; did you mean ‘vfree’? [-Werror=implicit-function-declaration] 697 | kfree(parent_names); | ^~~~~ | vfre Fixes: 040cbe768731 ("phy: ti: j721e-wiz: Model the internal clocks without device tree input") Reported-by: Hulk Robot Signed-off-by: Shixin Liu --- drivers/phy/ti/phy-j721e-wiz.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c index 2b354680a272..ab28fb2e01db 100644 --- a/drivers/phy/ti/phy-j721e-wiz.c +++ b/drivers/phy/ti/phy-j721e-wiz.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include -- 2.25.1