qemu-e2k/hw/tpm
Stefan Hajnoczi 886ce6f8b6 tpm: avoid clang shifting negative signed warning
clang 3.7.0 on x86_64 warns about the following:

  hw/tpm/tpm_tis.c:1000:36: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
            tis->loc[c].iface_id = TPM_TIS_IFACE_ID_SUPPORTED_FLAGS1_3;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  hw/tpm/tpm_tis.c:144:10: note: expanded from macro 'TPM_TIS_IFACE_ID_SUPPORTED_FLAGS1_3'
     (~0 << 4)/* all of it is don't care */)
      ~~ ^

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2015-11-17 18:35:56 +08:00
..
Makefile.objs tpm: Probe for connected TPM 1.2 or TPM 2 2015-05-31 20:29:02 +02:00
tpm_int.h tpm: Probe for connected TPM 1.2 or TPM 2 2015-05-31 20:29:02 +02:00
tpm_passthrough.c maint: remove unused include for dirent.h 2015-09-11 10:21:38 +03:00
tpm_tis.c tpm: avoid clang shifting negative signed warning 2015-11-17 18:35:56 +08:00
tpm_tis.h Extend TPM TIS interface to support TPM 2 2015-05-31 20:29:02 +02:00
tpm_util.c tpm: Probe for connected TPM 1.2 or TPM 2 2015-05-31 20:29:02 +02:00
tpm_util.h tpm: Probe for connected TPM 1.2 or TPM 2 2015-05-31 20:29:02 +02:00