Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp454405rdh; Wed, 14 Feb 2024 01:43:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWeyWEjv9PG3yBJ+the9SXWOJFSf7u9GVB7kXnZfajqM8UMjOLZ5h72t4fmj9BF2e1cPOzbmTT+j1VBaFoLy39vjfnBVmlI5yYE3kQaLQ== X-Google-Smtp-Source: AGHT+IEHaYiiPbX1bx4fH0WM/bJD2eJpJ2y26mKNt8BiH4lrK2iFZSEC2W1XZDUXn6MAQ44T6Fg/ X-Received: by 2002:a9d:6a45:0:b0:6e0:b4ac:8cdd with SMTP id h5-20020a9d6a45000000b006e0b4ac8cddmr2260459otn.18.1707903822299; Wed, 14 Feb 2024 01:43:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707903822; cv=pass; d=google.com; s=arc-20160816; b=EU4UvS9rgK6Nr5vBcL8bo7P6M4Q1JuVUmt02yzT62FrKPB7Vvpcfo4tzWkQq27y6Wr OC4YE0SHz0Tdu6uSNlZU3srp3e8rWDwwrqJcKeoItu4CqktykWnOFyJBTfshkL6MBmiY 75qLjO7cgWAprdnmRuhUZPQyBrr07IeY8xu0ZX68fm1tvj2TCqTyGkL1kIg9PU3e2orG pLtV2isrVtNVKQG9LyTRyulnD19aKvnFGjdIou5AahDj0eD/fvp1butRFJgiquc2gAwr mQH+ohU54H3+waIVReJh4B98t6+C0rwZ8FSyXFpNz2nAhdKu/kvP/epaC32nXXR0Aqls PiVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=0KYKfgYxSHnZ7XVBVSu0mNEKkyzJ14B9SekKdOwb4fI=; fh=JkPdQpoBeuK4Ivw8RpYqgNscKZS7Whgq6uttv+eYGeM=; b=krusQPVB/zZleMujyHwVZBRmBYkP3l414uzB9I6sZHC8rqtUSKHMhheE4PzXFghTNn KwuFRnDjPXPyW7er+10H7xs9FrQOGXBmrHv/wwE6U7316aF15vRwVGxIVZsfn//bd8EA OPB3yPhq/cI4EqUJW56+EboMTBbp0GvrKhRa2wY86fYcL/5SP68Y1W4yImmL+AFWbjWG jDKDpFEWdpXV/P7AbZYfo/AnMjNk6J+19pL2n7INwJ0wigdC6OZB354eExD1/BVSJS+N wCBo4onoaCwe+BYXCzIsfqwXk2qMJAWaeG1J7UcRoFHHkUi7Fh1UMv3mTMFNCoMUctzo U0dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mq1OhSPa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64953-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64953-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUZAkYqbOmeOIeEn8DN62gF1Z4W47o9VLylfM+inaCuZrgsy8Y9TU/rP8tFW87fWFufREcUSQ5nBU7RH5FomafLwfg2SQhISIjEZNiupA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d17-20020a637351000000b005dc83720202si2914178pgn.549.2024.02.14.01.43.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 01:43:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64953-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mq1OhSPa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-64953-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64953-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 238F8B23A01 for ; Wed, 14 Feb 2024 09:25:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C38E13AED; Wed, 14 Feb 2024 09:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Mq1OhSPa" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 56FF912E5C; Wed, 14 Feb 2024 09:24:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707902694; cv=none; b=MjUOebmbb0QfLzVmSudJFHsTTBswz31+yRbWz6g7fWbBxrSgcmzLIeEv3T79cL/O3uGNTWCKBWO+BeGfq6mGRTpPJadq+OPRnmeEUYIWeazmgAA+cFhMgoOGVwr6/Ug8Uj6uztzmEbjBYvifOcrns1k04y6HKK50ATIAPc9+NUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707902694; c=relaxed/simple; bh=f4Z4RZ8eKIicm12fqu8YuFsWnQnhPjcSmdnQR9J9hG8=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=IHI2vQqxEs1Ckb+15K9B75lwuiw8/eP5/J0tEgxxpqtfgo1Tsf+P0KqGSj38WFfRTEdabqNYKmAGajY0GqxxjOM+LArnUaAtAun6hNJz3hOwwAcHABJ4NI6fyhGxG31uIQZWn2TtavZom87wgrWGlZ6PWbgFQPh8Z1lyo205R/4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Mq1OhSPa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EA5AC43390; Wed, 14 Feb 2024 09:24:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707902693; bh=f4Z4RZ8eKIicm12fqu8YuFsWnQnhPjcSmdnQR9J9hG8=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=Mq1OhSPaNxW05TOwj2nw4C31w47AUtJa9u1C5fXAwvQm64FrO2wDB1Ed4zNNdYtY/ JR/e3PM5qCsZ3uNQyLPmj5K11H1vU2SCxxwYDfkSX/nslwUIPReKatBeoujpVun+ZR 4rH3FAqbvJDT7noLse+pN2o1ks/vEfTNkQcVOYcc5813/1L/Asj9RJmIuKrosQrFjp K3frkH6Wx7yivwgWEh/7t0MGU7m85RG9RsVSuHpN1MbwcJqt2/yweM7YjaVwP/BkLn 2zc/W7fyCVyqPUakdQemePRgklIzOZz/kaRf++/9u40M7Rj7uo0j3KYIlsATciXb0r jvqs5jm4Mf6Zg== From: Leon Romanovsky To: Bart Van Assche , Arnd Bergmann Cc: Arnd Bergmann , Jason Gunthorpe , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , "Martin K. Petersen" , "Nicholas A. Bellinger" , linux-rdma@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev In-Reply-To: <20240213100728.458348-1-arnd@kernel.org> References: <20240213100728.458348-1-arnd@kernel.org> Subject: Re: [PATCH] RDMA/srpt: fix function pointer cast warnings Message-Id: <170790268857.386715.10695124519923198536.b4-ty@kernel.org> Date: Wed, 14 Feb 2024 11:24:48 +0200 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="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12-dev-a055d On Tue, 13 Feb 2024 11:07:13 +0100, Arnd Bergmann wrote: > clang-16 notices that srpt_qp_event() gets called through an incompatible > pointer here: > > drivers/infiniband/ulp/srpt/ib_srpt.c:1815:5: error: cast from 'void (*)(struct ib_event *, struct srpt_rdma_ch *)' to 'void (*)(struct ib_event *, void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict] > 1815 | = (void(*)(struct ib_event *, void*))srpt_qp_event; > > Change srpt_qp_event() to use the correct prototype and adjust the > argument inside of it. > > [...] Applied, thanks! [1/1] RDMA/srpt: fix function pointer cast warnings https://git.kernel.org/rdma/rdma/c/eb5c7465c32401 Best regards, -- Leon Romanovsky