Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp63310lqp; Thu, 4 Apr 2024 07:13:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjsLZJmjXUXW6uca9Rauh9fdYNcObp8ZbEeoiGluvZdtyLZQL4dL43tIjfYwbijoTyzmMwES6TkQ2k6l6XBEI+0KmLLLqXdEjxUp4wsg== X-Google-Smtp-Source: AGHT+IEE1oSh40UxBA6BJ9ptArOpHxb90qGcIPnlh9vRWTCnQO+sDgjvo5QgADP+ZY8aiUDuFADT X-Received: by 2002:a05:6102:3b88:b0:471:2478:71fd with SMTP id z8-20020a0561023b8800b00471247871fdmr2250433vsu.33.1712239999993; Thu, 04 Apr 2024 07:13:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712239999; cv=pass; d=google.com; s=arc-20160816; b=kj3/gkryWt+i6oMR+/2XLvQuGZ7m6vQkVGfQ8+k13fOENW8fQtIw6aOdGcBJqEJOax w4szGo6/ZBn4zb7Q5107CZUkCDFY6jjMCkEarH8HhEyhN5gLD13kYl6skjG7vWOkAUn8 n0Ov35KHmxYXkvYC+ZSuDLLryusfnx1LPKRnrmjC5brI2Btc3DvQlz/zssenQ6qTbyH6 1WaflMCxKyvPNhn8zqau+Mq7zaUrgS7weold3WWZW378X4QLVyXJLLWlR06UJHutuRWy ov3trFN1qoowCYIccAfD90I2UTVOiZFvwGgJdyz4prE++qVPwOYqPum7HVTRsaCJTdeZ pUxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=N+EYyvLWA/1764pidiha23yH25rL43NPhdGDRm3VFBo=; fh=8awaA6E/VwdlVuHDfiEw8NVH2E8c7iCCKK5udkjUEh4=; b=L62jejov2wpOewQXjJuDUWlBwerAp7kkqwuIOQO6YtKNPztAa1ru5fc5k6fsD6URB6 BSzHHwe51yTQ+jFkNtWjwpAE8d+ZDVOQ09FbVGX1WTMUG3Br1ONIYQwXI9sVqdRS16EN EGxyCD2d9VefPkVy43NLJUbjjcVJE5zwG7ZWxBLbPH82E8NdegRugqOvQFVOqeHzQ3XK My8RBIyXgyBZ697Y1qfQ1biYPMSTDwbPQFh15m+w7SAHCuXs1M4Mxh2LBxImbXPd6R3G B4PowbOjbxkxEoMcgYDOQoAE6HvezQq1dm7iKswy0/BnlG7inhVmChcFJTVMm5Q58X12 5fIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=TTi7DkXO; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=uuYYX8pM; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-131568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b23-20020a67f997000000b00474c4bcf2d1si2009818vsq.757.2024.04.04.07.13.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 07:13:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=TTi7DkXO; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=uuYYX8pM; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-131568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D2B791C28CCF for ; Thu, 4 Apr 2024 14:10:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA5E712A16C; Thu, 4 Apr 2024 14:08:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="TTi7DkXO"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="uuYYX8pM" Received: from wfhigh1-smtp.messagingengine.com (wfhigh1-smtp.messagingengine.com [64.147.123.152]) (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 C4FE01292DD; Thu, 4 Apr 2024 14:08:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712239702; cv=none; b=tRVGypsq1blzvtFD/VTxLixEdwWe8awBZXqktMtn2VovsH8SrMFTIyLeEI8CWhZzDssOrNItMTiJtmTCPrdP4Ewl/vxm0WEnCeyv5OPY/8YUSImUnNX+aOH+kYzaPXPWTrosQYYNTfWvfBlPP/BZgPbArMt8t9DDvOLgB3zCKcg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712239702; c=relaxed/simple; bh=1bjFWCvwY4ohIIq4OBpqdx2ADu0JX5LSALPQRIoYYZE=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=e1CwX+PaSLB9cl3U5iOrV9CNTaeV2D3/5CuaUN/xKCLWtdrVIqiNdRj/vSzkkFAywsqjc1HLgzlWLvWlNclX2kn6oRV90spgyZBMETDsmaGSoS306JY7iKRJiKwler0lxsxQUy0l+kchYgWAmAbpViYwlCYZoUvlsYSTDelNoRE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=TTi7DkXO; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=uuYYX8pM; arc=none smtp.client-ip=64.147.123.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id ACB071800184; Thu, 4 Apr 2024 10:08:17 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 04 Apr 2024 10:08:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1712239697; x=1712326097; bh=N+EYyvLWA/ 1764pidiha23yH25rL43NPhdGDRm3VFBo=; b=TTi7DkXO2JErQaJb0mScNFsUOv Ss+oTwRiua3x1I+5B5mvMdi9nPtasukJWugr5CpHyYRxnOIvvKK121hd7Ck9H+SL stQo5kyzsyTe+0idyL0ID/nrKDicBBPRail/37wobyKp41hO7LWjcsBlPTJ8wSxg CgCRm3xTmEIjDmz7T7IZE7uO35smMcdGc8xc/Op2WSaWnZ6l2gSghydvEUIIyfEH bltcRCGN3V2ubt/6BddGSZAfcIDA1+o3TyyRpbYB7KS1YDIXn4KTuA937rzuswLT F4Wf04nmzuORreEv5hnxvDQ+3rCwvhyQ+trCk6m8vcTcq9KHfcFvDe6Zv5fw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1712239697; x=1712326097; bh=N+EYyvLWA/1764pidiha23yH25rL 43NPhdGDRm3VFBo=; b=uuYYX8pMYU0SWFnQWsweQ28E0GRlxxYRT0voaidY4sqB tqKLxhUoUvPoNh93u26rJTm5ZSFIVOKnZ3WevqhyE22onSEuGfQDLHa1t3A+4zdj q4UT+LoQt8P4VVQhShqxkSNwfUO730DUBkTXQuxIrvPRoIOZBi+5iUD0jXsUhmr+ heJe81RODGAkiiejUEL4AANUlmqoCjF66QvVZH1PyotncNx9g0gwmMeN5u2Nf5QG A6LzW3j0gnVkgXV/vObxTrJoBQuied3ViBJvD1aSWb8wJCEdEBIN5FV3RkgOI8px Ne83yEPpk20VTa4sbkpLUViY01PP8Qd8Nyo6fb75IQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudefkedgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 13AC2B6008D; Thu, 4 Apr 2024 10:08:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-333-gbfea15422e-fm-20240327.001-gbfea1542 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <63909b0a-7d76-418d-a54c-1061bd3b6e11@app.fastmail.com> In-Reply-To: <20240329134917.579c3557@endymion.delvare> References: <20240326144741.3094687-1-arnd@kernel.org> <20240326145140.3257163-4-arnd@kernel.org> <20240329134917.579c3557@endymion.delvare> Date: Thu, 04 Apr 2024 16:07:55 +0200 From: "Arnd Bergmann" To: "Jean Delvare" , "Arnd Bergmann" Cc: linux-kbuild@vger.kernel.org, "Masahiro Yamada" , "Nathan Chancellor" , "Greg Kroah-Hartman" , "Nicolas Schier" , "Nick Desaulniers" , "Bill Wendling" , "Justin Stitt" , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH 05/12] firmware: dmi-id: add a release callback function Content-Type: text/plain On Fri, Mar 29, 2024, at 13:49, Jean Delvare wrote: > On Tue, 26 Mar 2024 15:51:30 +0100, Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> dmi_class uses kfree() as the .release function, but that now causes >> a warning with clang-16 as it violates control flow integrity (KCFI) >> rules: >> >> drivers/firmware/dmi-id.c:174:17: error: cast from 'void (*)(const void *)' to 'void (*)(struct device *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict] >> 174 | .dev_release = (void(*)(struct device *)) kfree, >> >> Add an explicit function to call kfree() instead. >> >> Fixes: 4f5c791a850e ("DMI-based module autoloading") > > Not sure if this fixes tag is really warranted. As I understand it, > your change only removes a warning but there was no actual bug, right? As Nathan already commented, it's a real bug. I also add 'Fixes' tags for false-positives just to document what introduced a warning. The Fixes tag doesn't automatically mean something gets backported, though the stable maintainers often end up backporting warning fixes as well, and it helps identify which kernels need it. > Looks good to me, thanks for doing that. > > Signed-off-by: Jean Delvare > > Will you get this upstream, or do you expect me to take it in my > dmi/for-next branch? It would help me if you can apply it to your tree directly. Arnd