diff mbox series

[2/3] station: this should break

Message ID 20220606213216.36873-3-prestwoj@gmail.com (mailing list archive)
State Rejected, archived
Headers show
Series Patch 2 should fail incremental build | expand

Checks

Context Check Description
prestwoj/incremental_build fail Make FAIL (patch 1): src/station.c:127:1: error: unknown type name ‘truct’; did you mean ‘struct’? 127 | truct anqp_entry { | ^~~~~ | struct src/station.c:127:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 127 | truct anqp_entry { | ^ src/station.c: In function ‘match_pending’: src/station.c:526:21: error: invalid use of undefined type ‘const struct anqp_entry’ 526 | return entry->pending != 0; | ^~ src/station.c: In function ‘remove_anqp’: src/station.c:533:18: error: invalid use of undefined type ‘struct anqp_entry’ 533 | if (entry->pending) | ^~ src/station.c:534:34: error: invalid use of undefined type ‘struct anqp_entry’ 534 | anqp_cancel(entry->pending); | ^~ In file included from src/station.c:44: src/station.c: In function ‘anqp_entry_foreach’: src/station.c:544:63: error: invalid use of undefined type ‘struct anqp_entry’ 544 | STATION_EVENT_ANQP_FINISHED, e->network); | ^~ ./src/watchlist.h:73:27: note: in definition of macro ‘WATCHLIST_NOTIFY’ 73 | t(args, item->notify_data); \ | ^~~~ src/station.c: In function ‘station_anqp_response_cb’: src/station.c:556:40: error: invalid use of undefined type ‘struct anqp_entry’ 556 | struct station *station = entry->station; | ^~ src/station.c:557:40: error: invalid use of undefined type ‘struct anqp_entry’ 557 | struct network *network = entry->network; | ^~ src/station.c:601:14: error: invalid use of undefined type ‘struct anqp_entry’ 601 | entry->pending = 0; | ^~ In file included from ./ell/ell.h:1, from src/station.c:37: src/station.c: In function ‘station_start_anqp’: src/station.c:632:23: error: invalid application of ‘sizeof’ to incomplete type ‘struct anqp_entry’ 632 | entry = l_new(struct anqp_entry, 1); | ^~~~~~ ./ell/util.h:263:37: note: in definition of macro ‘l_new’ 263 | size_t __s = sizeof(type); \ | ^~~~ src/station.c:633:14: error: invalid use of undefined type ‘struct anqp_entry’ 633 | entry->station = station; | ^~ src/station.c:634:14: error: invalid use of undefined type ‘struct anqp_entry’ 634 | entry->network = network; | ^~ src/station.c:661:14: error: invalid use of undefined type ‘struct anqp_entry’ 661 | entry->pending = anqp_request(netdev_get_wdev_id(station->netdev), | ^~ src/station.c:665:19: error: invalid use of undefined type ‘struct anqp_entry’ 665 | if (!entry->pending) { | ^~ make[1]: *** [Makefile:2381: src/station.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1568: all] Error 2
prestwoj/gitlint success Gitlint PASS
tedd_an/pre-ci_am success Success
prestwoj/ci-gitlint success Gitlint PASS
prestwoj/ci-incremental_build fail Make FAIL (patch 1): src/station.c:127:1: error: unknown type name ‘truct’; did you mean ‘struct’? 127 | truct anqp_entry { | ^~~~~ | struct src/station.c:127:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 127 | truct anqp_entry { | ^ src/station.c: In function ‘match_pending’: src/station.c:526:21: error: invalid use of undefined type ‘const struct anqp_entry’ 526 | return entry->pending != 0; | ^~ src/station.c: In function ‘remove_anqp’: src/station.c:533:18: error: invalid use of undefined type ‘struct anqp_entry’ 533 | if (entry->pending) | ^~ src/station.c:534:34: error: invalid use of undefined type ‘struct anqp_entry’ 534 | anqp_cancel(entry->pending); | ^~ In file included from src/station.c:44: src/station.c: In function ‘anqp_entry_foreach’: src/station.c:544:63: error: invalid use of undefined type ‘struct anqp_entry’ 544 | STATION_EVENT_ANQP_FINISHED, e->network); | ^~ ./src/watchlist.h:73:27: note: in definition of macro ‘WATCHLIST_NOTIFY’ 73 | t(args, item->notify_data); \ | ^~~~ src/station.c: In function ‘station_anqp_response_cb’: src/station.c:556:40: error: invalid use of undefined type ‘struct anqp_entry’ 556 | struct station *station = entry->station; | ^~ src/station.c:557:40: error: invalid use of undefined type ‘struct anqp_entry’ 557 | struct network *network = entry->network; | ^~ src/station.c:601:14: error: invalid use of undefined type ‘struct anqp_entry’ 601 | entry->pending = 0; | ^~ In file included from ./ell/ell.h:1, from src/station.c:37: src/station.c: In function ‘station_start_anqp’: src/station.c:632:23: error: invalid application of ‘sizeof’ to incomplete type ‘struct anqp_entry’ 632 | entry = l_new(struct anqp_entry, 1); | ^~~~~~ ./ell/util.h:263:37: note: in definition of macro ‘l_new’ 263 | size_t __s = sizeof(type); \ | ^~~~ src/station.c:633:14: error: invalid use of undefined type ‘struct anqp_entry’ 633 | entry->station = station; | ^~ src/station.c:634:14: error: invalid use of undefined type ‘struct anqp_entry’ 634 | entry->network = network; | ^~ src/station.c:661:14: error: invalid use of undefined type ‘struct anqp_entry’ 661 | entry->pending = anqp_request(netdev_get_wdev_id(station->netdev), | ^~ src/station.c:665:19: error: invalid use of undefined type ‘struct anqp_entry’ 665 | if (!entry->pending) { | ^~ make[1]: *** [Makefile:2383: src/station.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1570: all] Error 2
prestwoj/alpine-ci-incremental_build fail Make FAIL (patch 1): src/station.c:127:1: error: unknown type name 'truct'; did you mean 'struct'? 127 | truct anqp_entry { | ^~~~~ | struct src/station.c:127:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 127 | truct anqp_entry { | ^ src/station.c: In function 'match_pending': src/station.c:526:21: error: invalid use of undefined type 'const struct anqp_entry' 526 | return entry->pending != 0; | ^~ src/station.c: In function 'remove_anqp': src/station.c:533:18: error: invalid use of undefined type 'struct anqp_entry' 533 | if (entry->pending) | ^~ src/station.c:534:34: error: invalid use of undefined type 'struct anqp_entry' 534 | anqp_cancel(entry->pending); | ^~ In file included from src/station.c:44: src/station.c: In function 'anqp_entry_foreach': src/station.c:544:63: error: invalid use of undefined type 'struct anqp_entry' 544 | STATION_EVENT_ANQP_FINISHED, e->network); | ^~ ./src/watchlist.h:73:27: note: in definition of macro 'WATCHLIST_NOTIFY' 73 | t(args, item->notify_data); \ | ^~~~ src/station.c: In function 'station_anqp_response_cb': src/station.c:556:40: error: invalid use of undefined type 'struct anqp_entry' 556 | struct station *station = entry->station; | ^~ src/station.c:557:40: error: invalid use of undefined type 'struct anqp_entry' 557 | struct network *network = entry->network; | ^~ src/station.c:601:14: error: invalid use of undefined type 'struct anqp_entry' 601 | entry->pending = 0; | ^~ In file included from ./ell/ell.h:1, from src/station.c:37: src/station.c: In function 'station_start_anqp': src/station.c:632:23: error: invalid application of 'sizeof' to incomplete type 'struct anqp_entry' 632 | entry = l_new(struct anqp_entry, 1); | ^~~~~~ ./ell/util.h:263:37: note: in definition of macro 'l_new' 263 | size_t __s = sizeof(type); \ | ^~~~ src/station.c:633:14: error: invalid use of undefined type 'struct anqp_entry' 633 | entry->station = station; | ^~ src/station.c:634:14: error: invalid use of undefined type 'struct anqp_entry' 634 | entry->network = network; | ^~ src/station.c:661:14: error: invalid use of undefined type 'struct anqp_entry' 661 | entry->pending = anqp_request(netdev_get_wdev_id(station->netdev), | ^~ src/station.c:665:19: error: invalid use of undefined type 'struct anqp_entry' 665 | if (!entry->pending) { | ^~ make[1]: *** [Makefile:2384: src/station.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1571: all] Error 2

Commit Message

James Prestwood June 6, 2022, 9:32 p.m. UTC
---
 src/station.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/station.c b/src/station.c
index 0fbc76f7..f9978c4a 100644
--- a/src/station.c
+++ b/src/station.c
@@ -123,7 +123,8 @@  struct station {
 	bool autoconnect_can_start : 1;
 };
 
-struct anqp_entry {
+// break the build
+truct anqp_entry {
 	struct station *station;
 	struct network *network;
 	uint32_t pending;