Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp170696rda; Sat, 21 Oct 2023 03:16:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPVnD7X0heHIai0/Ife2aCHUvxhrXonK3/HyqM80ePY5+mqueYoqW6f4kI3iTVxuAsgwXK X-Received: by 2002:a05:6871:459b:b0:1e9:90ec:140 with SMTP id nl27-20020a056871459b00b001e990ec0140mr5127456oab.58.1697883386950; Sat, 21 Oct 2023 03:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697883386; cv=none; d=google.com; s=arc-20160816; b=q9J2PkrZq+0cF1WsdhKBFST1CB8ncnytqD27GAODKreuuhYyrhMW0KhsXKdxja9amW bdnh1IQM0yKbz+pJEv4bbHTgwOsDX8ePFqrs2ynb+LhB8CjAKmDJ3cmXET1KXkVmS8kg uMeHxJHcl+Y5tQpZEF5aQMrH9qkbnkqfJcddfZIsP/O2qj9rEykmNeSSSmP7pJNOknxD BTzjUeHlA6chzDcE09p2udO9jm+BSERIG4xYvuhPjbtWilLsUbWLWYVZSmpAEjNjMOhM XKV5CZXlz5Ji+iYXKvmon1UNPCA+l7d5rgpsjRX782Lih7M1eb0oSV5DbPma9/i15wJz kJ7g== 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=54U+E9W9K0OaBdlR5lzHV/a+8QqdJ6fYDyraEx8zyqE=; fh=a/s45YuhTFF9HDl6pMrSzwKLljh7BT0Fj9EfJNxFsCc=; b=oClCVL1ADzyIU9XoREN+UfafIJldZq45uOT3GudeHvzR5id4b9MBGG2TDFfmkvtaAy N87wpNCsmwWFGSHefIkfKAcnkwAdkrFGsKM0g5AaV7e8M3Lx/7/zd5hKhnDC+QAPzwhb lsVoGYfiW9YXsbAGjMmWydC69OIe/3AGT/A+mfxGocIRcivJ2Bl3Uu2SDkT/WWuE9wWU 3BQFE9PxnRbz8yqZXp44zgRUDxzmJxPh4rfeijx/8Myg4VcS3KrS1Ihsy1l+eSnp6JmL nA4iEohHuXoM0DDYXf8XrlvOcJnml6F0nGGJm43Ik8GP+ZYJR3TFIAupF0IanioVVYH7 TPpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C4MXKvDb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id y15-20020aa79aef000000b0068a692b67b0si3327955pfp.104.2023.10.21.03.16.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 03:16:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C4MXKvDb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 2588980A9E0B; Sat, 21 Oct 2023 03:15:09 -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 S230321AbjJUKPA (ORCPT + 99 others); Sat, 21 Oct 2023 06:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjJUKO7 (ORCPT ); Sat, 21 Oct 2023 06:14:59 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF448D66 for ; Sat, 21 Oct 2023 03:14:57 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-507a55302e0so2100713e87.0 for ; Sat, 21 Oct 2023 03:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697883296; x=1698488096; 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=54U+E9W9K0OaBdlR5lzHV/a+8QqdJ6fYDyraEx8zyqE=; b=C4MXKvDbFm0xM+3ILpOBEkPhyN0GpARXVviEVEDtD4DtCtFAYb2YaKx6zWzvaey00b 2FqjTvvYLzHM2QJi4icy7ileIIls7MyhPI11tTJ9gLFY9IDTeFnOaUQ8eGZ4F1JXe4lS ydKdwtCucwE9ypAyy4Un2I5WnJrIHAed4eFkYGmvTVVfwzIdGjcMPNi8Q2+QSwgJwQVh 1ylGt4yYZeXBkk1H3f56ihIhaETFLA8eZT8IUIDiY3YFPB9w1VBwGkPBgzII5EST391O GlvAwsyKXEM/L4upapyJGg4VVoiHY1eCHvjZWGOvhgYqdbdJEeY2txZThjXvlinhOc/w Lmjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697883296; x=1698488096; 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=54U+E9W9K0OaBdlR5lzHV/a+8QqdJ6fYDyraEx8zyqE=; b=kMrREUzpOr8UyAxpGkKfYZrKMkub6k1oH2COQnTyPDb7sMu4maRUvjjTn3N3nPZcbW zjaLcZD0bTsW5NQ+FffU3TkZEf4MtvmNBU04Zp1hTNobFQufetNCTVG1GN5H1v1lc66n JY60Wtw8e5SNXprUCz9GLOL8jqUysYdNiwkCbE5aCqshB4GUgbvalNHhckrsnH7PABn6 ppX2Xp5bTS8VAwoKXlnkaHosvc+uVv1TqsbVpFETDEGQTGMR3CCJodoIlm841PTo49w2 /XJt5fYxe1RrOfyMxVUUUA8poWw6AdI1rX5GG0IU/SXzmKtsKR8ZAGnw+Po4VfcrgWkR 3djA== X-Gm-Message-State: AOJu0YysjHDTr6BV+MCUX2kW4aZ17yHEXTTJ3aQ2Z+IkjG1aTEH6YRS4 SLkfAxn3LMV3w6k/yHn10w0= X-Received: by 2002:ac2:4284:0:b0:506:899d:1989 with SMTP id m4-20020ac24284000000b00506899d1989mr3113028lfh.44.1697883295672; Sat, 21 Oct 2023 03:14:55 -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.14.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 03:14:55 -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 1/7] staging: octeon: Fix introduction of new enum typedef cvmx_spi_mode_t in octeon Date: Sat, 21 Oct 2023 12:12:32 +0200 Message-Id: <20231021101238.81466-2-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:09 -0700 (PDT) This patch removes the introduction of the following new enum typedef cvmx_spi_mode_t and fixes up where 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 3e7b92cd2e35..9f269626b862 100644 --- a/drivers/staging/octeon/octeon-stubs.h +++ b/drivers/staging/octeon/octeon-stubs.h @@ -213,12 +213,12 @@ enum cvmx_fau_op_size { CVMX_FAU_OP_SIZE_64 = 3 }; -typedef enum { +enum cvmx_spi_mode { CVMX_SPI_MODE_UNKNOWN = 0, CVMX_SPI_MODE_TX_HALFPLEX = 1, CVMX_SPI_MODE_RX_HALFPLEX = 2, CVMX_SPI_MODE_DUPLEX = 3 -} cvmx_spi_mode_t; +}; typedef enum { CVMX_HELPER_INTERFACE_MODE_DISABLED, @@ -1362,7 +1362,7 @@ static inline struct cvmx_wqe *cvmx_pow_work_request_sync(cvmx_pow_wait_t wait) } static inline int cvmx_spi_restart_interface(int interface, - cvmx_spi_mode_t mode, int timeout) + enum cvmx_spi_mode mode, int timeout) { return 0; } -- 2.40.1