From patchwork Fri May 20 13:28:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rolf Eike Beer X-Patchwork-Id: 12856834 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4995C433EF for ; Fri, 20 May 2022 13:28:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236934AbiETN22 (ORCPT ); Fri, 20 May 2022 09:28:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236812AbiETN22 (ORCPT ); Fri, 20 May 2022 09:28:28 -0400 Received: from mail.sf-mail.de (mail.sf-mail.de [IPv6:2a01:4f8:1c17:6fae:616d:6c69:616d:6c69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB37EBA54E for ; Fri, 20 May 2022 06:28:25 -0700 (PDT) Received: (qmail 15196 invoked from network); 20 May 2022 13:28:23 -0000 Received: from p200300cf07141a0076d435fffeb7be92.dip0.t-ipconnect.de ([2003:cf:714:1a00:76d4:35ff:feb7:be92]:49916 HELO eto.sf-tec.de) (auth=eike@sf-mail.de) by mail.sf-mail.de (Qsmtpd 0.38dev) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPSA for ; Fri, 20 May 2022 15:28:23 +0200 From: Rolf Eike Beer To: Jakub Kicinski Cc: linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, netdev@vger.kernel.org, Yang Yingliang , davem@davemloft.net, edumazet@google.com Subject: [PATCH] net: tulip: fix build with CONFIG_GSC Date: Fri, 20 May 2022 15:28:21 +0200 Message-ID: <4719560.GXAFRqVoOG@eto.sf-tec.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org Fixes: 3daebfbeb455 ("net: tulip: convert to devres") Reported-by: Linux Kernel Functional Testing Reported-by: kernel test robot Signed-off-by: Rolf Eike Beer --- drivers/net/ethernet/dec/tulip/eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/dec/tulip/eeprom.c b/drivers/net/ethernet/dec/tulip/eeprom.c index 67a67cb78dbb..d5657ff15e3c 100644 --- a/drivers/net/ethernet/dec/tulip/eeprom.c +++ b/drivers/net/ethernet/dec/tulip/eeprom.c @@ -117,7 +117,7 @@ static void tulip_build_fake_mediatable(struct tulip_private *tp) 0x00, 0x06 /* ttm bit map */ }; - tp->mtable = devm_kmalloc(&tp->pdev->pdev, sizeof(struct mediatable) + + tp->mtable = devm_kmalloc(&tp->pdev->dev, sizeof(struct mediatable) + sizeof(struct medialeaf), GFP_KERNEL); if (tp->mtable == NULL)