Re: [PATCH 1/5][next] net: dev: Introduce struct sockaddr_legacy

2024-10-22 Thread Gustavo A. R. Silva
On 22/10/24 06:13, David Laight wrote: From: Gustavo A. R. Silva Sent: 16 October 2024 01:27 We are currently working on enabling the -Wflex-array-member-not-at-end compiler option. This option has helped us detect several objects of the type `struct sockaddr` that appear in the middle of co

Re: [PATCH 1/5][next] net: dev: Introduce struct sockaddr_legacy

2024-10-22 Thread Gustavo A. R. Silva
+/* + * This is the legacy form of `struct sockaddr`. The original `struct sockaddr` + * was modified in commit b5f0de6df6dce ("net: dev: Convert sa_data to flexible + * array in struct sockaddR") due to the fact that "One of the worst offenders s/sockaddR/sockaddr/ The same typo? exists

RE: [PATCH 1/5][next] net: dev: Introduce struct sockaddr_legacy

2024-10-22 Thread David Laight
From: Gustavo A. R. Silva > Sent: 16 October 2024 01:27 > > We are currently working on enabling the -Wflex-array-member-not-at-end > compiler option. This option has helped us detect several objects of > the type `struct sockaddr` that appear in the middle of composite > structures like `struct r

Re: [PATCH 1/5][next] net: dev: Introduce struct sockaddr_legacy

2024-10-15 Thread Kuniyuki Iwashima
From: "Gustavo A. R. Silva" Date: Tue, 15 Oct 2024 18:27:16 -0600 > We are currently working on enabling the -Wflex-array-member-not-at-end > compiler option. This option has helped us detect several objects of > the type `struct sockaddr` that appear in the middle of composite > structures like `

[PATCH 1/5][next] net: dev: Introduce struct sockaddr_legacy

2024-10-15 Thread Gustavo A. R. Silva
We are currently working on enabling the -Wflex-array-member-not-at-end compiler option. This option has helped us detect several objects of the type `struct sockaddr` that appear in the middle of composite structures like `struct rtentry`, `struct compat_rtentry`, and others: include/uapi/linux/w