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 2AB6517583 for ; Fri, 20 Jun 2025 07:34:35 +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=1750404876; cv=none; b=Z/5qHWdorJeB2mXaaPQQXWI0uXa5Og070KUU7L6Qifcu2NLvRr2Ye+ejSm9RcWW4w3TC+Ieg+Cz/J152H8e3O8j8UildKm08uQ7doWgKyroV/1jCoMnzoiq8t0bVjHrJ/v1HRGprOVZg6JdKyXbYDMPmDfbpI7ETJe7ICi8DLOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750404876; c=relaxed/simple; bh=Axaw8rO7vEpltoRjT6K464VjTTl5KT8py+BPDUg6NNY=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Ek7csS9LntUc/eqBcDorSpE/TQ+Jg9QObMLMR3cAM1eSaQfFhJNrhComVrFH4kshZmQ32ucmBDKv0Jun0c5HoIlxENAvNlVnU9IVvGeZjd41pRNDVGnfpB3waS2JWKCiMEJ4SH3Y5bxA30LFWAbraGdm2C1wQnamCtQ49Ug44dw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YOM+TyZA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YOM+TyZA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CB19C4CEE3; Fri, 20 Jun 2025 07:34:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750404875; bh=Axaw8rO7vEpltoRjT6K464VjTTl5KT8py+BPDUg6NNY=; h=Subject:To:Cc:From:Date:From; b=YOM+TyZAMHTfIDglNbPQeMadfd3SpVbaeWv3QidlqyIswq2AXp9Si3aLN7HESjCUi ByrQ2yhtOKfzZpPO9ZIvzUMDIqjiFm7Xd1faWeLzvR0p6L2lTuOIf2JLiQI9gVeob8 T3YJklISRzVDOakaOiDq0YDNII2DEeDWDj6HBUWI= Subject: FAILED: patch "[PATCH] net: qede: Initialize qede_ll_ops with designated initializer" failed to apply to 6.1-stable tree To: nathan@kernel.org,kees@kernel.org Cc: From: Date: Fri, 20 Jun 2025 09:34:22 +0200 Message-ID: <2025062022-reattach-unroasted-deb0@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x 960013ec5b5e86c2c096e79ce6e08bce970650b3 # git commit -s git send-email --to '' --in-reply-to '2025062022-reattach-unroasted-deb0@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 960013ec5b5e86c2c096e79ce6e08bce970650b3 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Wed, 7 May 2025 21:47:45 +0100 Subject: [PATCH] net: qede: Initialize qede_ll_ops with designated initializer After a recent change [1] in clang's randstruct implementation to randomize structures that only contain function pointers, there is an error because qede_ll_ops get randomized but does not use a designated initializer for the first member: drivers/net/ethernet/qlogic/qede/qede_main.c:206:2: error: a randomized struct can only be initialized with a designated initializer 206 | { | ^ Explicitly initialize the common member using a designated initializer to fix the build. Cc: stable@vger.kernel.org Fixes: 035f7f87b729 ("randstruct: Enable Clang support") Link: https://github.com/llvm/llvm-project/commit/04364fb888eea6db9811510607bed4b200bcb082 [1] Signed-off-by: Nathan Chancellor Reviewed-by: Kees Cook Link: https://lore.kernel.org/r/20250507-qede-fix-clang-randstruct-v1-1-5ccc15626fba@kernel.org Signed-off-by: Kees Cook diff --git a/drivers/net/ethernet/qlogic/qede/qede_main.c b/drivers/net/ethernet/qlogic/qede/qede_main.c index 99df00c30b8c..b5d744d2586f 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_main.c +++ b/drivers/net/ethernet/qlogic/qede/qede_main.c @@ -203,7 +203,7 @@ static struct pci_driver qede_pci_driver = { }; static struct qed_eth_cb_ops qede_ll_ops = { - { + .common = { #ifdef CONFIG_RFS_ACCEL .arfs_filter_op = qede_arfs_filter_op, #endif