Displaying 1 50 of 315,705 commits (0.056s)

FreeBSD — head/sys/dev/etherswitch/rtl8366 rtl8366rb.c rtl8366rbvar.h

[etherswitch] [rtl8366] add phy4cpu setting and support mdioproxy

Tested on WZR-HP-G301NH(RTL8366RB) and WZR-HP-G300NH(RTL8366SR).

Submitted by:   Hiroki Mori <yamori813 at yahoo.co.jp>
Differential Revision:        https://reviews.freebsd.org/D10740

FreeBSD — head/sys/dev/bhnd/cores/chipc chipcreg.h, head/sys/dev/bhnd/cores/chipc/pwrctl bhnd_pwrctl_subr.c

[mips] [bhnd] Support of old PMU for BMIPS and siba SoC

 - Fix typo of PLL Type 4
 - Don't panic of frequency getters

Submitted by:        Hiroki Mori <yamori813 at yahoo.co.jp>
Differential Revision:        https://reviews.freebsd.org/D10967

FreeBSD — stable/8/sys/dev/sound/pcm buffer.c, stable/8/sys/tools/sound snd_fxdiv_gen.awk

MFC r318860:
Declare the "snd_fxdiv_table" once. This shaves around 24Kbytes of
binary data from sound.ko and the kernel.

FreeBSD — stable/9/sys/dev/sound/pcm buffer.c, stable/9/sys/tools/sound snd_fxdiv_gen.awk

MFC r318860:
Declare the "snd_fxdiv_table" once. This shaves around 24Kbytes of
binary data from sound.ko and the kernel.

FreeBSD — stable/10/sys/dev/sound/pcm buffer.c, stable/10/sys/tools/sound snd_fxdiv_gen.awk

MFC r318860:
Declare the "snd_fxdiv_table" once. This shaves around 24Kbytes of
binary data from sound.ko and the kernel.

FreeBSD — stable/11/sys/dev/sound/pcm buffer.c, stable/11/sys/tools/sound snd_fxdiv_gen.awk

MFC r318860:
Declare the "snd_fxdiv_table" once. This shaves around 24Kbytes of
binary data from sound.ko and the kernel.

FreeBSD — head/lib/libc/sys getdirentries.2

Update getdirentries(2) page for new struct dirent layout.

Sponsored by:        The FreeBSD Foundation
Delta File
+6 -5 head/lib/libc/sys/getdirentries.2
+6 -5 1 file

FreeBSD — head/tests/sys/kern unix_seqpacket_test.c

Send all of `data`, not just a portion of it

It was sending only a long's worth (4 or 8 bytes) of data previously
(instead of the entire buffer) via send(2).

MFC after:        1 week
Reported by:        Coverity
CID:                1229966, 1229967, 1230004, 1230005
Sponsored by:        Dell EMC Isilon

FreeBSD — head/tests/sys/netinet tcp_user_cookie.c

Initial `srv` before using it in bind(2)

MFC after:        3 days
Reported by:        Coverity
CID:                1357526
Sponsored by:        Dell EMC Isilon

FreeBSD — head/tests/sys/file newfileops_on_fork_test.c

Don't leak accept_fd on thread completion

MFC after:        3 days
Reported by:        Coverity
CID:                1296068
Sponsored by:        Dell EMC Isilon

FreeBSD — head/tests/sys/file newfileops_on_fork_test.c

Use main(void) instead of main(argc __unused, argv __unused)

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/tests/sys/file newfileops_on_fork_test.c

Use an exit code of 1 instead of -1 for reasons noted in r319056

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/tests/sys/file ftruncate_test.c

Create a deterministic file in the kyua sandbox, instead of a
temporary file outside the kyua sandbox

This helps ensure that the file is removed at test exit, and as
a side effect, cures a warning about umasks with Coverity.

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/sys/amd64/linux linux.h

In r246085 some bits that are MI movied out into headers in compat/linux,
but I missed that when I commited x86_64 Linuxulator. So remove the duplicates.

MFC after:        1 week
Delta File
+0 -22 head/sys/amd64/linux/linux.h
+0 -22 1 file

FreeBSD — head/tests/sys/file ftruncate_test.c

tests/sys/file/ftruncate_test: use an exit code of 1 instead
of -1 with err*(3).

An exit code of -1 is implementation defined -- it's best to stick
with something well-defined (1).

MFC after:        3 days
Sponsored by:        Dell EMC Isilon
Delta File
+16 -16 head/tests/sys/file/ftruncate_test.c
+16 -16 1 file

FreeBSD — head/sys/mips/atheros ar71xxreg.h

[ar71xx] undo read-after-write to flush; some bus devices dislike this.

This broke the PCI fixup on at least the AR7240 + AR9280 reference design
board that I have.

Tested:

* Atheros AP93 reference design - AR7240 + AR9280
Delta File
+7 -6 head/sys/mips/atheros/ar71xxreg.h
+7 -6 1 file

FreeBSD — head/lib/libc/tests/nss gethostby_test.c

hostent_test_getaddrinfo_eq(..): call freeaddrinfo on `ai` when done

This plugs a leak of memory allocated via getaddrinfo.

MFC after:        1 week
Reported by:        Coverity
CID:                1346866
Sponsored by:        Dell EMC Isilon

FreeBSD — head/sys/compat/linux linux_misc.c, head/sys/conf config.mk

On success, getrandom() Linux system call returns the number of bytes that
were copied to the buffer supplied by the user.

Also fix getrandom() if Linuxulator modules are built without the kernel.

PR:                219464
Submitted by:        Maciej Pasternacki
Reported by:        Maciej Pasternacki
MFC after:        1 week

FreeBSD — head/sys/modules/linux Makefile, head/sys/modules/linux64 Makefile

Strip _binary_linux_locore_o_size from ${VDSO}.so as it is a low absolute
symbol, and this breaks symbol lookup in ddb.

Requested by:        bde@

MFC after:        1 week

FreeBSD — head/lib/libc/tests/nss gethostby_test.c

hostent_test_getnameinfo_eq(..): initialize found_a_host to false

MFC after:        1 week
Reported by:        Coverity
CID:                1368943
Sponsored by:        Dell EMC Isilon

FreeBSD — stable/11/lib/libkvm Makefile

MFC r315698:

libkvm: bump WARNS to 6 after recent commits done to resolve warnings issues

Tested with:        make tinderbox; clang 4.0.0 (amd64), gcc 4.2.1/6.3.0 (amd64)
Delta File
+1 -1 stable/11/lib/libkvm/Makefile
+1 -1 1 file

FreeBSD — head/lib/libc/tests/nss Makefile

Bump WARNS from 1 to 3 after recent commits to fix warnings in the
directory.

Tested with:        clang 4.0, gcc 4.2.1, gcc 6.3.0
MFC after:        1 week
Sponsored by:        Dell EMC Isilon
Delta File
+1 -1 head/lib/libc/tests/nss/Makefile
+1 -1 1 file

FreeBSD — head/lib/libc/tests/nss gethostby_test.c getaddrinfo_test.c

Push `snapshot_file` copying down into run_tests function, and mark snapshot_file
const char *.

This fixes a bogus set of errors from gcc about strdup not being allowed a NULL
argument.

MFC after:        1 week
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/msun Makefile Symbol.map, head/lib/msun/man sincos.3

Implement sincos, sincosf, and sincosl.
The primary benefit of these functions is that argument
reduction is done once instead of twice in independent
calls to sin() and cos().

* lib/msun/Makefile:
  . Add s_sincos[fl].c to the build.
  . Add sincos.3 documentation.
  . Add appropriate MLINKS.

* lib/msun/Symbol.map:
  . Expose sincos[fl] symbols in dynamic libm.so.

* lib/msun/man/sincos.3:
  . Documentation for sincos[fl].

* lib/msun/src/k_sincos.h:
  . Kernel for sincos() function.  This merges the individual kernels
    for sin() and cos().  The merger offered an opportunity to re-arrange
    the individual kernels for better performance.

* lib/msun/src/k_sincosf.h:
   . Kernel for sincosf() function.  This merges the individual kernels
     for sinf() and cosf(). The merger offered an opportunity to re-arrange
     the individual kernels for better performance.

    [29 lines not shown]

FreeBSD — head/lib/libc/tests/nss getaddrinfo_test.c

Fix a -Wunused-but-set-variable warning reported by gcc 6.3.0

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss gethostby_test.c

Fix -Wunused and -Wshadow warnings

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getgr_test.c

getgr_test: fix -Wunused warnings

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getpw_test.c

getpw_test: fix -Wunused warnings

- Mark unused parameters __unused.
- Put dump_passwd under DEBUG as it's only used in that case.

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss gethostby_test.c

gethostby_test: fix multiple warning types

- Fix -Wmissing-declaration warning by staticizing run_tests.
- Fix -Wsign-compare warnings by casting size_t types to int
  for comparisons.

Reindent some of the code in sdump_hostent(..) to accomodate the
overall changes.

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getproto_test.c

getproto_test: fix -Wunused warnings

Mark unused parameters __unused in functions.

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getrpc_test.c

getrpc_test: fix -Wunused warnings

- Mark unused function parameters unused.
- Remove an unused function prototype.

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getserv_test.c

getserv_test: mark unused parameters __unused to fix corresponding
warnings

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getusershell_test.c

getusershell_test: mark mdata parameter in compare_usershell __unused

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getaddrinfo_test.c

getaddrinfo_test: mark unused function parameters __unused to fix -Wunused
warnings

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getproto_test.c

getproto_test: fix -Wmissing-prototypes and -Wsign-compare warnings

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getrpc_test.c

getrpc_test: fix -Wmissing-prototypes and -Wsign-compare warnings

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getaddrinfo_test.c

getaddrinfo_test: fix -Wsign-compare warnings

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getserv_test.c

getserv_test: fix -Wsign-compare and -Wmissing-prototypes warnings

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — stable/10/release/tools vmimage.subr, stable/11/release/tools vmimage.subr

MFC r318872:
 Enable DHCP and IPv6 autoconfig on non-cloud VM images.

PR:                203653
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/lib/libc/tests/nss getusershell_test.c

getusershell_test: staticize run_tests(..) to fix warnings

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getgr_test.c

Fix -Wsign-compare warnings

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss getaddrinfo_test.c getgr_test.c

Staticize functions and remove unused variables to aid with bumping WARNS

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/lib/libc/tests/nss Makefile

Sort make variables to suit style.Makefile(5)

This is being done prior to functional changes.

MFC after:        3 days
Sponsored by:        Dell EMC Isilon
Delta File
+8 -7 head/lib/libc/tests/nss/Makefile
+8 -7 1 file

FreeBSD — head/lib/libc/tests/nss gethostby_test.c getgr_test.c

lib/libc/tests/nss: use calloc appropriately

The pattern used prior to this commit was `calloc(1, n * sizeof(type))`;
the pattern that should be used however is `calloc(n, sizeof(type))`.

MFC after:        3 days
Sponsored by:        Dell EMC Isilon

FreeBSD — head/usr.sbin/pw/tests pw_groupshow_test.sh pw_usershow_test.sh

pw: add some basic testcases for groupshow and usershow

- groupshow: test out -a/-g/-n .
- usershow: test out -a/-n/-u .

MFC after:        1 week
Sponsored by:        Dell EMC Isilon

FreeBSD — stable/10/sys/boot Makefile.inc, stable/10/sys/boot/efi/boot1 Makefile

MFC r309412,r316109,r316132:

r309412 (by imp):

dd is currently a bootstrap tool. It really doesn't have any business
being a bootstrap tool. However, for reproducible build output,
FreeBSD added dd status=none because it was otherwise difficult to
suppress the status information, but retain any errors that might
happen. There's no real reason that dd has to be a build tool, other
than we use status=none unconditional. Remove dd from a bootstrap tool
entirely by only using status=none when available. This may also help
efforts to build the system on non-FreeBSD hosts as well.

r316109:

Don't hardcode input files for stage 1/2 bootloaders; use .ALLSRC instead

This is a better pattern to follow when creating the bootloaders and doing
the relevant space checks to make sure that the sizes aren't exceeded (and
thus, copy-pasting is a bit less error prone).

r316132:

Parameterize out 7680 (15 * 512) as BOOT2SIZE, similar to sys/boot/i386/zfsboot/...


    [3 lines not shown]

FreeBSD — stable/11 Makefile.inc1, stable/11/sys/boot Makefile.inc

MFC r309412,r316109,r316132:

r309412 (by imp):

dd is currently a bootstrap tool. It really doesn't have any business
being a bootstrap tool. However, for reproducible build output,
FreeBSD added dd status=none because it was otherwise difficult to
suppress the status information, but retain any errors that might
happen. There's no real reason that dd has to be a build tool, other
than we use status=none unconditional. Remove dd from a bootstrap tool
entirely by only using status=none when available. This may also help
efforts to build the system on non-FreeBSD hosts as well.

r316109:

Don't hardcode input files for stage 1/2 bootloaders; use .ALLSRC instead

This is a better pattern to follow when creating the bootloaders and doing
the relevant space checks to make sure that the sizes aren't exceeded (and
thus, copy-pasting is a bit less error prone).

r316132:

Parameterize out 7680 (15 * 512) as BOOT2SIZE, similar to sys/boot/i386/zfsboot/...


    [3 lines not shown]

FreeBSD — stable/10/lib/libcam camlib.c

MFC r316131:

Fix up r316081 by using nitems(cam_errbuf) instead of sizeof(cam_errbuf)

Part of my original reasoning as far as converting the snprintf
calls was to permit switching over from char[] to wchar_t[] in the
future, as well as futureproof in case cam_errbuf's size was ever
changed.

Unfortunately, my approach was bugged because it conflated the
number of items with the size of the buffer, instead of the number of
elements being a fixed size != 1 byte.

Use nitems(..) instead which counts the quantity of items of a specific
type, as opposed to an unqualified sizeof(..) (which assumes that the
number of characters is equal to the buffer size).

Noted by:        cem
Delta File
+27 -27 stable/10/lib/libcam/camlib.c
+27 -27 1 file

FreeBSD — head/share/mk bsd.init.mk

Fix INSTALL_AS_USER with external nsswitch databases

The INSTALL_AS_USER option tells "install" to use the current
user name as the owner of the installed file.  The "install"
command executed by the build is statically linked, so it does not
load nsswitch modules, such as nss_ldap.so, so it fails when
the user is only defined in such a database.

Fix it to use the current UID instead of user name.  This works
for all users.  I expect it is also slightly more efficient.

Reviewed by:        sjg
MFC after:        3 days
Sponsored by:        Dell EMC
Differential Revision:        https://reviews.freebsd.org/D10862
Delta File
+1 -9 head/share/mk/bsd.init.mk
+1 -9 1 file

FreeBSD — stable/11/lib/libcam camlib.c

MFC r316131:

Fix up r316081 by using nitems(cam_errbuf) instead of sizeof(cam_errbuf)

Part of my original reasoning as far as converting the snprintf
calls was to permit switching over from char[] to wchar_t[] in the
future, as well as futureproof in case cam_errbuf's size was ever
changed.

Unfortunately, my approach was bugged because it conflated the
number of items with the size of the buffer, instead of the number of
elements being a fixed size != 1 byte.

Use nitems(..) instead which counts the quantity of items of a specific
type, as opposed to an unqualified sizeof(..) (which assumes that the
number of characters is equal to the buffer size).

Noted by:        cem
Delta File
+27 -27 stable/11/lib/libcam/camlib.c
+27 -27 1 file