Commit Graph

284193 Commits

Author SHA1 Message Date
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
ryo
6fe470c03a add of_getprop_uint32_array() 2020-12-31 15:10:46 +00:00
ryo
b3feca02ba extend the timeout value. dwc_gmac_reset() sometimes takes more time. 2020-12-31 15:09:12 +00:00
rillig
b543b80840 make(1): add test for common and edge cases in .for loop expansion 2020-12-31 14:26:37 +00:00
rillig
9bb16cf29a make(1): fix undefined behavior in SubstVarLong
A memcmp implementation that would check the start and end pointers
first would have detected this possible out-of-bounds memory read.
2020-12-31 14:10:04 +00:00
rillig
ed7360f574 make(1): make control flow in SubstVarLong of .for loops more obvious 2020-12-31 13:56:56 +00:00
rillig
b7e7440cce make(1): clean up SubstVarShort in .for loops
This function does not need to advance the parsing position, which
removes duplicate code.
2020-12-31 13:37:33 +00:00
rillig
5241bad0bc make(1): add tests for extreme edge cases of .for loop expansion 2020-12-31 13:23:43 +00:00
msaitoh
483838b3b7 Reduce code duplication. No functional change.
Add new ixgbe_intr_admin_common() and use it in both ixgbe_msix_admin()
  and ixgbe_legacy_irq().
2020-12-31 12:34:33 +00:00
jmcneill
4c90ceed31 Fix definition of RK3328_HCLK_I2S1_8CH 2020-12-31 11:36:12 +00:00
kre
bb9e455dcc Note update of tzdata to 2020f 2020-12-31 07:54:13 +00:00
kre
2c7a46fdfc Merge tzdata2020f 2020-12-31 07:50:43 +00:00
kre
2b92f7ae10 Import tzdata2020f from ftp://ftp.iana.org/tz/releases/tzdata2020f.tar.gz
Release 2020f - 2020-12-29 00:17:46 -0800

    No changes to tzdata, just to a part of the build procedure
    not used on NetBSD

Release 2020e - 2020-12-22 15:14:34 -0800

    Volgograd switched to Moscow time on 2020-12-27 at 02:00.

    Correct many pre-1986 transitions, fixing entries originally
    derived from Shanks.  The fixes include changes to:
      Australia, Bahamas, Bermuda, Belize, Ghana, Israel and Palestine,
      Kenya and adjacent, Nigeria and adjacent, Seychelles, Vanuatu

    Australia/Currie has been moved to the 'backward' file and its
    corrected data moved to the 'backzone' file.

    To better match legislation in Turks and Caicos, the 2015 shift to
    year-round observance of -04 is now modeled as AST throughout before
    returning to Eastern Time with US DST in 2018, rather than as
    maintaining EDT until 2015-11-01.
2020-12-31 07:49:54 +00:00
mrg
2cdfae77ba save the return value of fdtbus_clock_enable() so we can both
report it correctly instead of always 0, and also return failure
to the caller.
2020-12-31 06:44:11 +00:00
rillig
2d213f3153 make(1): move detailed comment to ForSubstBody 2020-12-31 04:38:55 +00:00
rillig
3d3af52337 make(1): extract ForSubstBody from ForReadMore
This leaves ForReadMore with the single responsibility of interfacing
with ReadMoreProc in Parse_SetInput.
2020-12-31 04:31:36 +00:00
ginsbach
1008587cd2 PR/55891 supress displaying separator when numbers supressed
Fix based on patch provided by Kobayashi Takashi. This brings nl(1) further
in to POSIX compliance. Verified behavior with classic SysV nl(1) and GNU
nl(1). There could still be edge cases here not specified by POSIX.
2020-12-31 04:07:37 +00:00
rillig
99d6ebe6e9 make(1): rename ech to endc
Focusing on the "end" is more important than on the data type "ch".
2020-12-31 03:49:36 +00:00
rillig
492172e6c9 make(1): inline variable in ForReadMore
This variable was intended to help the compilers produce efficient code
by avoiding a duplicate memory read.  As it turned out, GCC 5.5 doesn't
need this help, and probably newer compilers don't need it either.  Well
done, GCC, keeping track of the memory locations even if the pointer to
it changes in the middle.
2020-12-31 03:33:10 +00:00
rillig
4f94a06e63 make(1): clean up ForReadMore
After the previous clean up in for.c 1.123 from 2020-12-30, GCC 5.5 did
not inline the function SubstVarLong anymore since it was now called
from 2 places.  GCC didn't notice that the function call was essentially
the same since in differed only in the end character.

By combining the cases for ${V} and $(V), the code becomes even shorter
than before, while still being understandable.
2020-12-31 03:19:00 +00:00
rillig
f759c16ed9 make(1): simplify termination condition for .for loop
At this point, the number of iteration items is always a multiple of the
number of iteration variables, which makes any addition more complicated
than absolutely necessary.
2020-12-31 03:10:29 +00:00
rillig
d81f96abfb make(1): add test for error handling and expansion in .for loops 2020-12-31 03:05:12 +00:00
uwe
0f21cae337 enet(4): fix refactoring accident. Spotted by mrg@. 2020-12-31 02:16:14 +00:00
rillig
4c09bc6956 make(1): add test for .endfor without corresponding .for 2020-12-30 14:50:08 +00:00
rillig
b64e9d2c70 make(1): improve .for loop documentation, clean up ForReadMore
The comma expression in ForReadMore may be a nice trick, but it's not as
easy to read as a simple if-then-else chain.  Test for '{' before '('
since BSD makefiles use braces by convention.
2020-12-30 14:28:32 +00:00
rillig
e7d2b415e5 lint: remove a bit of redundancy from the test suite 2020-12-30 13:42:19 +00:00
rillig
dbb39b4651 lint: document purpose of the test d_struct_init_nested 2020-12-30 13:41:27 +00:00
rillig
0197fc8fc4 lint: split cluparg into separate functions
That function did more than its short name could express, and the things
it did were not related in any way.
2020-12-30 13:17:42 +00:00
rillig
f4b4e8b893 lint: add test for old style function arguments 2020-12-30 13:15:07 +00:00
rillig
47bf7e655e lint: replace LERROR with lint_assert
This removes the redundancy of mentioning the function name in the error
message.  This redundancy had been correct in all but 2 cases:
build_real_imag and tsize.
2020-12-30 12:22:51 +00:00
rillig
6bddcb2931 lint: spell check comments 2020-12-30 11:56:10 +00:00
rillig
9db9468642 lint: fix Clang-tidy warning about narrowing conversion 2020-12-30 11:47:15 +00:00
rillig
9ec3ffac74 lint: remove unused macro STRBLEN 2020-12-30 11:43:13 +00:00
rillig
ea78491f30 lint: inline STRUCT_ASSIGN
This had only been necessary for some pre-C90 compilers.
2020-12-30 11:39:55 +00:00
rillig
3bd4b094fc lint: un-abbreviate s_dpos, s_spos and s_upos 2020-12-30 11:14:03 +00:00
rillig
eb502cf640 lint: un-abbreviate s_field, s_keyw and s_xsym 2020-12-30 11:04:48 +00:00
rillig
a2826784dd lint: un-abbreviate parenthesized and _strg 2020-12-30 10:56:51 +00:00
rillig
873deaeeb7 lint: rename remaining _nxt members to _next 2020-12-30 10:49:10 +00:00
rillig
c5b43f746f lint: rename more _nxt members to _next 2020-12-30 10:46:11 +00:00
rillig
a2cbddd569 lint: rename symt_t constants
There's no need to abbreviate them, furthermore FMOS was imprecise.
2020-12-30 10:35:38 +00:00
rillig
95c0030060 lint: rename s_nxt to s_next 2020-12-30 10:26:12 +00:00
rillig
b754dcb0cc make(1): format multi-line comments 2020-12-30 10:03:16 +00:00
rillig
106bafb2f3 lint: reduce nesting of function calls 2020-12-30 01:44:32 +00:00
ginsbach
05e6749c39 nl: fix -d delim parsing for POSIX
POSIX specifies it is possible to specify a one delimiter character.
Fix the logic so that both one and two character delimiters are accepted.
2020-12-30 01:42:31 +00:00
rillig
64e104d6f9 lint: reduce verbosity of assertions
Having 2 lines of source code per assertion is too much, especially
since most of this code is redundant anyway.  Extract the common code
and the additional negation into a simple function instead.
2020-12-30 01:33:30 +00:00
rillig
85b03529a9 lint: add debug logging to the parser
Even with -DDEBUG and -DYYDEBUG, the debug output is not detailed enough
to clearly see what happens.

Add some custom debug logging to the parser, mainly for demonstration
purposes, and also to find out how to fix the test d_struct_init_nested.
2020-12-30 01:02:38 +00:00
rillig
dcab0392c7 lint: rename istk_t.i_cnt to i_remaining 2020-12-29 23:12:48 +00:00
rillig
8ed5e02447 lint: rename functions that had very short names 2020-12-29 23:04:31 +00:00
chs
4af96c872b Honor LOCKPARENT for ".." of the root directory.
Reported-by: syzbot+f40b9f241b818fd12198@syzkaller.appspotmail.com
2020-12-29 22:13:40 +00:00