Uploaded image for project: 'CIFX Driver for Linux'
  1. CIFX Driver for Linux
  2. NXDRVLINUX-100

uio_netx: Warning when compiling user newer GCC or Kernel

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V1.2.0.0, V1.2.0.1, V2.0.0.0, V2.0.1.0
    • Fix Version/s: V2.1.0.0
    • Component/s: Linux Driver
    • Labels:
      None
    • Account:
      SDO Driver (SDODRIVER)

      Description

      Newer kernels / gcc complains when compiling:

      drivers/uio/uio_netx.c: In function 'get_dt_parameter':
      drivers/uio/uio_netx.c:792:34: warning: division 'sizeof (long unsigned int *) / sizeof (long unsigned int)' does not compute the number of array elements [-Wsizeof-pointer-div]
        792 |  return (sizeof(custom->dpm_addr)/sizeof(unsigned long));
            |                                  ^

       

      this feature is only used in conjunction with ARM/Device-Tree and this warning could safely be ignored.

        Attachments

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  MTrensch Michael Trensch
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: