From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B5CCC433F5 for ; Thu, 19 May 2022 12:26:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3A2276B0072; Thu, 19 May 2022 08:26:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 32B116B0073; Thu, 19 May 2022 08:26:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1A4836B0074; Thu, 19 May 2022 08:26:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 03BE26B0072 for ; Thu, 19 May 2022 08:26:00 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id C2CAA20CE1 for ; Thu, 19 May 2022 12:25:59 +0000 (UTC) X-FDA: 79482414438.04.EEDF0FD Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf10.hostedemail.com (Postfix) with ESMTP id 3B179C00B8 for ; Thu, 19 May 2022 12:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652963157; x=1684499157; h=date:from:to:cc:subject:message-id:mime-version; bh=S6/jJ2UdusZAIxh7CkqXUnVvb3MnCWGtC18Mxl6iqDs=; b=CuJgfoC/PxTqEfwCESpBwnWyGKb5HtiU4LNld+4ASF1RbUZgeZNRSAo+ Utw+6bJEAjde9o9IQf9vfPQtN6MqK1zQi+3eW3hZHwERUEDlW3Xoun+xU 9IXRfP0s06titA0sTfJ6CNj19bXs0PjRDqQ+uXsTfAQHHkCV0UPY8MFBp vMx/nVNoWVPAl7EEhFvUS7VDdFOWJZOku40EVWeMdf3mBYaC/opCeTsBE OLM3LrDyf4pqXEovAP+GhbrfXb6GqZiBbTRGxIMT0WOXbPRR8j9duyHQz BYYU55QQfanNYfi02lZ/VS0dWZNQQdvIjxWutzd0XBarwdiRt57rpQULM A==; X-IronPort-AV: E=McAfee;i="6400,9594,10351"; a="272308598" X-IronPort-AV: E=Sophos;i="5.91,237,1647327600"; d="scan'208";a="272308598" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 05:25:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,237,1647327600"; d="scan'208";a="606459083" Received: from lkp-server02.sh.intel.com (HELO 242b25809ac7) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 19 May 2022 05:25:54 -0700 Received: from kbuild by 242b25809ac7 with local (Exim 4.95) (envelope-from ) id 1nrfE1-0003YO-G6; Thu, 19 May 2022 12:25:53 +0000 Date: Thu, 19 May 2022 20:25:44 +0800 From: kernel test robot To: Rolf Eike Beer Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 11453/12886] drivers/net/ethernet/dec/tulip/eeprom.c:120:54: error: 'struct pci_dev' has no member named 'pdev'; did you mean 'dev'? Message-ID: <202205192041.eAjgoXSY-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="CuJgfoC/"; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf10.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.115) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 3B179C00B8 X-Rspam-User: X-Stat-Signature: 1j4onzn9yqu5xqwe8qm95w6goh5dt1sy X-HE-Tag: 1652963125-510704 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 21498d01d045c5b95b93e0a0625ae965b4330ebe commit: 3daebfbeb4555cb0c113aeb88aa469192ee41d89 [11453/12886] net: tulip: convert to devres config: parisc64-allmodconfig (https://download.01.org/0day-ci/archive/20220519/202205192041.eAjgoXSY-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3daebfbeb4555cb0c113aeb88aa469192ee41d89 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 3daebfbeb4555cb0c113aeb88aa469192ee41d89 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash drivers/net/ethernet/dec/tulip/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/net/ethernet/dec/tulip/eeprom.c: In function 'tulip_build_fake_mediatable': >> drivers/net/ethernet/dec/tulip/eeprom.c:120:54: error: 'struct pci_dev' has no member named 'pdev'; did you mean 'dev'? 120 | tp->mtable = devm_kmalloc(&tp->pdev->pdev, sizeof(struct mediatable) + | ^~~~ | dev vim +120 drivers/net/ethernet/dec/tulip/eeprom.c 89 90 91 /** 92 * tulip_build_fake_mediatable - Build a fake mediatable entry. 93 * @tp: Ptr to the tulip private data. 94 * 95 * Some cards like the 3x5 HSC cards (J3514A) do not have a standard 96 * srom and can not be handled under the fixup routine. These cards 97 * still need a valid mediatable entry for correct csr12 setup and 98 * mii handling. 99 * 100 * Since this is currently a parisc-linux specific function, the 101 * #ifdef __hppa__ should completely optimize this function away for 102 * non-parisc hardware. 103 */ 104 static void tulip_build_fake_mediatable(struct tulip_private *tp) 105 { 106 #ifdef CONFIG_GSC 107 if (tp->flags & NEEDS_FAKE_MEDIA_TABLE) { 108 static unsigned char leafdata[] = 109 { 0x01, /* phy number */ 110 0x02, /* gpr setup sequence length */ 111 0x02, 0x00, /* gpr setup sequence */ 112 0x02, /* phy reset sequence length */ 113 0x01, 0x00, /* phy reset sequence */ 114 0x00, 0x78, /* media capabilities */ 115 0x00, 0xe0, /* nway advertisement */ 116 0x00, 0x05, /* fdx bit map */ 117 0x00, 0x06 /* ttm bit map */ 118 }; 119 > 120 tp->mtable = devm_kmalloc(&tp->pdev->pdev, sizeof(struct mediatable) + 121 sizeof(struct medialeaf), GFP_KERNEL); 122 123 if (tp->mtable == NULL) 124 return; /* Horrible, impossible failure. */ 125 126 tp->mtable->defaultmedia = 0x800; 127 tp->mtable->leafcount = 1; 128 tp->mtable->csr12dir = 0x3f; /* inputs on bit7 for hsc-pci, bit6 for pci-fx */ 129 tp->mtable->has_nonmii = 0; 130 tp->mtable->has_reset = 0; 131 tp->mtable->has_mii = 1; 132 tp->mtable->csr15dir = tp->mtable->csr15val = 0; 133 tp->mtable->mleaf[0].type = 1; 134 tp->mtable->mleaf[0].media = 11; 135 tp->mtable->mleaf[0].leafdata = &leafdata[0]; 136 tp->flags |= HAS_PHY_IRQ; 137 tp->csr12_shadow = -1; 138 } 139 #endif 140 } 141 -- 0-DAY CI Kernel Test Service https://01.org/lkp