This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: cec-funcs.h: cec_ops_report_features: set *dev_features to NULL
Author:  Hans Verkuil <hverk...@xs4all.nl>
Date:    Tue Aug 1 07:53:30 2017 -0400

gcc can get confused by this code and it thinks dev_features can be
returned uninitialized. So initialize to NULL at the beginning to shut up
the warning.

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mche...@s-opensource.com>

 include/uapi/linux/cec-funcs.h | 1 +
 1 file changed, 1 insertion(+)

---

diff --git a/include/uapi/linux/cec-funcs.h b/include/uapi/linux/cec-funcs.h
index c451eec42a83..270b251a3d9b 100644
--- a/include/uapi/linux/cec-funcs.h
+++ b/include/uapi/linux/cec-funcs.h
@@ -895,6 +895,7 @@ static inline void cec_ops_report_features(const struct 
cec_msg *msg,
        *cec_version = msg->msg[2];
        *all_device_types = msg->msg[3];
        *rc_profile = p;
+       *dev_features = NULL;
        while (p < &msg->msg[14] && (*p & CEC_OP_FEAT_EXT))
                p++;
        if (!(*p & CEC_OP_FEAT_EXT)) {

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to