From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=199.89.1.14 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796338675; b=RHkGVexvOoL2EEAW8tq36UCPz7F0GDXGlfEn5W7Ny7f9CLbaAqIgIBt4t/CEPvLEcTCF X1Yq283MWmziraY5wQZeZRPob9phr2WpkWlNOdci46EpJulJh0EqzWvSssUetrlGcYWe0 HXBXlGQ3uZ6y3n0KOzOtiZwZjPkGTS6uBvNXp2V8lwbk3VrMdDCx6GRZkP6JKP3WVq/Z5 CrsbTxYshFRDYacRrJlGqi+kLJptCqkzBE4Fajk/rK6VetIMcLBZRM0hiWy41+JOulvYl 5whb3vlf5OzufMlLpdOwhev+ZAhVNIym3EUxLqjNV9V/YM+qbwbfaMJRLlAHghRsR6g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796338675; h=DMARC-Filter:Received:DKIM-Signature:X-Virus-Scanned:Received: Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=8IkPn2GGxF+LA1TLd8T/EUV9mCXvAtEvZrTiiTFGn6w=; b=hO92vqCgbDspd0LYl/bh9w/MZAG3v0gfmLN8NoiJEtFPDg9tNpAYQCBQ/G4zIJujNXsl bGOrE87TcvCip0qAT37zMV97eJWu+x6JOSjQUS9UFcVWsh9oRJPCtqjwPzNCNDc175rNW bT/tP1QzWWnt2IVIl3zGAF5k8QuRKIwXfyC/vL/Mkq+JhPfO+55omJNBjsB311mdOoY6i qIxDvAhvDcqmz2aSzu+tJe6vrrL/53N/1UplRZ4p0m5Ui4VogxeaRQDZfj6UjOnxPiZ5I LvU+YpjJhteFvUvpn1o67XAaE4HfyNO72hMd8jcJDebM2+laP3pvTJtqsHJu+sisdjA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass header.d=acm.org header.i=@acm.org header.a=rsa-sha256 header.s=mr01 header.b=heT9D42s; arc=none smtp.remote-ip=199.89.1.14 Received: from 011.lax.mailroute.net (011.lax.mailroute.net [199.89.1.14]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D10B7606A322 for ; Thu, 3 Dec 2026 22:57:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D10B7606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=acm.org header.i=@acm.org header.a=rsa-sha256 header.s=mr01 header.b=heT9D42s Received: from localhost (localhost [127.0.0.1]) by 011.lax.mailroute.net (Postfix) with ESMTP id 4jgVQP1T6Pz1XNKtx; Thu, 3 Dec 2026 22:57:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1796338666; x=1798930667; bh=8IkPn2GGxF+LA1TLd8T/EUV9 mCXvAtEvZrTiiTFGn6w=; b=heT9D42s7rAPH1/oht/QRe6ocHJ0iR6hxCvcnZVi +ENr81gJeTz8DFqbkYG//kSvKyCQVBOtWmHo0pEtuBer+LNNQe3OC1nkBMdb1siK BcL4DTXBKU4UKzuSRekFSuTFKPV/TOyndI4mnjXLur6jmOE+5jOhKwlCLNfw3u8W SlaFoNpAyVaJ0cRMlR5UFJ4HOc/zqjTdF4ag8I+cvW30yljw4jxZvYr3lFN2dmFh FaXgeecdVXRXHei4KFmVkFzD0wbs/wz4pv9VSphziNsaK1el7OwvcKdhy7J0g0dY w+Ig/OV+oaJ9ZJZDrNTBtiT7GKR4KNybWy2MambYRIyAfg== X-Virus-Scanned: by MailRoute Received: from 011.lax.mailroute.net ([127.0.0.1]) by localhost (011.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id OfZVRhabMSsh; Thu, 3 Dec 2026 22:57:46 +0000 (UTC) Received: from [IPV6:2a00:79e0:2ed2:d:e3e0:7d5f:bc86:ba5c] (unknown [104.135.182.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 011.lax.mailroute.net (Postfix) with ESMTPSA id 4jgVQL10shz1XMFvk; Thu, 3 Dec 2026 22:57:46 +0000 (UTC) Message-ID: Date: Thu, 3 Dec 2026 14:57:45 -0800 X-Mailing-List: linux-sparse@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [linux-next:master 9454/14229] kernel/sched/cpufreq_schedutil.c:732:31: sparse: sparse: Initializer entry defined twice To: Zhongqiu Han , kernel test robot Cc: oe-kbuild-all@lists.linux.dev, "Rafael J. Wysocki" , Christian Loehle , linux-sparse@vger.kernel.org, sparse@chrisli.org References: <20261203091753.WpTaK2OO-lkp@intel.com> Content-Language: en-US From: Bart Van Assche In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable On 12/3/26 1:21 AM, Zhongqiu Han wrote: > Ccing Chris and linux-sparse@vger.kernel.org >=20 > This is a pre-existing sparse false positive in > __IRQ_WORK_INIT(), not something introduced by this patch. >=20 > With the same sparse(v0.6.5-rc1-94-g0d159c10), config and W=3D1, the > parent commit already reports the identical warning, just at the header= : >=20 > =C2=A0 ./include/linux/irq_work.h:34:17: sparse: warning: Initializer = entry > defined twice >=20 > which is init_irq_work() expanding the same __IRQ_WORK_INIT() macro. Th= e > patch replaces init_irq_work() with IRQ_WORK_INIT_HARD(), so the warnin= g > moves to the call site. Apart from that, the sparse output for > kernel/sched/build_utility.c is identical before and after the patch. >=20 > Every IRQ_WORK_INIT*() user warns the same way under W=3D1, e.g.: >=20 > =C2=A0 kernel/irq_work.c:46:9: sparse: warning: Initializer entry defi= ned twice > =C2=A0 kernel/task_work.c:20:9: sparse: warning: Initializer entry def= ined=20 > twice > =C2=A0 kernel/rcu/srcutree.c:267:35: sparse: warning: Initializer entr= y=20 > defined twice Thanks for having reported this. I'm the new sparse maintainer and I'm working on a fix. Best regards, Bart.