Loading

Errors

  1. drivers/hwmon/lm75.c:148:3: warning: braces around scalar initializer
  2.    .sample_set_masks = { 0 << 13, 1 << 13, 2 << 13, 3 << 13 },
  3.    ^
  4. drivers/hwmon/lm75.c:148:3: note: (near initialization for ‘device_values[20].sample_set_masks’)
  5. drivers/hwmon/lm75.c:148:34: warning: excess elements in scalar initializer
  6.    .sample_set_masks = { 0 << 13, 1 << 13, 2 << 13, 3 << 13 },
  7.                                   ^
  8. drivers/hwmon/lm75.c:148:34: note: (near initialization for ‘device_values[20].sample_set_masks’)
  9. drivers/hwmon/lm75.c:148:43: warning: excess elements in scalar initializer
  10.    .sample_set_masks = { 0 << 13, 1 << 13, 2 << 13, 3 << 13 },
  11.                                            ^
  12. drivers/hwmon/lm75.c:148:43: note: (near initialization for ‘device_values[20].sample_set_masks’)
  13. drivers/hwmon/lm75.c:148:52: warning: excess elements in scalar initializer
  14.    .sample_set_masks = { 0 << 13, 1 << 13, 2 << 13, 3 << 13 },
  15.                                                     ^
  16. drivers/hwmon/lm75.c:148:52: note: (near initialization for ‘device_values[20].sample_set_masks’)
  17. drivers/hwmon/lm75.c:150:3: warning: braces around scalar initializer
  18.    .sample_times = { MSEC_PER_SEC / 37, MSEC_PER_SEC / 18, MSEC_PER_SEC / 9, MSEC_PER_SEC / 4 },
  19.    ^
  20. drivers/hwmon/lm75.c:150:3: note: (near initialization for ‘device_values[20].sample_times’)
  21. In file included from ./include/linux/time.h:8:0,
  22.                  from ./include/linux/stat.h:19,
  23.                  from ./include/linux/module.h:10,
  24.                  from drivers/hwmon/lm75.c:21:
  25. ./include/linux/time64.h:32:22: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
  26.  #define MSEC_PER_SEC 1000L
  27.                       ^
  28. drivers/hwmon/lm75.c:150:21: note: in expansion of macro ‘MSEC_PER_SEC’
  29.    .sample_times = { MSEC_PER_SEC / 37, MSEC_PER_SEC / 18, MSEC_PER_SEC / 9, MSEC_PER_SEC / 4 },
  30.                      ^~~~~~~~~~~~
  31. ./include/linux/time64.h:32:22: note: (near initialization for ‘device_values[20].sample_times’)
  32.  #define MSEC_PER_SEC 1000L
  33.                       ^
  34. drivers/hwmon/lm75.c:150:21: note: in expansion of macro ‘MSEC_PER_SEC’
  35.    .sample_times = { MSEC_PER_SEC / 37, MSEC_PER_SEC / 18, MSEC_PER_SEC / 9, MSEC_PER_SEC / 4 },
  36.                      ^~~~~~~~~~~~
  37. ./include/linux/time64.h:32:22: warning: excess elements in scalar initializer
  38.  #define MSEC_PER_SEC 1000L
  39.                       ^
  40. drivers/hwmon/lm75.c:150:40: note: in expansion of macro ‘MSEC_PER_SEC’
  41.    .sample_times = { MSEC_PER_SEC / 37, MSEC_PER_SEC / 18, MSEC_PER_SEC / 9, MSEC_PER_SEC / 4 },
  42.                                         ^~~~~~~~~~~~
  43. ./include/linux/time64.h:32:22: note: (near initialization for ‘device_values[20].sample_times’)
  44.  #define MSEC_PER_SEC 1000L
  45.                       ^
  46. drivers/hwmon/lm75.c:150:40: note: in expansion of macro ‘MSEC_PER_SEC’
  47.    .sample_times = { MSEC_PER_SEC / 37, MSEC_PER_SEC / 18, MSEC_PER_SEC / 9, MSEC_PER_SEC / 4 },
  48.                                         ^~~~~~~~~~~~
  49. ./include/linux/time64.h:32:22: warning: excess elements in scalar initializer
  50.  #define MSEC_PER_SEC 1000L
  51.                       ^
  52. drivers/hwmon/lm75.c:150:59: note: in expansion of macro ‘MSEC_PER_SEC’
  53.    .sample_times = { MSEC_PER_SEC / 37, MSEC_PER_SEC / 18, MSEC_PER_SEC / 9, MSEC_PER_SEC / 4 },
  54.                                                            ^~~~~~~~~~~~
  55. ./include/linux/time64.h:32:22: note: (near initialization for ‘device_values[20].sample_times’)
  56.  #define MSEC_PER_SEC 1000L
  57.                       ^
  58. drivers/hwmon/lm75.c:150:59: note: in expansion of macro ‘MSEC_PER_SEC’
  59.    .sample_times = { MSEC_PER_SEC / 37, MSEC_PER_SEC / 18, MSEC_PER_SEC / 9, MSEC_PER_SEC / 4 },
  60.                                                            ^~~~~~~~~~~~
  61. ./include/linux/time64.h:32:22: warning: excess elements in scalar initializer
  62.  #define MSEC_PER_SEC 1000L
  63.                       ^
  64. drivers/hwmon/lm75.c:150:77: note: in expansion of macro ‘MSEC_PER_SEC’
  65.    .sample_times = { MSEC_PER_SEC / 37, MSEC_PER_SEC / 18, MSEC_PER_SEC / 9, MSEC_PER_SEC / 4 },
  66.                                                                              ^~~~~~~~~~~~
  67. ./include/linux/time64.h:32:22: note: (near initialization for ‘device_values[20].sample_times’)
  68.  #define MSEC_PER_SEC 1000L
  69.                       ^
  70. drivers/hwmon/lm75.c:150:77: note: in expansion of macro ‘MSEC_PER_SEC’
  71.    .sample_times = { MSEC_PER_SEC / 37, MSEC_PER_SEC / 18, MSEC_PER_SEC / 9, MSEC_PER_SEC / 4 },
  72.                                                                              ^~~~~~~~~~~~
  73. drivers/hwmon/lm75.c:151:3: warning: braces around scalar initializer
  74.    .resolutions = { 12, 12, 12, 12 }
  75.    ^
  76. drivers/hwmon/lm75.c:151:3: note: (near initialization for ‘device_values[20].resolutions’)
  77. drivers/hwmon/lm75.c:151:20: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
  78.    .resolutions = { 12, 12, 12, 12 }
  79.                     ^~
  80. drivers/hwmon/lm75.c:151:20: note: (near initialization for ‘device_values[20].resolutions’)
  81. drivers/hwmon/lm75.c:151:24: warning: excess elements in scalar initializer
  82.    .resolutions = { 12, 12, 12, 12 }
  83.                         ^~
  84. drivers/hwmon/lm75.c:151:24: note: (near initialization for ‘device_values[20].resolutions’)
  85. drivers/hwmon/lm75.c:151:28: warning: excess elements in scalar initializer
  86.    .resolutions = { 12, 12, 12, 12 }
  87.                             ^~
  88. drivers/hwmon/lm75.c:151:28: note: (near initialization for ‘device_values[20].resolutions’)
  89. drivers/hwmon/lm75.c:151:32: warning: excess elements in scalar initializer
  90.    .resolutions = { 12, 12, 12, 12 }
  91.                                 ^~
  92. drivers/hwmon/lm75.c:151:32: note: (near initialization for ‘device_values[20].resolutions’)
  93. drivers/hwmon/lm75.c:291:27: error: unknown type name ‘i2c_client’
  94.    struct lm75_data *data, i2c_client *client)
  95.                            ^~~~~~~~~~
  96. drivers/hwmon/lm75.c: In function ‘lm75_write’:
  97. drivers/hwmon/lm75.c:319:10: error: implicit declaration of function ‘lm75_write_chip’ [-Werror=implicit-function-declaration]
  98.    return lm75_write_chip(dev, attr, val, data, client);
  99.           ^~~~~~~~~~~~~~~
  100. drivers/hwmon/lm75.c: At top level:
  101. drivers/hwmon/lm75.c:388:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  102.   .write = lm75_write,
  103.            ^~~~~~~~~~
  104. drivers/hwmon/lm75.c:388:11: note: (near initialization for ‘lm75_hwmon_ops.write’)
  105. cc1: some warnings being treated as errors
  106. scripts/Makefile.build:334: recipe for target 'drivers/hwmon/lm75.o' failed
  107. make[2]: *** [drivers/hwmon/lm75.o] Error 1
  108. scripts/Makefile.build:587: recipe for target 'drivers/hwmon' failed
  109. make[1]: *** [drivers/hwmon] Error 2