Build: Do not suppress gnu-variable-sized-type-not-at-end warning

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • MCAL
    • MCAL-23484
    • MCUSW_J7_09.01.00
    • MCUSW_J7_10.00.00
    • Hide
      j7200-evm
      j721e-evm
      j721s2-evm
      j784s4-evm
      Show
      j7200-evm j721e-evm j721s2-evm j784s4-evm

      The MCUSW libraries generated about ~30000 warnings of the type gnu-variable-sized-type-not-at-end due to the flexible array usage in some header structures that are used in IPC messaging (99.99% from tisci_header structure) headers

      /**
       * \brief Header that prefixes all TISCI messages.
       *
       * \param type Type of message identified by a TISCI_MSG_* ID
       * \param host Host of the message.
       * \param seq Message identifier indicating a transfer sequence.
       * \param flags TISCI_MSG_FLAG_* for the message.
       * \param payload Placeholder pointer that can be used to access the raw message body.
       */
      struct tisci_header {
              u16     type;
              u8      host;
              u8      seq;
              u32     flags;
              u8      payload[];
      };
      

      This particular warning is an error on Safety Certified GHS Compiler, and cannot be used in ASIL-D software.

      This is fixed on the TIFS for 09.01.08 release as part of MISRA-C rules fixes within the TIFS source code, and is also absorbed in PDK in commit
      https://git.ti.com/gitweb?p=processor-sdk/pdk.git;a=blobdiff;f=packages/ti/drv/sciclient/soc/sysfw/include/tisci/tisci_protocol.h;h=fcfdbc0d8579716bc16801431ef4cbed88c36c15;hp=b04d4decc77914b5a3ead29cee87e7d2977087a4;hb=f3383ffcb7219101f268bdec46eeb0fe2d541e31;hpb=ee1e26a8a41bc775855f7dd00f9603941fc3f584

      Do not suppress this warning anymore

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-4635 - Build: Do not suppress gnu-variable...
                SYNCHRONIZED
                • Last Sync Date: