All of lore.kernel.org
 help / color / mirror / Atom feed
* compiling decode_ath10k.cc with clang/llvm
@ 2015-05-28  6:43 Adrian Chadd
  2015-05-28 14:08 ` Ben Greear
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Chadd @ 2015-05-28  6:43 UTC (permalink / raw)
  To: ath10k@lists.infradead.org

Hi,

I'm doing firmware bringup on freebsd, and I've hit a snag with
decode_ath10k.cc:

Suspended
adrian@lucy-11i386:~/git/dev.qualcomm.com/greaarb/ath10k-firmware % ./BUILDME.sh
decode_ath10k.cc:1266:28: error: use of logical '&&' with constant
operand [-Werror,-Wconstant-logical-operand]
             (ps_reg >> 8) && 0xf, (ps_reg >> 16) & 0x3, !!(ps_reg >> 18));
                           ^  ~~~
decode_ath10k.cc:1266:28: note: use '&' for a bitwise operation
             (ps_reg >> 8) && 0xf, (ps_reg >> 16) & 0x3, !!(ps_reg >> 18));
                           ^~
                           &
decode_ath10k.cc:1266:28: note: remove constant to silence this warning
             (ps_reg >> 8) && 0xf, (ps_reg >> 16) & 0x3, !!(ps_reg >> 18));
                          ~^~~~~~
decode_ath10k.cc:1407:37: error: comparison of unsigned expression >=
0 is always true [-Werror,-Wtautological-compare]
                        if ((sp_idx >= 0) && (sp_idx < len)) {
                             ~~~~~~ ^  ~
decode_ath10k.cc:2019:23: error: format specifies type 'unsigned
short' but the argument has type 'unsigned char' [-Werror,-Wformat]
      printf("%02hx", header.uuid[i]);
              ~~~~~   ^~~~~~~~~~~~~~
              %02hhx

.. would someone who can use the firmware try fixing the source and
see if it still does the right thing?


-a

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-28 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-28  6:43 compiling decode_ath10k.cc with clang/llvm Adrian Chadd
2015-05-28 14:08 ` Ben Greear
2015-05-28 16:49   ` Adrian Chadd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.