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 E90EAC48BF6 for ; Mon, 26 Feb 2024 22:59:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 348894401CB; Mon, 26 Feb 2024 17:59:33 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2F6F944017F; Mon, 26 Feb 2024 17:59:33 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1E6544401CB; Mon, 26 Feb 2024 17:59:33 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 0B51744017F for ; Mon, 26 Feb 2024 17:59:33 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id A655AA07D8 for ; Mon, 26 Feb 2024 22:59:32 +0000 (UTC) X-FDA: 81835473384.16.D08F6F6 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by imf25.hostedemail.com (Postfix) with ESMTP id 853BEA001C for ; Mon, 26 Feb 2024 22:59:30 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QDTJ5CIk; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 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=1708988370; 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=jhfMlLhS/TQnY50ZqOvyvm4oJfu1mzvwv4CKm5CMivI=; b=LmFhfBgyq6TUcgZ4v9VfQDq+wliVdRMshLrEa5LemaFROaV88jH/x+wPxDgr17cUZ/gFlo coj9AO+gFPsXUGfIfhqpT25gh9dVNRCiJMo69UI8yIrvpXgtje/19yH271AdfLrqaU5HZm eDkkT8//vZR8ANKZuigtKvpjufMIf9A= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708988370; a=rsa-sha256; cv=none; b=baNnVAqK9VNRHrX23wF00b0UXmumMg3zN1SSniF0cSRA3jy8o6JDncjt04OKvKOKtGsyiR 41k/P7lLwWXu+7m/KGBBFZv7n1KnkJsUZH8l2YlnCA3B+M+Qr55ftpnWOHmtSUV51GN0XR qlPuTlEjFWRdtYf1PNC7z8cde2CN9aY= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QDTJ5CIk; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708988371; x=1740524371; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=AB6wH6fh3xUjGCcELHUEz8Vc9UGxsP93pfzxD8ptCDg=; b=QDTJ5CIkxGSY3OricDP0xYoXALQNfx67ij/ErBc7kQx3aD/WvqRXuZ7X kYWl+ssdeVqiCTm8FVCoOfoZW8vNdNlxQAsN/XGquZioZDCnYapqCuiy5 p9RxR3uU0TPa5eoKi5SSOmoZiQ6cUZZjMzva+tZbXHRrTuvQCh6/ZRyCY ACMKcj7L25A8QXQDbsmc6IuMW2ksc5rIGbhg+NBkgjl/BrFI5XKP5emy+ 00W8daKDTyLBttaxGquaxYjj2s3PrUsZlFpK6sUyS56weYPSC4x+lncln qTr4KJce9GWwPWby4vwepPVlHrou8cixJ1xFpA0FxUBW545/zwJt1UvTL Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="6256400" X-IronPort-AV: E=Sophos;i="6.06,186,1705392000"; d="scan'208";a="6256400" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 14:59:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,186,1705392000"; d="scan'208";a="11605294" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by orviesa005.jf.intel.com with ESMTP; 26 Feb 2024 14:59:25 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1rejwL-000AkZ-0T; Mon, 26 Feb 2024 22:59:19 +0000 Date: Tue, 27 Feb 2024 06:58:59 +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 9208/10236] drivers/leds/leds-gpio-register.c:23:25: warning: attribute declaration must precede definition Message-ID: <202402270609.79kfRDFE-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 853BEA001C X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 7tg3zfjz4zzkrjq3d5c9f4eue9zkuegh X-HE-Tag: 1708988370-779396 X-HE-Meta: U2FsdGVkX1/pU1IMov5IiYH3KAVW1ThXYEMHXNXKRcLUSukVVp7ClY+TSD0VvzH/Ak7rgoDkJP2qQBMVIqqoQmTaIzOqGcXxamaKN0ck6RrR5wDRgpdaZ7hQh3f/l9VmvSDEVAeSFWD9qOtbm0lxSSVOc3/ZEDX3kfvNk/hhxpcIM8O4E7oiizPiP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/tbsA1EBRUUZtSy1EZ+Vo2SKNkfaSbHdi9yAod5qtxGDo1a6v1e+dnAGqYbaGh8ANGhFlxetIm2a1AEVJmBBHpTYRcxfPjSGXoTfhZGPnDihtCgF1HIoJGtQwo3/kxcQhc= 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 8552c902efe7ef670b6961fb8885b67961aeb629 commit: 7a28f9cf6b7c8cad760b4d4ee7f53231cd76d8e4 [9208/10236] Revert "leds: Only descend into leds directory when CONFIG_NEW_LEDS is set" config: mips-bcm47xx_defconfig (https://download.01.org/0day-ci/archive/20240227/202402270609.79kfRDFE-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/20240227/202402270609.79kfRDFE-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/202402270609.79kfRDFE-lkp@intel.com/ All warnings (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 +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