On Fri, 28 Oct 2022 17:52:40 -0400
David Miller <dmiller...@gmail.com> wrote:

> +#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
> +            switch (type) {
> +                case RTE_UINT8:
> +                {
> +                    uint8_t *temp = (uint8_t *)&result;
> +                    result = *temp;
> +                    break;
> +                }
> +                case RTE_UINT16:
> +                {
> +                    uint16_t *temp = (uint16_t *)&result;
> +                    result = *temp;
> +                    break;
> +                }
> +                case RTE_UINT32:
> +                {
> +                    uint32_t *temp = (uint32_t *)&result;
> +                    result = *temp;
> +                    break;
> +                }
> +                case RTE_INT8:
> +                {
> +                    int8_t *temp = (int8_t *)&result;
> +                    result = *temp;
> +                    break;
> +                }
> +                case RTE_INT16:
> +                {
> +                    int16_t *temp = (int16_t *)&result;
> +                    result = *temp;
> +                    break;
> +                }
> +                case RTE_INT32:
> +                {
> +                    int32_t *temp = (int32_t *)&result;
> +                    result = *temp;
> +                    break;
> +                }
> +                default:
> +                    break;
> +            }
> +#endif

You are indenting with 4 spaces.
The DPDK uses tab indentation like the Linux kernel.
Surprised that checkpatch isn't catching this.

Reply via email to