Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp553979rdb; Sat, 27 Jan 2024 20:50:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGn/NbSZybIDkuPAXsge1EX+/4YdMubQ73Ci25UTB2LTpaxP9GLkSGrEud1xwChkTTiZfRI X-Received: by 2002:a17:906:16db:b0:a35:8bbd:5ba8 with SMTP id t27-20020a17090616db00b00a358bbd5ba8mr296621ejd.25.1706417427143; Sat, 27 Jan 2024 20:50:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706417427; cv=pass; d=google.com; s=arc-20160816; b=zGjkztnF57Fbf7Jt0vqqYYdCsteweWRnzvBkW81DDyDNNiBj8ryDJhA/AX9qjhKcgr YkcRj7LrYhwnTVM0Cr9+lIcikEAeq0a7DweAKp8oOFzb+GArX+NNb1Q1KGQhzdM7St6A Qo7u0AQCdxym8wZdDlkAUsZ9/PnRuPwR/15P8MUrw2KPPZ2MmmcaXz3tM3icUYnRWyNU nA+fpSRbPqyzq+1DEQ6XOXIROHRB5UDZZfpaxsFxhx9TdpRKk2a723wjUhqLwvwoJOs7 J+a+u5HeUjuLkv8dFVtlx+o45G/QDFQ22No5YXjulFDqVJkfs9lDnmXvXC8QNFnpkTF9 +usA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=kRNVBbd3i2yN6/CbKTp/8i+m+zVHq/YW5fyW6ep07Z4=; fh=XQ9ZsN/JcSH1OB/I9foy4BjhnXr5uGd5ZacXCHQwQHY=; b=qOoxxo0CtXVQTjKgEGwiiUelw9YNp2FUBP1H3WkR0Yu9HHorwWX+U4YeAtwq88j9Im EMqPVWfe7/xEJuD1mh2RO9KB5GXS+P3NlbaKBehaXKbszdfRVfe3J+rVqyrJ2K1IGnwp myh40yD1wpLO+Tusc+bkvARqGQP2bR6WRjQ6hSiin3Ty8L6/05ejDnd177Ky3tz1FPQh vuxIqrHvQvtLJc/hiBLiyTvdHlukRyONWCcVOUoaGqAGCoqXEeIlfegIndtFEBGm6FP+ d5I1I4nfk34Vi3fQNrLN2UPiR+0BbfEnZ+BsVrljK8ZdkXse2sBqTCamLzB4z08yWn6P h7CA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Z4r7M/aX"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-41530-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k4-20020a1709061c0400b00a2361a30b82si2166456ejg.875.2024.01.27.20.50.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 20:50:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41530-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Z4r7M/aX"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-41530-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B5C091F221BA for ; Sun, 28 Jan 2024 04:50:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B5D26AA0; Sun, 28 Jan 2024 04:50:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Z4r7M/aX" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 37085440C for ; Sun, 28 Jan 2024 04:50:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706417419; cv=none; b=aeQGGhetwtdSkjAbvSVWXN6S1XPYu8Hol4gcQVWZuqT7C3TSm7u32WR6ctNIi+msbM39Qs1R0m8eXSHKdaqILy4arFI8rwtUWyk8M/dYNbEE5jVviUxe+su9vpkmEB8ZUl/gnMx6WQ/vtixODIxiC0s+nSZaITAepUXLlUOsPDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706417419; c=relaxed/simple; bh=WWMTdDCo/ZFyxKJbvW5goSUgmmbNlhQXiF8IA36CLT4=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=e1Js2H4LEgP2bwQucyf1owNuGJRk1qq5vjJd+FMc6bvfx+4eaEDCHcqfXt8HHpgMKXwE+fqtdSsNcfvi4OMqULzEk03yAIqvgoEACZx7NUdarrKE4e+dPZEIqGShKdoEqBORjg33ghvnHTOzdFGAxDJQ6yVNs/sSyjSLnv9dRnY= 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=Z4r7M/aX; arc=none smtp.client-ip=198.175.65.15 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706417417; x=1737953417; h=date:from:to:cc:subject:message-id:mime-version; bh=WWMTdDCo/ZFyxKJbvW5goSUgmmbNlhQXiF8IA36CLT4=; b=Z4r7M/aXz3oolzg+G6WEpSchmrD1VFopb6MdLxjP0gDEk5SfdKKGQTeB ewCWWrt/6A/P/gTMsME2M0XCAfZ36u1XNiu93KmH/s4v/1wttKTS8xF3G fOR/EQSzlDWJJ37R8orAJsO6EYSPLmh+thE4xZakIGEu9Qw2F8B9ym6MG I5toSc7PtFK/DynCFDyUZQ2hDIjl5azHEpv7gePanAa06xs3RTP4y74VK oghfFDNKE7CAA3yV41ccurUKk8927WIJ5ldFpCr+T6xPAWYg9b0aUy2jD w/DJDQ5Wf4MFpVTczEnmELC9KRUBVciNDQYl27DkrJp2JHO2u5Q5OxAq6 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10966"; a="2606028" X-IronPort-AV: E=Sophos;i="6.05,220,1701158400"; d="scan'208";a="2606028" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2024 20:50:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,220,1701158400"; d="scan'208";a="29196988" Received: from lkp-server01.sh.intel.com (HELO 370188f8dc87) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 27 Jan 2024 20:50:15 -0800 Received: from kbuild by 370188f8dc87 with local (Exim 4.96) (envelope-from ) id 1rTx7T-00035O-2f; Sun, 28 Jan 2024 04:50:11 +0000 Date: Sun, 28 Jan 2024 12:50:10 +0800 From: kernel test robot To: Bartosz Golaszewski Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner Subject: [tip:irq/core 9/9] kernel/irq/irq_sim.c:173:12: error: expected expression Message-ID: <202401281222.T75XK3kV-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core head: 590610d72a790458431cbbebc71ee24521533b5e commit: 590610d72a790458431cbbebc71ee24521533b5e [9/9] genirq/irq_sim: Shrink code by using cleanup helpers config: x86_64-rhel-8.3-bpf (https://download.01.org/0day-ci/archive/20240128/202401281222.T75XK3kV-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240128/202401281222.T75XK3kV-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/202401281222.T75XK3kV-lkp@intel.com/ All errors (new ones prefixed by >>): >> kernel/irq/irq_sim.c:173:12: error: expected expression 173 | pending = __free(bitmap) = bitmap_zalloc(num_irqs, GFP_KERNEL); | ^ include/linux/cleanup.h:64:23: note: expanded from macro '__free' 64 | #define __free(_name) __cleanup(__free_##_name) | ^ include/linux/compiler-clang.h:15:25: note: expanded from macro '__cleanup' 15 | #define __cleanup(func) __maybe_unused __attribute__((__cleanup__(func))) | ^ include/linux/compiler_attributes.h:344:41: note: expanded from macro '__maybe_unused' 344 | #define __maybe_unused __attribute__((__unused__)) | ^ 1 error generated. vim +173 kernel/irq/irq_sim.c 153 154 /** 155 * irq_domain_create_sim - Create a new interrupt simulator irq_domain and 156 * allocate a range of dummy interrupts. 157 * 158 * @fwnode: struct fwnode_handle to be associated with this domain. 159 * @num_irqs: Number of interrupts to allocate. 160 * 161 * On success: return a new irq_domain object. 162 * On failure: a negative errno wrapped with ERR_PTR(). 163 */ 164 struct irq_domain *irq_domain_create_sim(struct fwnode_handle *fwnode, 165 unsigned int num_irqs) 166 { 167 struct irq_sim_work_ctx *work_ctx __free(kfree) = kmalloc(sizeof(*work_ctx), GFP_KERNEL); 168 unsigned long *pending; 169 170 if (!work_ctx) 171 return ERR_PTR(-ENOMEM); 172 > 173 pending = __free(bitmap) = bitmap_zalloc(num_irqs, GFP_KERNEL); 174 if (!pending) 175 return ERR_PTR(-ENOMEM); 176 177 work_ctx->domain = irq_domain_create_linear(fwnode, num_irqs, 178 &irq_sim_domain_ops, 179 work_ctx); 180 if (!work_ctx->domain) 181 return ERR_PTR(-ENOMEM); 182 183 work_ctx->irq_count = num_irqs; 184 work_ctx->work = IRQ_WORK_INIT_HARD(irq_sim_handle_irq); 185 work_ctx->pending = no_free_ptr(pending); 186 187 return no_free_ptr(work_ctx)->domain; 188 } 189 EXPORT_SYMBOL_GPL(irq_domain_create_sim); 190 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki