Re: [PATCH v2 07/30] misc: vmw_vmci_defs: Mark 'struct vmci_handle VMCI_ANON_SRC_HANDLE' as __maybe_unused

From: Lee Jones
Date: Wed Jul 01 2020 - 06:33:58 EST


On Wed, 01 Jul 2020, Lee Jones wrote:

> vmw_vmci_defs.h is included by multiple source files. Some of which
> do not make use of 'struct vmci_handle VMCI_ANON_SRC_HANDLE' rendering
> it unused. Ensure the compiler knows that this is in fact intentional
> by marking it as __maybe_unused. This fixes the following W=1 warnings:
>
> In file included from drivers/misc/vmw_vmci/vmci_context.c:8:
> include/linux/vmw_vmci_defs.h:162:33: warning: âVMCI_ANON_SRC_HANDLEâ defined but not used [-Wunused-const-variable=]
> 162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
> | ^~~~~~~~~~~~~~~~~~~~
> In file included from drivers/misc/vmw_vmci/vmci_datagram.c:8:
> include/linux/vmw_vmci_defs.h:162:33: warning: âVMCI_ANON_SRC_HANDLEâ defined but not used [-Wunused-const-variable=]
> 162 | static const struct vmci_handle VMCI_ANON_SRC_HANDLE = {
> | ^~~~~~~~~~~~~~~~~~~~
>
> Cc: George Zhang <georgezhang@xxxxxxxxxx>
> Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
> ---
> arch/arm/mach-omap2/mmc.h | 4 ----
> drivers/mmc/host/omap.c | 1 -
> include/linux/platform_data/mmc-omap.h | 3 +++
> include/linux/vmw_vmci_defs.h | 2 +-
> 4 files changed, 4 insertions(+), 6 deletions(-)

Drop this please. Something went wrong.

I will resend it separately in a few days.

--
Lee Jones [æçæ]
Senior Technical Lead - Developer Services
Linaro.org â Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog