Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp170713rda; Sat, 21 Oct 2023 03:16:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHdjl5MF9+XGa6h35aSnWhSSlIlOxu8i0B/AfYPWb/bzXacrTizoLQZW496W3dEuA22TIL X-Received: by 2002:a05:6808:4c7:b0:3af:6595:e53 with SMTP id a7-20020a05680804c700b003af65950e53mr4337059oie.13.1697883389062; Sat, 21 Oct 2023 03:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697883389; cv=none; d=google.com; s=arc-20160816; b=kW6pfoBTgcVuPE3mD1qpH732NvnQCNy9PIs7o+58Qj9rLZ2MB7rt3oYQFKYJNYBe8o hTjFFyhUnLblYiwgIU5Mt44qEiLUVGn8vN/yiHIDULDsj09KYOyn4NXg7KZgfYOxdH2q DDWpQ6VolC6ZLn7gyj4u1XdYrUG5so3ZY8m38Lhcq+hRKYqHwb4FeGKLl5IemamKvZpu 81pAvdFBuapcFCZpJgcz8YglpXrudmrmnxvPe4wuECT03nL1IOA7OqInQJeDwKk5NwM6 o0PV5UiEEfgvarIZpnE4kGjPOmDPwQxMk8kyQPZWnr0yhlqwpp/6TpOIVGO0RiakXxUN c3UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WlDFm1A0ZxnZFxu7liRZfTzTOUGufRMA62jY0m2ti70=; fh=a/s45YuhTFF9HDl6pMrSzwKLljh7BT0Fj9EfJNxFsCc=; b=erle8tmFmsCuBvZI+wT/9/ocCc8k5P+iQM1IFD5XdJHfAwv8HyagcA/0G+oCrz8lTA j4ujAdKqmnfovBkuYUuGTvf3m42W/uI4H0E/YyY2JRvCnFPvLtrfaD2F7mi8xv1tF0C9 xWuLOSjycc51Cvivmw2z6sw/6k1ds8Xb7/zPdV8Ro3Us7USo2+nnG9a/uU/oNJ82J7Ij V/hrnFArGRz2xqNh4Ov5giXvZj39mAFuQAdFbUgVnZTAppS1kgHudEYyEtmZn7SV1TbY wmkwxLWt1DKrmxlfMVZyg2n87CUMlUqXpo4mR/9ELA2gpVKNpToQwb3G1LEzv7j1j7oB GS3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Cm6DVO3/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id g21-20020aa796b5000000b006bf53ea0954si830724pfk.385.2023.10.21.03.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 03:16:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Cm6DVO3/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id AC18F8077909; Sat, 21 Oct 2023 03:15:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231164AbjJUKPS (ORCPT + 99 others); Sat, 21 Oct 2023 06:15:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231195AbjJUKPQ (ORCPT ); Sat, 21 Oct 2023 06:15:16 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A902BD7A for ; Sat, 21 Oct 2023 03:15:09 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-507bd19eac8so2399698e87.0 for ; Sat, 21 Oct 2023 03:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697883307; x=1698488107; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WlDFm1A0ZxnZFxu7liRZfTzTOUGufRMA62jY0m2ti70=; b=Cm6DVO3/G5S18qkm8vFgVgbUb+gJGCsngLXS/bdUAjMZsSOAxRxeYmWuicZGJ1WTC4 7TK8hfbrsEnD2hkz0u1qVc7B3B6o43wfqJI5DUz8Q7sudpGq7PwVoH/f7aZVO5Gf++4Q BxI+XnKy0Ti2W6bPiPV7++KwVIpDhcsIrTEUPncaz0s30ZxcrqwDFrJ3IMM67o/Y21tp cXTiBLZyYmvuuZP6A7/7vjrHsucK1k8LIfhnjmhbBxoELocY0p7YlqdVUFzh5NNIqbPr daPXAZo2CmDOW86dyqJLpIMrEzNSpZ9Djz9wSnMgJdSKmeGM3sYeb82Q+yKYdYVz6xGx 1R6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697883307; x=1698488107; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WlDFm1A0ZxnZFxu7liRZfTzTOUGufRMA62jY0m2ti70=; b=Ke6SUgIu/q0w9Kly4MjE6fxKBLggXZx3ErUCyvSAMTagPr0TRPcWnmUGgUj2pFH+s2 l+k7Ay1GZkUF47+wzTWQ/nIylS08WO17pF6WahjcS/kieg4hYQIqheNeL6fnid8c+y69 E08jOD09x7a/t2PRYSPqbL7UkpsvlhWnzlqQizV6WQGx0ps/N5PmisDhCehC9loBDVe2 IzFAe8k2RnuZO7+CrxB3Kjc+flaQOIa78EBahfrieaBeacJ1Cw7z0LKFzMFGkl5tFc55 sbNgOeqVWBqv5N0bW84+VgcpAao7DoKOHeV3UcRJS2n4Y5StFY2bz+XFhPBtaF6qeJC9 oJMg== X-Gm-Message-State: AOJu0YyAJd0uqQfgkEBxl+B1EiXjvFIVB0akhQLJwcYJQX0YYQAGaoz0 qvDmgsocgusWCqMsOj/U0Mc= X-Received: by 2002:a05:6512:20d3:b0:503:74c:9446 with SMTP id u19-20020a05651220d300b00503074c9446mr3044220lfr.24.1697883307412; Sat, 21 Oct 2023 03:15:07 -0700 (PDT) Received: from HP-ENVY-Notebook.lan (81-229-94-10-no68.tbcn.telia.com. [81.229.94.10]) by smtp.googlemail.com with ESMTPSA id d18-20020a056512369200b005007e7211f7sm803114lfs.21.2023.10.21.03.15.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 03:15:05 -0700 (PDT) From: Jonathan Bergh To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Jonathan Bergh Subject: [PATCH v3 5/7] staging: octeon: Fix introduction of new typedef cvmx_pko_status_t in octeon Date: Sat, 21 Oct 2023 12:12:36 +0200 Message-Id: <20231021101238.81466-6-bergh.jonathan@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231021101238.81466-1-bergh.jonathan@gmail.com> References: <20231021101238.81466-1-bergh.jonathan@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sat, 21 Oct 2023 03:15:31 -0700 (PDT) This patch removes the introduction of a new enum typedef cvmx_pko_status_t in the octeon driver and then fix implementations which used it. Signed-off-by: Jonathan Bergh --- Changelog: v1 -> v2: Fix breaking change spread across multiple patches v2 -> v3: Break changes up into individual patches for each removed typedef drivers/staging/octeon/octeon-stubs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/octeon/octeon-stubs.h b/drivers/staging/octeon/octeon-stubs.h index 6c0196c1a9f6..529a75ad7c67 100644 --- a/drivers/staging/octeon/octeon-stubs.h +++ b/drivers/staging/octeon/octeon-stubs.h @@ -244,7 +244,7 @@ enum cvmx_pko_lock { CVMX_PKO_LOCK_CMD_QUEUE = 2, }; -typedef enum { +enum cvmx_pko_status { CVMX_PKO_SUCCESS, CVMX_PKO_INVALID_PORT, CVMX_PKO_INVALID_QUEUE, @@ -252,7 +252,7 @@ typedef enum { CVMX_PKO_NO_MEMORY, CVMX_PKO_PORT_ALREADY_SETUP, CVMX_PKO_CMD_QUEUE_INIT_ERROR -} cvmx_pko_status_t; +}; enum cvmx_pow_tag_type { CVMX_POW_TAG_TYPE_ORDERED = 0L, @@ -1384,7 +1384,7 @@ static inline void cvmx_pko_send_packet_prepare(uint64_t port, uint64_t queue, enum cvmx_pko_lock use_locking) { } -static inline cvmx_pko_status_t cvmx_pko_send_packet_finish(uint64_t port, +static inline enum cvmx_pko_status cvmx_pko_send_packet_finish(uint64_t port, uint64_t queue, union cvmx_pko_command_word0 pko_command, union cvmx_buf_ptr packet, enum cvmx_pko_lock use_locking) { -- 2.40.1