Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3434279lqp; Tue, 26 Mar 2024 09:03:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2Ln/YFrrr7mp1OxBjanajJYy9EQxZl4OR9bFVtUtdwFKIHsy0iHDFee0SFfIf/n2N8rS9ZLagCLdZZNxVDwgVnpNhHsKpRij/NF37RQ== X-Google-Smtp-Source: AGHT+IG6E0FfYTPTjbK1rbnNpQEpt5AWIzvY4YB4oohgwAPBHvGyRpWQzXN6HhtL/hzbzOwa85XN X-Received: by 2002:a17:906:fd8b:b0:a4c:de71:54f7 with SMTP id xa11-20020a170906fd8b00b00a4cde7154f7mr3646141ejb.27.1711469003268; Tue, 26 Mar 2024 09:03:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711469003; cv=pass; d=google.com; s=arc-20160816; b=KtMVy4kVfWfgPPiEDe2XhD6Ry8bb+6dRKKlUO1/cZ6UxPmkmyKSm8c2bkBPfcasACQ VtMRgnrIKuDtO3oj9QGI0r3RDWOoO7ubVdskQ9y0E4+ZU03yVZ7QQf/yLPvyOEA5vulA 6X9n1WQ2C+2XCmP78cHd2n4KHaJt6eOuh4lQ4SdBkjbI6U865/woFlOKFGoUMpS2aZig qBQsA1kkAlyA+OioVFidXaMlcBi91QQ8RQbt2ann8gtbt3y319AtF1fILxj6q36klzFn 8cQWo/25GDo1YBQCSV+YurW0Bbmpnr2mWjYg5cwJL3vXAdlEZzNSS6/YbwzkPH+vMp/y gYPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding: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=uZQNPynhKPF46EB/VI6vYwBBa1dqaara1pLLBIisxc8=; fh=IG4YZeOC5H+xeZWsiaTuPZvkjDDTqYibdalErO3+Frc=; b=nlKPXoqWP8+sOIlpb8DKmVyfPnYwlnhvPBi8WWj4EEBDsy9r/ft4BGeorJRgx7exiA YxEZRzFeU8fs9h5Cyjv+wET073SonsUQ60CciShDvP5uiJh+SiZHgxatz3qhqga4/S5L LkvDiT9UiTXdPKrc8jzMDKrxO7zbQKg1GiioK6wRYZ9qCE3IChMJb02bU99+5OsjabxC sYb+A17oAsBa3uhYkyNleELDemUBmXQXTJ/yt9rU+X/TDpmtFvlZCh8ZzMMsQ24InTfO P1BuPI1rJj2fC+GFocvAfr9zgjuk2mjt7PEOAmF7mzNLAguBINH2YbkoQ6TKcvd8bJEp eefA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=mjCT9fo6; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=R8Az+nHD; 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-119415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119415-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x17-20020a170906711100b00a4def184a37si991387ejj.732.2024.03.26.09.03.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 09:03:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119415-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=@arndb.de header.s=fm1 header.b=mjCT9fo6; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=R8Az+nHD; 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-119415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119415-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 am.mirrors.kernel.org (Postfix) with ESMTPS id F2DC71F812E2 for ; Tue, 26 Mar 2024 16:02:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBAB913C8F9; Tue, 26 Mar 2024 16:02:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="mjCT9fo6"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="R8Az+nHD" Received: from fhigh8-smtp.messagingengine.com (fhigh8-smtp.messagingengine.com [103.168.172.159]) (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 DD9EC13C83A; Tue, 26 Mar 2024 16:02:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711468955; cv=none; b=jN8usJTrs5fHo9xrnrODADltz3eJ3Qko2i5ELqwDBnoihZjtqNXkcme/MgDJ4xP5LUgWmYrNeOWanJjaAYaKbDMp2hw5i5d3zoiAjdUGlI3Pc30DrWafD5VriafPYPxhQIsViHbREl8vZLLlZx0QYJ+2GuMmj1vB2L2ZikHxQ/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711468955; c=relaxed/simple; bh=WEETTdtmXnNUUxdJnrKz4FTNJRHDYO+nDraQbw59R0o=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=Ayu50rvq4WbvWG7QiytbZiE6SjmFlwK3ni9nJGhatI4WILECUUbksLhke6S+hcp0jcio1JWe6KXCUTi8bEA9A9wjb4oUQZGHpfUZE8ZIyxPEu+r/vZa0VxWL50V4iLJVQO/8OY4IBAv3dOfwn70yvYTOq/S2YndVWlMbEQzcUPc= 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=mjCT9fo6; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=R8Az+nHD; arc=none smtp.client-ip=103.168.172.159 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.nyi.internal (Postfix) with ESMTP id E88BB114008C; Tue, 26 Mar 2024 12:02:32 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 26 Mar 2024 12:02:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding: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=1711468952; x=1711555352; bh=uZQNPynhKPF46EB/VI6vYwBBa1dqaara1pLLBIisxc8=; b= mjCT9fo6BpB7CSjlxicGaG/bS9hBLKCK3w6UShjKUvJktIIjba0cHRBKQAimrc5Q Emv6TmTcP0KOyBxUFeKu7CE83/rb1jMarfYe0oIwxsWa65ehQ8LTpZFtTFQDVOuo wDBcHV1cN4ZnimtBxcgqh0RhCjGYsF9Sg7tKIvkfjgc7IZqiG3+oiX4kjl3YqZt9 ORsRs+LHyp48c1UEPbHS/AnyUCJHWBWmNbxtsAZU3yrh917L6a7wt6A2JfqnKE5w MnJ3d9DHRmb2vQE3TEOK9phybyGejur466HXU1Ve6Tylxan1k7JO4XG+f+63cVut Zsmng4dpx0203Bo+/PR1Kw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1711468952; x= 1711555352; bh=uZQNPynhKPF46EB/VI6vYwBBa1dqaara1pLLBIisxc8=; b=R 8Az+nHDQmgC0yNbisHXJ3de+Z7rjacbhC5d6IM8Pa/bXUI0Sd3iTpgvvmFOrS0XU 4gp2B6BhmcXpSUScqla22drDVDBJr5u4AMhja1b/rJqrH8uSG13hPOlwPt734Oaq 1XWClBMuivbPZ3QXR0XzJJOoTtjwk9co108Jbaw8+MmyDuhT27H5bCmwCTCvz3BI zGV8mMLxna7ZeEakS/YOIZlGq8uaP9w7g4X/+kc+WLgzXsz7Az25CW8GngrZ6roY tC4sy+dQ2y4+Zy3CqE0dr/pgKcc5/+UFr424G3twWiW+OTXI10K0dYngGx3w5Rlg 6RzWNHNFxT8Ms9gzRhQLw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledruddufedgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E4F75B6008D; Tue, 26 Mar 2024 12:02:31 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-328-gc998c829b7-fm-20240325.002-gc998c829 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20240326144741.3094687-1-arnd@kernel.org> <20240326145140.3257163-5-arnd@kernel.org> Date: Tue, 26 Mar 2024 17:02:11 +0100 From: "Arnd Bergmann" To: "Timur Tabi" , "Masahiro Yamada" , "kherbst@redhat.com" , "linux-kbuild@vger.kernel.org" , "Arnd Bergmann" , "Lyude Paul" , "bskeggs@redhat.com" , "Dave Airlie" , "Danilo Krummrich" , "Nathan Chancellor" , "Daniel Vetter" Cc: "Justin Stitt" , "dri-devel@lists.freedesktop.org" , "Bill Wendling" , "nouveau@lists.freedesktop.org" , "Nicolas Schier" , "Nick Desaulniers" , "linux-kernel@vger.kernel.org" , "llvm@lists.linux.dev" Subject: Re: [PATCH 06/12] nouveau: fix function cast warning Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Mar 26, 2024, at 16:20, Timur Tabi wrote: > On Tue, 2024-03-26 at 15:51 +0100, Arnd Bergmann wrote: >> Calling a function through an incompatible pointer type causes breaks >> kcfi, so clang warns about the assignment: >>=20 > > ... > >> +static void of_fini(void *p) >> +{ >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return kfree(p); >> +} >> + > > I don't know anything about kfci, but shouldn't this just be "kfree(p)= ", > without the "return"? You are right, fixed this up locally now, waiting for more comments before I resend patches from my series. I think it works because of a gcc extension, but isn't valid C otherwise, and I did not mean to rely on this. Arnd