Commit Graph

284291 Commits

Author SHA1 Message Date
rillig
11abe8f648 lint: use bool instead of u_int:1 in structures
Better late than never.
2021-01-02 01:06:15 +00:00
roy
40ce895ed2 libunbound: Enforce that mini_event isn't used by include/config.h
As I tire of fixing it to use libevent.
2021-01-01 23:24:31 +00:00
roy
d362c81b92 Revert prior
With the correct #defines mini_event.c and winsock_event.c are
compiled but practically unused.

What is exposed is not part of the public API, but appease the
peanut gallery.
2021-01-01 23:17:15 +00:00
sjg
6ceffce7ae var-op-expand needs MAKE.SAVE_DOLLARS=yes 2021-01-01 23:07:48 +00:00
roy
5594672737 libunbound: Now we use libevent, don't build mini_event or winsock_event. 2021-01-01 20:38:36 +00:00
roy
45fc1a8d69 libunbound: actually use libevent as we link to it
Would appreciate if people modify this file to actually test what
polling mechanism unbound uses as select(2) is pretty poor.
2021-01-01 20:16:16 +00:00
rillig
d82779b6ab lint: add debug logging for initialization using named members 2021-01-01 20:02:56 +00:00
rillig
2cd5c1a7b9 lint: document that C99-style initialization is necessarily buggy 2021-01-01 19:28:51 +00:00
rillig
5796421e62 lint: un-export struct istk 2021-01-01 19:15:58 +00:00
rillig
c1c5b23632 lint: fix wrong warning about bitfield in C99 structure initialization
The variable namemem is supposed to be a circular list, which is
"documented" implicitly in push_member.

The implementation was buggy though.  In pop_member, the circular list
was destroyed though.  Given the list (capital, major, favorite_color,
green), removing capital made major point to itself in the forward
direction, even though it should not have been modified at all.

In the test, I had been too optimistic to quickly understand the code
around variable initialization.  I was wrong though, so I had to adjust
the comments there to reality.
2021-01-01 19:11:19 +00:00
roy
ddf02b2602 ntpd: In the event of route(4) overflow, update the interfaces 2021-01-01 17:21:47 +00:00
rillig
59e2f0df9e lint: demonstrate bug in handling of nested C9X struct initializers 2021-01-01 16:50:47 +00:00
roy
ec176a5418 wpa: If route socket overflows, sync drivers to system interfaces
Messages such as RTM_IFNFO or RTM_IFANNOUNCE could have been lost.
As such, sync the state of our internal driver to the state of the
system interfaces as reported by getifaddrs(2).

This change requires the routing socket be placed in non-blocking
mode. While here, set the routing and inet sockets to close on exec.
2021-01-01 14:57:14 +00:00
rillig
2839f6f6bd lint: remove custom LINTFLAGS
These flags are missing the options -g (GNUisms) and -S (C9X mode).
Without these flags, NetBSD's system headers cannot be compiled as they
make heavy use of __inline and __attribute__.
2021-01-01 14:51:44 +00:00
rillig
836dfa4dee lint: combine duplicate case branches in popdecl
This works around GCC 9, which didn't see that the following statement
cannot terminate normally, even though 0 is obviously a constant expression
and assert_failed is marked as __attribute__((__noreturn__)).

	do {
		if (!(0))
			assert_failed(...);
	} while (0)
2021-01-01 14:11:20 +00:00
riastradh
f7a711185e Use printf, not printf_nolog, in lockdebug dumps.
Otherwise we get no diagnostic information in crash dumps or dmesg,
which really puts a damper on the utility of lockdebug.

(If there's a reason for printf_nolog instead of printf, it should be
documented in comments here, and it had better be a pretty good
reason for destroying the diagnostic information that is half the
point of lockdebug.)
2021-01-01 14:08:33 +00:00
riastradh
ecec292739 Nix trailing whitespace. 2021-01-01 14:04:17 +00:00
kre
d3bf6df7dc Build breakage fix (hopefully) - brain dead gcc. NFCI. 2021-01-01 13:43:34 +00:00
jmcneill
cb08f90273 Use symbolic names for hwtype values. 2021-01-01 11:58:21 +00:00
rillig
c4649232b6 lint: rename styp and utyp 2021-01-01 11:58:03 +00:00
jmcneill
f1f55efcbf #define<tab> 2021-01-01 11:51:47 +00:00
rillig
d7a1ba0dec lint: remove NTSPEC from enum tspec_t
The number of elements in an enumeration is not a valid enum constant of
that enumeration itself.
2021-01-01 11:51:15 +00:00
jmcneill
33a7d25ebe rk_i2s.c 2021-01-01 11:44:41 +00:00
rillig
f78ee5c0ea lint: add missing redundant messages in source code 2021-01-01 11:41:01 +00:00
rillig
cc7508a53e lint: complete message 203 for case labels 2021-01-01 11:14:06 +00:00
rillig
ffe80b8ff2 lint: rename tokens for left and right parentheses 2021-01-01 11:09:40 +00:00
rillig
124253e8af lint: extract main part of case_label into separate function 2021-01-01 11:01:03 +00:00
rillig
620f102450 lint: split label handling into separate functions
The only thing these cases have in common is the name "label" and the
"reached = 1" assignment.  That's not reason enough to combine
completely unrelated functions.
2021-01-01 10:55:27 +00:00
ryo
56cf715de9 evbarm: Add support for Amlogic G12 family SoCs 2021-01-01 10:12:25 +00:00
rillig
cca12cba58 lint: replace simple LERROR with lint_assert 2021-01-01 09:28:22 +00:00
rillig
194bb9b625 lint: replace some more LERROR with lint_assert 2021-01-01 09:11:40 +00:00
mrg
5c99ee5108 welcome 2021. YES. 2021-01-01 08:02:16 +00:00
ryo
34121d2a3c add dts for odroid-N2 plus.
meson-g12b-odroid-n2-plus.dts of linux is not optimized for the odroid-N2plus CPU clock.
and the dts for odroid-n2-plus in the hardkernel repository is  significantly changed,
so cannot be imported without modification. Therefore, a simple meson-g12b-odroid-n2-plus.dts
has been added based on "meson-g12b-odroid-n2.dts" with only the cpu_opp_table and
regulator table changed.
2021-01-01 07:41:46 +00:00
ryo
8afae5d533 Add support for Amlogic S922X(meson-g12b) SoCs 2021-01-01 07:21:58 +00:00
ryo
655163bef2 fix to work with various clock frequencies, and add support "amlogic,meson-axg-dwmac" 2021-01-01 07:18:23 +00:00
ryo
6b487959df adapts to some register differences to add support "amlogic,meson-axg-mmc" 2021-01-01 07:17:36 +00:00
ryo
7b7c54c574 add "amlogic,meson-axg-reset" to compatible 2021-01-01 07:15:18 +00:00
ryo
e078d129ee - remove unnecessary code
- handle "enable-gpios" property, and enable/disable GPIOs in pwmregulator_enable()

pointed out by thorpej@, thanks
2021-01-01 03:07:51 +00:00
rillig
259b122f43 lint: rename basic_type_name to tspec_name
The term "basic type" is precisely defined in C99 6.2.5p14, and tspec_t
is close to that, but nowhere identical.
2021-01-01 01:42:55 +00:00
rillig
15ccb490cc lint: clean up warn_incompatible_types
Splitting the code arbitrarily in separate phases made the code harder
to understand, both for humans as well as automated tools.

One of these tools, check-msgs.lua, couldn't check whether the comments
match the actual messages, and of course, the comments were wrong.
There was no good reason to deviate from the pattern followed by all the
rest of the code.
2021-01-01 01:38:14 +00:00
rillig
5cf99a8e7a lint: remove redundant printf arguments 2021-01-01 01:29:30 +00:00
rillig
6451720632 lint: align comments with actual message, in the lexer and parser 2021-01-01 01:26:02 +00:00
rillig
e93292def1 lint: fix segmentation fault when checking returned enum types (211) 2021-01-01 01:07:07 +00:00
rillig
d4b0f2fea7 lint: align comments in code with actual messages
Redundancy is bad.  Especially in this case, separating the format
strings from the actual arguments prevents the compiler from
cross-checking them.
2021-01-01 00:00:24 +00:00
rillig
2e28c52323 lint: check messages and their IDs for consistency 2020-12-31 22:48:33 +00:00
mrg
f7fac0dec2 begin to make rock64 audio work.
- set status for "analog_sound" to enabled.
- add clocks for the i2s and spdif nodes.
- match "rockchip,rk3066-i2s", "rockchip,rk3188-i2s",
  and "rockchip,rk3288-i2s".

this gets i2s and ausoc to attach, but no audio(4) yet.

to complete this probably also needs a codec driver (appears
to be rk3328 specific, unlike eg pinebookpro's es8316), and
support for "audio-graph-card" type sound cards.
2020-12-31 20:47:05 +00:00
rillig
ee607e0b85 lint: check that in "if (cond)", cond is scalar 2020-12-31 18:51:28 +00:00
rillig
71c58e78f7 make(1): replace pointers in controlling conditions with booleans 2020-12-31 17:39:36 +00:00
rillig
fbeb97dcac lint: in mkops, replace printf with println
One less backslash per line of code.
2020-12-31 16:19:05 +00:00
ryo
344e9b00b9 add fdt pwm regulator 2020-12-31 15:12:33 +00:00