Skip to content

Commit b77209d

Browse files
committed
github: Add '-Wno-error=pointer-sign' to 4.5+ builds for I2C driver
The interface to the I2C subsystem expects to be passed buffers of type char *, but our driver (and the vast majority of other I2C drivers, for what its worth) passes a u8 * buffer instead. GCC generates a pointer sign warning in response, but this causes the github build to fail since we have '-Werror' enabled. While we work on trying to fix the upstream I2C interface, work around this problem by not erroring out on pointer-sign warnings from affected kernel versions. Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Jason Gerecke <[email protected]>
1 parent 3fe3a45 commit b77209d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
- kernel: "4.1"
2323
compile_cflags: -Wno-error=format-truncation
2424
- kernel: "4.5"
25-
compile_cflags: -Wno-error=format-truncation
25+
compile_cflags: -Wno-error=format-truncation -Wno-error=pointer-sign
2626
- kernel: "4.6"
27-
compile_cflags: -Wno-error=format-truncation
27+
compile_cflags: -Wno-error=format-truncation -Wno-error=pointer-sign
2828
- kernel: "4.14"
29-
compile_cflags: -Wno-error=format-truncation
29+
compile_cflags: -Wno-error=format-truncation -Wno-error=pointer-sign
3030
- kernel: "5.10"
31-
compile_cflags: -Wno-error=format-truncation
31+
compile_cflags: -Wno-error=format-truncation -Wno-error=pointer-sign
3232
steps:
3333
- name: Checkout the repo
3434
uses: actions/checkout@v2

0 commit comments

Comments
 (0)