mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
staging: octeon: convert cvmx_pko_port_status_t from typedef to plain struct
The Linux kernel coding style discourages the use of typedefs for structs. Convert cvmx_pko_port_status_t to a plain 'struct cvmx_pko_port_status' and update all users across the MIPS Octeon architecture code and the staging driver. No functional change. Signed-off-by: Eric Wu <kunjinkao.jp@gmail.com> Link: https://patch.msgid.link/20260427155427.668540-7-kunjinkao.jp@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
95147c0f62
commit
32c681e669
|
|
@ -114,11 +114,11 @@ enum cvmx_pko_lock {
|
|||
CVMX_PKO_LOCK_CMD_QUEUE = 2,
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
struct cvmx_pko_port_status {
|
||||
uint32_t packets;
|
||||
uint64_t octets;
|
||||
uint64_t doorbell;
|
||||
} cvmx_pko_port_status_t;
|
||||
};
|
||||
|
||||
/**
|
||||
* This structure defines the address to use on a packet enqueue
|
||||
|
|
@ -574,7 +574,7 @@ static inline int cvmx_pko_get_num_queues(int port)
|
|||
* @status: Where to put the results.
|
||||
*/
|
||||
static inline void cvmx_pko_get_port_status(uint64_t port_num, uint64_t clear,
|
||||
cvmx_pko_port_status_t *status)
|
||||
struct cvmx_pko_port_status *status)
|
||||
{
|
||||
union cvmx_pko_reg_read_idx pko_reg_read_idx;
|
||||
union cvmx_pko_mem_count0 pko_mem_count0;
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ EXPORT_SYMBOL(cvm_oct_free_work);
|
|||
static struct net_device_stats *cvm_oct_common_get_stats(struct net_device *dev)
|
||||
{
|
||||
cvmx_pip_port_status_t rx_status;
|
||||
cvmx_pko_port_status_t tx_status;
|
||||
struct cvmx_pko_port_status tx_status;
|
||||
struct octeon_ethernet *priv = netdev_priv(dev);
|
||||
|
||||
if (priv->port < CVMX_PIP_NUM_INPUT_PORTS) {
|
||||
|
|
|
|||
|
|
@ -411,11 +411,11 @@ typedef struct {
|
|||
u16 inb_errors;
|
||||
} cvmx_pip_port_status_t;
|
||||
|
||||
typedef struct {
|
||||
struct cvmx_pko_port_status {
|
||||
u32 packets;
|
||||
u64 octets;
|
||||
u64 doorbell;
|
||||
} cvmx_pko_port_status_t;
|
||||
};
|
||||
|
||||
union cvmx_pip_frm_len_chkx {
|
||||
u64 u64;
|
||||
|
|
@ -1264,7 +1264,7 @@ static inline void cvmx_pip_get_port_status(u64 port_num, u64 clear,
|
|||
{ }
|
||||
|
||||
static inline void cvmx_pko_get_port_status(u64 port_num, u64 clear,
|
||||
cvmx_pko_port_status_t *status)
|
||||
struct cvmx_pko_port_status *status)
|
||||
{ }
|
||||
|
||||
static inline enum cvmx_helper_interface_mode cvmx_helper_interface_get_mode(int
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user