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 1746AC48BF6 for ; Fri, 1 Mar 2024 02:46:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4F75A6B00A5; Thu, 29 Feb 2024 21:46:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4A82E6B00A6; Thu, 29 Feb 2024 21:46:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 36FC56B00A7; Thu, 29 Feb 2024 21:46:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 230C16B00A5 for ; Thu, 29 Feb 2024 21:46:52 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id E151914024A for ; Fri, 1 Mar 2024 02:46:51 +0000 (UTC) X-FDA: 81846932622.20.D337149 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by imf27.hostedemail.com (Postfix) with ESMTP id 7175540010 for ; Fri, 1 Mar 2024 02:46:49 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ArwjUQlx; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709261210; a=rsa-sha256; cv=none; b=1d9I7A380AHTOjnmzucmkCZeS9kTjMZ3nUBBHKim/QWjBTwwmGz3jHh1cnEBrzGzhrseiY qaiJFM8KEjmOJ7nAMtPcG75PyCWyTBuaGIuNClA6lrkJrChnpnYJFDZg3aGYykYd+egT8p iul9zFfn+Q82Fnh/mU+NyG02rIaQcUY= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ArwjUQlx; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 192.198.163.15 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709261210; 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:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=vVA0e3wyqHvZDaGsHaezCbwBUm4zDM5IaZMffz6/I6o=; b=1aMPsdGQhzifZBTxDSR64NpDjO9LGwSoTLH12Dk9Ay8EBa5l0JbxyYaTH/oVDju8nFBi4O 5FLIyHy2g+1ilaiUtmi4NBy3FYtM8WNOVTB3awQ4dvVl873tKAxJQbqrBCl45LsoWHDiIf iWPC23Fab5hthgDANw2WhDu3mTbQj7c= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709261209; x=1740797209; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=hDtVieXhB+qZYYUka7fqbcj6BoL4w++U3/2RLOvpv0c=; b=ArwjUQlxblUnpVaix4GyFVTCIc67sY7UuZeJ2qRIs4KcSEFnrkd1vkzl NmWUw+FsWhJF9wCa2Q2g0u3RK/cV+nTJkGi81hFClCIlM9KLlQBVfsSvy gF97BHRkijSJxilfzNNBj9sWGj6Eur8XjebaQ5tebZY0la62AEbHncViF k8lRcDMBpTsdRBF18RNzEGP7y7wKKVQ/P73CeQQQQ/LqTQDReAbWEBkFU stI9D9aBI/fe0734BKeS+0nY1xm4eqkVD6fkWIJ/DrKBIz2BC13RD2gjb dqJobdH5ICjQdUoQK9gA/OXVxfEevElj+t/4U4DuyeBsnDWiZKhRg6n8P A==; X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="3954315" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="3954315" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 18:46:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="12646393" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by fmviesa004.fm.intel.com with ESMTP; 29 Feb 2024 18:46:43 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1rfsut-000DTv-13; Fri, 01 Mar 2024 02:46:38 +0000 Date: Fri, 1 Mar 2024 10:46:31 +0800 From: kernel test robot To: Duje =?utf-8?Q?Mihanovi=C4=87?= Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Lee Jones , Daniel Thompson Subject: [linux-next:master 9077/11156] drivers/leds/leds-gpio-register.c:23:32: error: redefinition of 'gpio_led_register_device' Message-ID: <202403011013.7cDG1rwi-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 7175540010 X-Stat-Signature: 9fgp9winakid6psnhi8jmpemnzcc4ipy X-HE-Tag: 1709261209-941749 X-HE-Meta: U2FsdGVkX1876epI9cVwy710yOHzFTkpiwM4V01jUWmVS91WVHe+srZyaKx0b73eB432rN5mDL7Oi6brNbuZZmzMyC7FI/X/2UxS76b61MS2cg6SfPs8qHwcCydqYKHWPVUCaACScGkWR7cnGx4Yew1KswCjqgKgEp38phUfayUPbfreXhu+F509ux7cuukoF3l7R5yfjlaSJSBYju+tLkgWm+g2QkUBh9ZWJF6oGo8wq2qjW9hIvVcvqmJTesp/8Q40iY91hrMMBSH6xebD76WqYTu7M96ZkDp/q0naYL1W6IqC0Nwr1CGQ3AfJ/C7IMXHdD67JtK5qeXscQTa9nfYXv8pQZV3cQ2QBH3Jvi79+jb4sBFW8fi/uNRdrvXZsgk+eNse3EbzAA/+QkgL4bXUxCuoF3Dj93FBdJmzBRxV9i/b0wF45Ugw8Bn82bc1e5yw4oeV2MDZD3hDQnWedho7Kjq6XwQyldc7k7BlkrYJpaVIapKNWkotKoK2V6jYNkZe1+gJ4447pc3zdaMbv8Zm+JH8KEMTY/iYDX+SB2NnJ8lk/PVRXn+dx6RMsEvt07EhfKzKxFaulU6FTLu6xBpRLhme+js7ihfP4TaOQ9lR5OnH5S45MSR+ILomGDRP9cRRtLfapd0F51Ui1cOxKdwReA//l2gXPvWb1Q4+nuTcdKukTM2DiTUAvADTDBhlYAc7owKJfG3UHulplPkhwJ4cdKBY0/aoqWJM+d4713Gq6T48HtBtdaKySN095O3VOGzeqK1ykcn+/HYssdA7oc6Wzq3vCjGoj/Qe5ZxHmrCc9aKzPikhCX93i8ttSWeiU6bWMJ1pb+sd/gGC61WBFLS3RQrXWqgtrNlNZrKQehYXzmB04Rc0zPCMzWgA12hcGniShy58Fesk= 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: List-Subscribe: List-Unsubscribe: Hi Duje, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f303a3e2bcfba900efb5aee55236d17030e9f882 commit: 7a28f9cf6b7c8cad760b4d4ee7f53231cd76d8e4 [9077/11156] Revert "leds: Only descend into leds directory when CONFIG_NEW_LEDS is set" config: mips-bcm47xx_defconfig (https://download.01.org/0day-ci/archive/20240301/202403011013.7cDG1rwi-lkp@intel.com/config) compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240301/202403011013.7cDG1rwi-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202403011013.7cDG1rwi-lkp@intel.com/ Note: the linux-next/master HEAD f303a3e2bcfba900efb5aee55236d17030e9f882 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): drivers/leds/leds-gpio-register.c:23:25: warning: attribute declaration must precede definition [-Wignored-attributes] struct platform_device *__init gpio_led_register_device( ^ include/linux/init.h:52:17: note: expanded from macro '__init' #define __init __section(".init.text") __cold __latent_entropy __noinitretpoline ^ include/linux/compiler_attributes.h:334:56: note: expanded from macro '__section' #define __section(section) __attribute__((__section__(section))) ^ include/linux/leds.h:646:39: note: previous definition is here static inline struct platform_device *gpio_led_register_device( ^ drivers/leds/leds-gpio-register.c:23:25: warning: attribute declaration must precede definition [-Wignored-attributes] struct platform_device *__init gpio_led_register_device( ^ include/linux/init.h:52:41: note: expanded from macro '__init' #define __init __section(".init.text") __cold __latent_entropy __noinitretpoline ^ include/linux/compiler_types.h:113:34: note: expanded from macro '__cold' #define __cold __attribute__((__cold__)) ^ include/linux/leds.h:646:39: note: previous definition is here static inline struct platform_device *gpio_led_register_device( ^ >> drivers/leds/leds-gpio-register.c:23:32: error: redefinition of 'gpio_led_register_device' struct platform_device *__init gpio_led_register_device( ^ include/linux/leds.h:646:39: note: previous definition is here static inline struct platform_device *gpio_led_register_device( ^ 2 warnings and 1 error generated. vim +/gpio_led_register_device +23 drivers/leds/leds-gpio-register.c 4440673a95e63a Uwe Kleine-König 2011-05-24 10 4440673a95e63a Uwe Kleine-König 2011-05-24 11 /** 4440673a95e63a Uwe Kleine-König 2011-05-24 12 * gpio_led_register_device - register a gpio-led device 4440673a95e63a Uwe Kleine-König 2011-05-24 13 * @pdata: the platform data used for the new device c5a87a4ac2bfec Lee Jones 2021-05-28 14 * @id: platform ID 4440673a95e63a Uwe Kleine-König 2011-05-24 15 * 4440673a95e63a Uwe Kleine-König 2011-05-24 16 * Makes a copy of pdata and pdata->leds and registers a new leds-gpio device 4440673a95e63a Uwe Kleine-König 2011-05-24 17 * with the result. This allows to have pdata and pdata-leds in .init.rodata 4440673a95e63a Uwe Kleine-König 2011-05-24 18 * and so saves some bytes compared to a static struct platform_device with 4440673a95e63a Uwe Kleine-König 2011-05-24 19 * static platform data. 4440673a95e63a Uwe Kleine-König 2011-05-24 20 * 4440673a95e63a Uwe Kleine-König 2011-05-24 21 * Returns the registered device or an error pointer. 4440673a95e63a Uwe Kleine-König 2011-05-24 22 */ 4440673a95e63a Uwe Kleine-König 2011-05-24 @23 struct platform_device *__init gpio_led_register_device( :::::: The code at line 23 was first introduced by commit :::::: 4440673a95e63ad888a41db596edaa0c55d3a332 leds: provide helper to register "leds-gpio" devices :::::: TO: Uwe Kleine-König :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki