- Apr 27, 2020
-
-
Sebastian Kuzminsky authored
-
- Apr 26, 2020
-
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
Make sure the requested filename fits in the `bitfile_name` buffer before copying it.
-
Sebastian Kuzminsky authored
This squelches a warning from -D_FORTIFY_SOURCE.
-
Sebastian Kuzminsky authored
Make sure there's room in the destination buffer for the whole source string, plus the terminating NULL.
-
Sebastian Kuzminsky authored
-
- Apr 25, 2020
-
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
Error out early and print a helpful error message if they're not found.
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
This makes the `if` statement bodies indent by 4 spaces instead of sometimes one tab and sometimes nothing.
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
changes from jethornton/mesaflash master branch
-
- Apr 24, 2020
-
-
john authored
-
Peter Wallace authored
-
Peter Wallace authored
-
Peter Wallace authored
fix a couple of compile warnings
-
Peter Wallace authored
-
Peter Wallace authored
-
Peter Wallace authored
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
-
Sebastian Kuzminsky authored
* origin/v3.3: read-hmid: report unknown pins better hm2_print_pin_file(): use find_module_name() instead of searching the list rename pin_find_module_name() to find_module_name() include gtag number of unknown gtags in pin list remove dead code 7i96: fixup pins per connector don't segfault on unknown ethernet boards fix a typo in a comment fix SSR pin names fix sserial channel number in readhmid pin list rename the "Transformer" GTAG to "SSR", to match the linuxcnc hm2 driver 7i96: make the connector list match the ioport list capitalize Ethernet consistently in --help message fix addr argument for ethernet boards in --help message consistent capitalization and punctuation in --help output fix formatting of --help output release 3.3.0~pre0+dfsg-0 release mesaflash 3.2.1 debian/changelog: new version pci_analog_write: include unistd.h, which declares usleep() sserial_module: declare sserial_write(), used by pci_analog_write pci_encoder_read: include unistd.h, for usleep() serial_boards: add some missing declarations spi_boards: include unistd.h spi_boards: include ctype.h add missing return value in spi_boards_init() spi_boards: include eeprom.h eeprom_local: include pci/pci.h hostmot2: add some missing function declarations pci_boards: move pci_read() and pci_write() to before the first use in the file pci_boards: include sys/time.h anyio: include missing serial_boards.h include bitfile.h in eeprom.c, for print_bitfile_header() function declarations shouldn't be marked inline
-
Sebastian Kuzminsky authored
Fix -Wstringop-truncation warnings
-
Sebastian Kuzminsky authored
Add sys/io.h stubs implementation
-
- Apr 23, 2020
-
-
Sebastian Kuzminsky authored
Fix linking errors
-
Sebastian Kuzminsky authored
Fix compilation errors
-
Sebastian Kuzminsky authored
Fix -Wformat warning
-
Sebastian Kuzminsky authored
Make packaging easier
-
- Apr 22, 2020
- Apr 21, 2020
-
-
Damian Wrobel authored
Allows mesaflash to be compiled on platforms (such as arm) which do not provides <sys/io.h> header file. Signed-off-by:Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
-
- Apr 20, 2020
-
-
Damian Wrobel authored
Fixes the following warnings: In function 'strncpy', inlined from 'spi_boards_scan' at spi_boards.c:203:9: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); In file included from /usr/include/string.h:495, from pci_boards.c:34: In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:1281:21: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:1240:21: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:1205:21: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:1177:21: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:1144:21: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:1117:21: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:1089:21: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:1056:21: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:1026:21: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:995:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:967:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:940:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:912:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:885:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘pci_boards_scan’ at pci_boards.c:851:17: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 14 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from usb_boards.c:21: In function ‘strncpy’, inlined from ‘usb_boards_scan’ at usb_boards.c:188:9: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘usb_boards_scan’ at usb_boards.c:147:13: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘eth_scan_one_addr’ at eth_boards.c:329:13, inlined from ‘eth_scan_one_addr.isra.0’ at eth_boards.c:136:12: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 16 bytes from a string of length 19 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘eth_scan_one_addr’ at eth_boards.c:306:13, inlined from ‘eth_scan_one_addr.isra.0’ at eth_boards.c:136:12: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 16 bytes from a string of length 19 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘eth_scan_one_addr’ at eth_boards.c:283:13, inlined from ‘eth_scan_one_addr.isra.0’ at eth_boards.c:136:12: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 16 bytes from a string of length 19 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘eth_scan_one_addr’ at eth_boards.c:259:13, inlined from ‘eth_scan_one_addr.isra.0’ at eth_boards.c:136:12: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 16 bytes from a string of length 19 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘eth_scan_one_addr’ at eth_boards.c:235:13, inlined from ‘eth_scan_one_addr.isra.0’ at eth_boards.c:136:12: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 16 bytes from a string of length 19 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘eth_scan_one_addr’ at eth_boards.c:211:13, inlined from ‘eth_scan_one_addr.isra.0’ at eth_boards.c:136:12: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 16 bytes from a string of length 19 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘eth_scan_one_addr’ at eth_boards.c:186:13, inlined from ‘eth_scan_one_addr.isra.0’ at eth_boards.c:136:12: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 16 bytes from a string of length 19 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘eth_scan_one_addr’ at eth_boards.c:161:13, inlined from ‘eth_scan_one_addr.isra.0’ at eth_boards.c:136:12: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 16 bytes from a string of length 19 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by:Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
-
Damian Wrobel authored
Fixes the following linking errors on gcc 10: /usr/bin/ld: libanyio.a(spi_boards.o):spi_boards.c:41: multiple definition of `sd'; libanyio.a(eth_boards.o):eth_boards.c:49: first defined here /usr/bin/ld: libanyio.a(serial_boards.o):serial_boards.c:38: multiple definition of `sd'; libanyio.a(eth_boards.o):eth_boards.c:49: first defined here /usr/bin/ld: libanyio.a(lbp.o):mesaflash/lbp.c:31: multiple definition of `sd'; libanyio.a(eth_boards.o):eth_boards.c:49: first defined here Signed-off-by:Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
-