Skip to content

Commit

Permalink
MIPS: octeon: remove typedef declaration for cvmx_pko_command_word0
Browse files Browse the repository at this point in the history
Remove the typedef and update usage to use the union.

Signed-off-by: Chris Packham <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
cpackham-atlnz authored and gregkh committed Feb 12, 2020
1 parent f7d2bdc commit 9da3035
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion arch/mips/cavium-octeon/executive/cvmx-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ static int __cvmx_helper_errata_fix_ipd_ptr_alignment(void)
#define INTERFACE(port) (port >> 4)
#define INDEX(port) (port & 0xf)
uint64_t *p64;
cvmx_pko_command_word0_t pko_command;
union cvmx_pko_command_word0 pko_command;
union cvmx_buf_ptr g_buffer, pkt_buffer;
struct cvmx_wqe *work;
int size, num_segs = 0, wqe_pcnt, pkt_pcnt;
Expand Down
8 changes: 4 additions & 4 deletions arch/mips/include/asm/octeon/cvmx-pko.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ typedef union {
/**
* Structure of the first packet output command word.
*/
typedef union {
union cvmx_pko_command_word0 {
uint64_t u64;
struct {
#ifdef __BIG_ENDIAN_BITFIELD
Expand Down Expand Up @@ -261,7 +261,7 @@ typedef union {
uint64_t size1:2;
#endif
} s;
} cvmx_pko_command_word0_t;
};

/* CSR typedefs have been moved to cvmx-csr-*.h */

Expand Down Expand Up @@ -419,7 +419,7 @@ static inline void cvmx_pko_send_packet_prepare(uint64_t port, uint64_t queue,
static inline cvmx_pko_status_t cvmx_pko_send_packet_finish(
uint64_t port,
uint64_t queue,
cvmx_pko_command_word0_t pko_command,
union cvmx_pko_command_word0 pko_command,
union cvmx_buf_ptr packet,
cvmx_pko_lock_t use_locking)
{
Expand Down Expand Up @@ -462,7 +462,7 @@ static inline cvmx_pko_status_t cvmx_pko_send_packet_finish(
static inline cvmx_pko_status_t cvmx_pko_send_packet_finish3(
uint64_t port,
uint64_t queue,
cvmx_pko_command_word0_t pko_command,
union cvmx_pko_command_word0 pko_command,
union cvmx_buf_ptr packet,
uint64_t addr,
cvmx_pko_lock_t use_locking)
Expand Down

0 comments on commit 9da3035

Please sign in to comment.