Skip to content

staging:rtl8192u: One significant change...

John Whitmore lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10staging:rtl8192u: typedef struct tx_desc_819x_usb > struct tx_desc_819x_usbdrivers/staging/rtl8192u/r8192U.h drivers/staging/rtl8192u/r8192U_core.c+5 -50 replies
2/10staging:rtl8192u: trim multiple blank lines - Coding Styledrivers/staging/rtl8192u/r8192U.h+0 -200 replies
3/10staging:rtl8192u: remove unused structure tx_desc_819x_usb_aggr_subframedrivers/staging/rtl8192u/r8192U.h+0 -280 replies
4/10staging:rtl8192u: Rename file macro to avoid camel case - Coding Styledrivers/staging/rtl8192u/r8192U.h+2 -22 replies
5/10staging:rtl8192u: typedef struct tx_desc_cmd_819x_usb remove typedefdrivers/staging/rtl8192u/r8192U.h drivers/staging/rtl8192u/r8192U_core.c+3 -30 replies
6/10staging:rtl8192u: typedef struct tx_fwinfo_819x_usb remove typedefdrivers/staging/rtl8192u/r8192U.h drivers/staging/rtl8192u/r8192U_core.c+8 -80 replies
7/10staging:rtl8192u: typedef struct rx_desc_819x_usb remove typedefdrivers/staging/rtl8192u/r8192U.h drivers/staging/rtl8192u/r8192U_core.c+9 -90 replies
8/10staging:rtl8192u: Remove struct rx_desc_819x_usb_aggr_subframedrivers/staging/rtl8192u/r8192U.h+0 -180 replies
9/10staging:rtl8192u: remove typedef from struct rx_drvinfo_819x_usbdrivers/staging/rtl8192u/r8192U.h drivers/staging/rtl8192u/r8192U_core.c+7 -70 replies
10/10staging:rtl8192u: Change struct r8192_priv member Rf_Mode from u8 > enumdrivers/staging/rtl8192u/r8192U.h+4 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [0/10] staging:rtl8192u: One significant change...

The first 9 patches in this series are coding style changes, including a number of patches to remove the "typedef" directive from a number of data structure definitions. This clears the checkpatch warning about defining new data types in the code.

The last patch in the series, however, changes the data type of a member variable from a u8 to an enumerated type. Generally in C an enumerated type is implemented by the compiler as an int, but can be changed by compiler directives. Either way the member variable will most probably have its size changed by this patch. I don't think that the structure is mapped to hardware or physical memory location, but is allocated and populated in the rtl8192_usb_probe() function in the file r8192U_core.c. Given that allocation/population I don't think that the size of the member variable is of run time significance, bar the slight increase in size of the overall structure.

The reason for doing this is to enable the compiler's checking of assignments to the variable defined as an enumerated type. The alternative is to leave the variable as a u8 and remove the enumerated type, replacing it with #define definitions of the possible values.

I raised this issue on the kernel newbies mailing list and of the two alternatives enumerated type won out.