qcacmn: Add qdf_must_check function attribute

Some compilers allow functions to be annotated such that a warning will
be emitted if the return value of that function is not used. Allow the
WLAN driver to leverage these annotations by introducing a wrapper in
QDF, qdf_must_check.

Change-Id: I9c1328ae904857717703aae3748b207967a8dd3d
CRs-Fixed: 2382837
This commit is contained in:
Dustin Brown
2019-01-17 10:02:18 -08:00
committed by nshrivas
parent 2702aeeb0a
commit 631cde9525
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -62,6 +62,8 @@
#include <linux/ipa.h>
#endif
#define __qdf_must_check __must_check
typedef struct sg_table __sgtable_t;
/*