From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E964F303A20; Thu, 13 Nov 2025 04:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763009428; cv=none; b=ajLZbXpITav9aqDGC8dhHhdNn2MQKTLbwieu2TpaE2TtHCBAtLdHn8y/YHY8GNbGAzP8pGEGVKIpdl3LJg1STHq/EndMgs5xmxrl2/HtNPghGQK3EURes8sdYCkdfXKzYI4aSIgn6BXVYNzHay73szth/0aysVXr4Ia79VBsHso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763009428; c=relaxed/simple; bh=OwNiD+LA708Bkt76Ibt9Y8BhTcH5rbaAndgqlLkl4H4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pPKRb6J6fUHBIhFKTsJmfEiFWhfKnYkszlr2gNCwbPYj40mdozzhfkV+on8Ek9fTdYeKTzfnhGzb9h6A1/fC8yGSnvzvstBV6gUEhqU/iSCFPqmo0Q6Z0fQR+CiTFp9Ds0NTL6jki2AXBgRtQXNbnz32Ju4p15ti0jQCQHz+i3E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=iGt+3z6n; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="iGt+3z6n" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1763009427; x=1794545427; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OwNiD+LA708Bkt76Ibt9Y8BhTcH5rbaAndgqlLkl4H4=; b=iGt+3z6nXVceWO4GYTLS0ZmYHiDtR7Jk8puKz8WLC8siDhl1eHse1PSh Q/xkAwl9KhoMuU5o+RnMSZgfG77qq+TxMoN2lf4QORFiBTTyeY+Kn6Zaw fjOXahY5aX++b7JGuV0Mb8YTqyNDHx9M4HtRWptfv/ALL3yHyF3SorprY 3MGcmdnT0ig35fr5lrPfQnmPFpDcaVxVYvFXTsuicqcYhdHHU5M0SAgfz aGAcNiKaF/1gKiBgzN5SUXA0fZyDIMJmchn1k0Bl5nAUJ0Y6Xmh6/EgyS 7pPBQcAxXquXWX3Sc2SR0UjNe3NGLB3niBVDUFOkXutEPnlMcV7sXmh07 A==; X-CSE-ConnectionGUID: QLH6Sxw/RLacFQb7c9d6/Q== X-CSE-MsgGUID: FflwoBmeRZeG9qWchopNLQ== X-IronPort-AV: E=McAfee;i="6800,10657,11611"; a="68947842" X-IronPort-AV: E=Sophos;i="6.19,301,1754982000"; d="scan'208";a="68947842" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2025 20:50:23 -0800 X-CSE-ConnectionGUID: uGOZoOpJQZWcQ0afR6xfOA== X-CSE-MsgGUID: eq8a2LoDTSCyyUsRhxQNkg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,301,1754982000"; d="scan'208";a="212789109" Received: from lkp-server01.sh.intel.com (HELO 7b01c990427b) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 12 Nov 2025 20:50:20 -0800 Received: from kbuild by 7b01c990427b with local (Exim 4.96) (envelope-from ) id 1vJPHm-0004sk-2O; Thu, 13 Nov 2025 04:50:18 +0000 Date: Thu, 13 Nov 2025 12:49:34 +0800 From: kernel test robot To: Andy Shevchenko , Philipp Stanner , Greg Kroah-Hartman , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Jonathan Corbet , "Rafael J. Wysocki" , Danilo Krummrich Subject: Re: [PATCH v1 2/2] devres: Move devm_alloc_percpu() and related to devres.h Message-ID: <202511122250.550UBJAu-lkp@intel.com> References: <20251111144104.910241-3-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251111144104.910241-3-andriy.shevchenko@linux.intel.com> Hi Andy, kernel test robot noticed the following build errors: [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on driver-core/driver-core-next driver-core/driver-core-linus linus/master v6.18-rc5 next-20251112] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/devres-Remove-unused-devm_free_percpu/20251111-230827 base: driver-core/driver-core-testing patch link: https://lore.kernel.org/r/20251111144104.910241-3-andriy.shevchenko%40linux.intel.com patch subject: [PATCH v1 2/2] devres: Move devm_alloc_percpu() and related to devres.h config: i386-buildonly-randconfig-004-20251112 (https://download.01.org/0day-ci/archive/20251112/202511122250.550UBJAu-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251112/202511122250.550UBJAu-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/202511122250.550UBJAu-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/gpio/gpiolib-devres.c:9: >> include/linux/device/devres.h:113:6: error: variable has incomplete type 'void __attribute__((btf_type_tag("percpu")))' (aka 'void') 113 | void __percpu *__devm_alloc_percpu(struct device *dev, size_t size, size_t align); | ^ include/linux/compiler_types.h:60:19: note: expanded from macro '__percpu' 60 | # define __percpu __percpu_qual BTF_TYPE_TAG(percpu) | ^ In file included from drivers/gpio/gpiolib-devres.c:9: include/linux/device/devres.h:113:14: error: expected ';' after top level declarator 113 | void __percpu *__devm_alloc_percpu(struct device *dev, size_t size, size_t align); | ^ | ; 2 errors generated. vim +113 include/linux/device/devres.h 98 99 /** 100 * devm_alloc_percpu - Resource-managed alloc_percpu 101 * @dev: Device to allocate per-cpu memory for 102 * @type: Type to allocate per-cpu memory for 103 * 104 * Managed alloc_percpu. Per-cpu memory allocated with this function is 105 * automatically freed on driver detach. 106 * 107 * RETURNS: 108 * Pointer to allocated memory on success, NULL on failure. 109 */ 110 #define devm_alloc_percpu(dev, type) \ 111 ((typeof(type) __percpu *)__devm_alloc_percpu((dev), sizeof(type), __alignof__(type))) 112 > 113 void __percpu *__devm_alloc_percpu(struct device *dev, size_t size, size_t align); 114 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki