From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C524340DB9 for ; Mon, 27 Apr 2026 15:54:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777305273; cv=none; b=F3VMTNEd4L2I1eAF6p+mjA/i1uNWxiV3sv9EwRlK7pyWccYTyGaxjKT7UfUhjzS4szcrzypHWz659SdEPz4iu/wQSVtQ4jspxK+xBncFrT47V5TyItlfJR94Ee1GAOIbKSOJyC6yCBTs1pLs199emTGXKPl53YoSukRr5pr8OgE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777305273; c=relaxed/simple; bh=QYIETYCuf4XH2n8d+qC4biDZlEAIskUJbYZoYf67LHQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u0WCHbA67qRuxsYolqgJ+ZpNDLHgofhCQMKN98UEDKv0r1OMbXatjUZUcxOVQ+yZ1AIK7zGndas4UUjbTEkLfF40jRNGiAucozu8vzIPJCzOvwUopSVY0y+WHRJk2ypn+9s3jFWM/mo7zPK5atosbSwl2sBb9NUgGvAGUeo8zF0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dONV+fGE; arc=none smtp.client-ip=209.85.216.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dONV+fGE" Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-35d95017a68so6946707a91.3 for ; Mon, 27 Apr 2026 08:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777305271; x=1777910071; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tuu1s9tU3uSim9SJGKXaRXNcFSL5VnoinNEq7EZdSCo=; b=dONV+fGEr0l8w8EifgcREw/4qH8wLk/MWXCfdSOxCmS61yP4qCIPXHgV96EXIcwWWn rExIOmvr7Xvvtlkt4mMPOUn10n9QH9EVBDBKN3KfW/zG7xmDul0YRIjZCF7GyodjCCvJ y3XKUA9O3ME5nwdot2A9rbgMUHOa0Lg7P7a+l7yh8et9HERDZSOgQ8HSFtDiDjWJ2Q+z 8loBZ+Zcz4de14EW+zE3Wtv1fPXRV8OUn//2qEG8nNYyIbfklXhmnk20BEczYT33CBF4 9HsEOnMxcfQ4TIj2ISLdObCAfa6+B/nabrvjepP/tEigEXJDSUHl5g6l3GaErq+hvDYa KcNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777305271; x=1777910071; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tuu1s9tU3uSim9SJGKXaRXNcFSL5VnoinNEq7EZdSCo=; b=qvFTsMdeaSBv7lxjMh7JuMhZrnh3msnWspNxpDjFDUNglu4UWcQJ13HMTF4nld7XJE sJnb60ePVY69EmMNwosiF7xVVf1wW1pth9y/zhZX2eHYwyHlYf6AGhl9HfMPPSEAeIY/ 6Ysa3yx2Lx/BvvO1EBVRgG4ki9b1uyICdC3e2uA7HtYI34ZlnVklFIgO5CP5MyjpE6dT h0CzW4nqrgZr9hYJ8KHVHnBxG90v2N3xUUKULuHKofvLn+2tjYwMKuPIBNBQTPZDjA5X VCx7IOsuTHkMhQmF8pkbkkPop1/xCAdEUXwZYXfuhxOieYM4JrYzm40FmYyWOg7Lbovx lPZg== X-Forwarded-Encrypted: i=1; AFNElJ9QcLuhkzOQ9AdJkwrKiWd1it13hpD6ohyZ/uWUWTHf4B32U4R3ZD/wawojK3ejmigjyI4FUXtf/SPIWBc=@vger.kernel.org X-Gm-Message-State: AOJu0YzYnWc1U8WNQl4/yN9rX59XifGHkOCjfSLHN7HLgQjM2qmzv67s +tfehqlxqDqJO3QNBCxxaaoAiJbyHNIv/FFgqfUACTbtKLjVYe1cfA9g X-Gm-Gg: AeBDiev6jEnkQ4Qp6fVPwf33TB6QRiHOpCbVIbNHE0zJc6SrBFpxiUA8Pbqaz+S0B0s oOs2d4s6YUbe7qIF43VsIF96hCjr4LPcBsKAIkB3FbG3vFnvQIz9FGGGeIfDBZ3PIfaFFnioikf 6mWkrZMGRzvn5oWWxvKB795WbdLs0yAfqagQp+wYOCOONvmv+quBQk1jV3LAe8Ulr+p49nbrzjt i90b6c7FSRvvoQ0Xd+ktzK5iQQehn1hgHy1PNaRcW2UX+tBqiztR7ndUgbsXLxSWUNIRPaCODtM lJvm2CFB260XYRVWSc7w1Sr0cMlpkXv2UW6t3oPLve+Z2qo0vpVs51dZ3fTtU1X3Twy0Q4Evv0z WaXSDI0W/6KJ1dXV6mq6ZDKo0m0TmdyK8IT5i1erHRm4DSBLydrM/TbJJ3yDwRWF5zk/Elxzfq+ BZ+XaOt1QvlPxfzpYA2kLrwyq3O4JonAgdOYj7invM X-Received: by 2002:a17:90a:dfce:b0:364:78a5:8d39 with SMTP id 98e67ed59e1d1-36478a58eb6mr5217870a91.20.1777305271444; Mon, 27 Apr 2026 08:54:31 -0700 (PDT) Received: from localhost (vps-e1cc9378.vps.ovh.us. [2604:2dc0:202:300::1365]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c797702fbfcsm25138982a12.22.2026.04.27.08.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2026 08:54:31 -0700 (PDT) From: Eric Wu To: Thomas Bogendoerfer , Greg Kroah-Hartman Cc: linux-mips@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Eric Wu Subject: [PATCH 0/7] staging: octeon: remove typedefs for enums and structs Date: Mon, 27 Apr 2026 23:54:20 +0800 Message-ID: <20260427155427.668540-1-kunjinkao.jp@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The staging octeon driver's TODO list includes "general code review and clean up". This series addresses that by removing unnecessary typedefs for enums and structs, converting them to plain types as required by the Linux kernel coding style (Documentation/process/coding-style.rst, section 5). All typedefs ending in _t have been removed from the staging driver stubs (drivers/staging/octeon/octeon-stubs.h) and correspondingly updated in the arch/mips/ implementation headers and source files. The series converts: - 5 enum typedefs to plain enums: cvmx_spi_mode_t, cvmx_helper_interface_mode_t, cvmx_pow_wait_t, cvmx_pko_lock_t, cvmx_pko_status_t - 2 struct typedefs to plain structs: cvmx_pko_port_status_t, cvmx_pip_port_status_t No functional change intended. All patches have been compile-tested for both MIPS (cavium_octeon_defconfig) and x86_64 (with CONFIG_STAGING=y, CONFIG_OCTEON_ETHERNET=y, CONFIG_COMPILE_TEST=y). Eric Wu (7): staging: octeon: convert cvmx_spi_mode_t from typedef to plain enum staging: octeon: convert cvmx_helper_interface_mode_t from typedef to plain enum staging: octeon: convert cvmx_pow_wait_t from typedef to plain enum staging: octeon: convert cvmx_pko_lock_t from typedef to plain enum staging: octeon: convert cvmx_pko_status_t from typedef to plain enum staging: octeon: convert cvmx_pko_port_status_t from typedef to plain struct staging: octeon: convert cvmx_pip_port_status_t from typedef to plain struct .../executive/cvmx-helper-util.c | 2 +- .../cavium-octeon/executive/cvmx-helper.c | 8 ++-- arch/mips/cavium-octeon/executive/cvmx-pko.c | 6 +-- arch/mips/cavium-octeon/executive/cvmx-spi.c | 16 +++---- .../include/asm/octeon/cvmx-helper-util.h | 2 +- arch/mips/include/asm/octeon/cvmx-helper.h | 6 +-- arch/mips/include/asm/octeon/cvmx-pip.h | 6 +-- arch/mips/include/asm/octeon/cvmx-pko.h | 26 +++++----- arch/mips/include/asm/octeon/cvmx-pow.h | 12 ++--- arch/mips/include/asm/octeon/cvmx-spi.h | 38 +++++++-------- drivers/staging/octeon/ethernet.c | 6 +-- drivers/staging/octeon/octeon-stubs.h | 48 +++++++++---------- 12 files changed, 88 insertions(+), 88 deletions(-) -- 2.43.0