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 2E4D3C76188 for ; Wed, 5 Apr 2023 08:21:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 990C76B0071; Wed, 5 Apr 2023 04:21:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 917CF6B0072; Wed, 5 Apr 2023 04:21:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7763C6B0074; Wed, 5 Apr 2023 04:21:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 61EE96B0071 for ; Wed, 5 Apr 2023 04:21:12 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 38F451A095A for ; Wed, 5 Apr 2023 08:21:12 +0000 (UTC) X-FDA: 80646642384.10.50D7C6F Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf18.hostedemail.com (Postfix) with ESMTP id 813381C0010 for ; Wed, 5 Apr 2023 08:21:09 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Kw3grqXG; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1680682870; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=U1Q7jWCIb/axDxuqglgr6cg7yxRLoVPcrShWYNOKqYo=; b=1d7mxfy7ULqjXoLBpkKlOJxqhB2HTbiEq0riRCkpZCgllLKt9LqtUSxR232y2a0rwJAnWz bO33bb6lSA5TU0ZA1C62iXuq2fkngFddwxe++fjY0StvWL4XmpRqTmDp+7JEIqnTZ6mb7O jw1OFur4DGY2etyG1tm1ZhTX0OE4IDM= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Kw3grqXG; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1680682870; a=rsa-sha256; cv=none; b=4kn7N06wjIwetGNR6QHpXjcssDVEkajyCnaMQM5ucorwoVJkrZGJ2I9jt3e7NZXtTpvC+s 90wnHwByP7Lw/NSROsWWH2/YFxSWQ9POk8e0QecAAFPL5jqHs+VeYO/TO4z3yW6QXKfTQ1 IPmpS5fgJY134KTrcFCfqzJs05cUVwE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680682869; x=1712218869; h=date:from:to:cc:subject:message-id:mime-version; bh=7wTDPlBymdC9W+V7vbYQoVLC9ZmtyyxYpPvlDZCC2sg=; b=Kw3grqXGVHSM7yp9hvZG33EOTXZZkA7ZXQ08rlhrMXtMxgoB0HhK4QnI qG4Z7oFNG1I+UQqrgm2sX1aDFWKFuOz7q1pYhQCw8SpBFq+uVj6nin63l 49vLNg2JX9t5Vt9c5UP52j6H5Y2gAPmTWB5wxuMaSqGQjHNzCG4dREmsx vPbPmd5luDiNHzBl868dJGjHwZa1/S82pPNL3Ybjce21Gd16f0OZRR5mZ /xV+Qqjp5CNY6/dqhkjltxrlLdO6OxZrNU/gTqbg5Dr7rcl9V364dfUFE 7xhXDviVceiME2mrTb1oomfTZ84Xv0nT42lOy+d9lOKOq0Hd7YujZi3+z w==; X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="428682975" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="428682975" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 01:21:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="830280171" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="830280171" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 05 Apr 2023 01:21:05 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pjyO8-000QPo-1r; Wed, 05 Apr 2023 08:21:04 +0000 Date: Wed, 5 Apr 2023 16:20:28 +0800 From: kernel test robot To: Linus Walleij Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andy Shevchenko Subject: [linux-next:master 931/9377] arch/mips/ar7/gpio.c:19:33: error: field 'chip' has incomplete type Message-ID: <202304051646.5QtRQQau-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam03 X-Stat-Signature: arzbqrgjncc499uphmdbt7c4j4ue93ce X-Rspamd-Queue-Id: 813381C0010 X-HE-Tag: 1680682869-244116 X-HE-Meta: U2FsdGVkX1+e85umDEzSmKb/sZZh3AyO/5ipkRc3zqeHwsDJQq6l8fb32hr93cvFcrHJRhnuDjbIQIwQWOjVTIhLdqpOPyiKvTlm+dUcDvqmFZFN5POAyS46lbJYzn+6GBcV77GAnBMh4QET2ZyczXuWQF2u1WyHQto9Z5lTLMef0c0/viwehchc+AC9+PcuB4lz7A31Ld2vfj/wzJkV8PLVisQECcuC4xse0Wip8k60I3L/b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/gRddv76Ix5uya/XhWqZSVeQi4g+B/8Tgqy8eNpe0NqwOTgKFRpB8oWWndt7yMpVn2RjHfFbW0lh2b8Ih15fhbYhrw1S50dnUPlzUY7ZZGV2exnCGm3qRWcGyDxktQNpL7u0EYulqbkFA/PFNI1h7qVeFr0qSd9evtQIi4cx03GGmnDc3tg3fAzcVQ== 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: 8417c8f5007bf4567ccffda850a3157c7d905f67 commit: 21d9526d13b5467b0a6532e5a8b0eb04c01ce326 [931/9377] gpiolib: Make the legacy consumer-only config: mips-randconfig-r004-20230403 (https://download.01.org/0day-ci/archive/20230405/202304051646.5QtRQQau-lkp@intel.com/config) compiler: mipsel-linux-gcc (GCC) 12.1.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=21d9526d13b5467b0a6532e5a8b0eb04c01ce326 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 21d9526d13b5467b0a6532e5a8b0eb04c01ce326 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/ar7/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304051646.5QtRQQau-lkp@intel.com/ Note: the linux-next/master HEAD 8417c8f5007bf4567ccffda850a3157c7d905f67 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): >> arch/mips/ar7/gpio.c:19:33: error: field 'chip' has incomplete type 19 | struct gpio_chip chip; | ^~~~ arch/mips/ar7/gpio.c: In function 'ar7_gpio_get_value': >> arch/mips/ar7/gpio.c:24:38: error: implicit declaration of function 'gpiochip_get_data' [-Werror=implicit-function-declaration] 24 | struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); | ^~~~~~~~~~~~~~~~~ arch/mips/ar7/gpio.c:24:38: warning: initialization of 'struct ar7_gpio_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] arch/mips/ar7/gpio.c: In function 'titan_gpio_get_value': arch/mips/ar7/gpio.c:32:38: warning: initialization of 'struct ar7_gpio_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 32 | struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); | ^~~~~~~~~~~~~~~~~ arch/mips/ar7/gpio.c: In function 'ar7_gpio_set_value': arch/mips/ar7/gpio.c:42:38: warning: initialization of 'struct ar7_gpio_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 42 | struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); | ^~~~~~~~~~~~~~~~~ arch/mips/ar7/gpio.c: In function 'titan_gpio_set_value': arch/mips/ar7/gpio.c:55:38: warning: initialization of 'struct ar7_gpio_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 55 | struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); | ^~~~~~~~~~~~~~~~~ arch/mips/ar7/gpio.c: In function 'ar7_gpio_direction_input': arch/mips/ar7/gpio.c:68:38: warning: initialization of 'struct ar7_gpio_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 68 | struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); | ^~~~~~~~~~~~~~~~~ arch/mips/ar7/gpio.c: In function 'titan_gpio_direction_input': arch/mips/ar7/gpio.c:78:38: warning: initialization of 'struct ar7_gpio_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 78 | struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); | ^~~~~~~~~~~~~~~~~ arch/mips/ar7/gpio.c: In function 'ar7_gpio_direction_output': arch/mips/ar7/gpio.c:93:38: warning: initialization of 'struct ar7_gpio_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 93 | struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); | ^~~~~~~~~~~~~~~~~ arch/mips/ar7/gpio.c: In function 'titan_gpio_direction_output': arch/mips/ar7/gpio.c:105:38: warning: initialization of 'struct ar7_gpio_chip *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 105 | struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); | ^~~~~~~~~~~~~~~~~ arch/mips/ar7/gpio.c: In function 'ar7_gpio_init': >> arch/mips/ar7/gpio.c:318:15: error: implicit declaration of function 'gpiochip_add_data' [-Werror=implicit-function-declaration] 318 | ret = gpiochip_add_data(&gpch->chip, gpch); | ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/chip +19 arch/mips/ar7/gpio.c 7ca5dc145bc7dad Florian Fainelli 2009-06-24 16 5f3c909881d5dee Florian Fainelli 2010-01-03 17 struct ar7_gpio_chip { 5f3c909881d5dee Florian Fainelli 2010-01-03 18 void __iomem *regs; 5f3c909881d5dee Florian Fainelli 2010-01-03 @19 struct gpio_chip chip; 5f3c909881d5dee Florian Fainelli 2010-01-03 20 }; 7ca5dc145bc7dad Florian Fainelli 2009-06-24 21 5f3c909881d5dee Florian Fainelli 2010-01-03 22 static int ar7_gpio_get_value(struct gpio_chip *chip, unsigned gpio) 7ca5dc145bc7dad Florian Fainelli 2009-06-24 23 { 1b2766fb496c462 Linus Walleij 2015-12-08 @24 struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); 5f3c909881d5dee Florian Fainelli 2010-01-03 25 void __iomem *gpio_in = gpch->regs + AR7_GPIO_INPUT; 7ca5dc145bc7dad Florian Fainelli 2009-06-24 26 249e573d99ab590 Linus Walleij 2015-12-22 27 return !!(readl(gpio_in) & (1 << gpio)); 5f3c909881d5dee Florian Fainelli 2010-01-03 28 } 5f3c909881d5dee Florian Fainelli 2010-01-03 29 :::::: The code at line 19 was first introduced by commit :::::: 5f3c909881d5deebb9a3ddc836a15937e76daefc MIPS: AR7: Implement gpiolib :::::: TO: Florian Fainelli :::::: CC: Ralf Baechle -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests