Re: [apparmor] [PATCH] apparmor: remove unused variable

2025-01-24 Thread Guenter Roeck
On Wed, Jan 22, 2025 at 08:03:34PM +, ser...@kernel.org wrote: > On Wed, Jan 22, 2025 at 07:55:35AM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > The local 'sock' variable has become unused after a change to the > > aa_sock_file_perm() calling conventions: > > > > security/appa

Re: [apparmor] [PATCH] apparmor: remove unused variable

2025-01-24 Thread John Johansen
On 1/21/25 22:55, Arnd Bergmann wrote: From: Arnd Bergmann The local 'sock' variable has become unused after a change to the aa_sock_file_perm() calling conventions: security/apparmor/file.c: In function '__file_sock_perm': security/apparmor/file.c:544:24: error: unused variable 'sock' [-Werr

Re: [apparmor] [PATCH] apparmor: Remove unused variable 'sock' in __file_sock_perm()

2025-01-24 Thread John Johansen
On 1/20/25 05:21, Nathan Chancellor wrote: When CONFIG_SECURITY_APPARMOR_DEBUG_ASSERTS is disabled, there is a warning that sock is unused: security/apparmor/file.c: In function '__file_sock_perm': security/apparmor/file.c:544:24: warning: unused variable 'sock' [-Wunused-variable] 5

Re: [apparmor] [PATCH] apparmor: remove unused variable

2025-01-22 Thread sergeh
On Wed, Jan 22, 2025 at 07:55:35AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The local 'sock' variable has become unused after a change to the > aa_sock_file_perm() calling conventions: > > security/apparmor/file.c: In function '__file_sock_perm': > security/apparmor/file.c:544:24: e