Displaying 1 50 of 39,368 commits (0.009s)

DragonFlyBSD — usr.bin/limits limits.c

limits(1): Add missing 'break'.
Delta File
+1 -1 usr.bin/limits/limits.c
+1 -1 1 file

DragonFlyBSD — usr.bin/limits limits.c

limits(1): Add missing 'break'.
Delta File
+1 -1 usr.bin/limits/limits.c
+1 -1 1 file

DragonFlyBSD — usr.bin/ktrdump ktrdump.c

ktrdump(8): Fix wrongly placed 'break' for floating point unpacking.
Delta File
+1 -1 usr.bin/ktrdump/ktrdump.c
+1 -1 1 file

DragonFlyBSD — usr.bin/ktrdump ktrdump.c

ktrdump(8): Fix wrongly placed 'break' for floating point unpacking.
Delta File
+1 -1 usr.bin/ktrdump/ktrdump.c
+1 -1 1 file

DragonFlyBSD — sys/dev/drm/include/linux log2.h

drm/linux: Improve linux/log2.h

With newer GCC compilers it is no longer possible to easily detect bad
cases of ilog2() usage in drm shim, see:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72785

There is just a single use case of this macro in drm/radeon/radeon_device.c
for radeon_vm_size, it is already checked to be positive 2^N small number.
So simplify macro and just return 0 for n < 2.

While there, adjust logic to use proper fls(3) and flsll(3) functions
based on integer size (previously both cases where calling flsl(3)).
Delta File
+7 -41 sys/dev/drm/include/linux/log2.h
+7 -41 1 file

DragonFlyBSD — usr.bin/gzip gzip.c

gzip(1): Add some __attribute__((__noreturn__)).
Delta File
+2 -2 usr.bin/gzip/gzip.c
+2 -2 1 file

DragonFlyBSD — share/man/man5 make.conf.5, sys/boot/pc32/boot2 Makefile

Fix few typos.

Spotted-by: swildner

DragonFlyBSD — lib/libpam/modules/pam_exec Makefile

pam_exec(8): Raise WARNS to 3.

DragonFlyBSD — sbin/fsdb fsdb.c fsdbutil.c

fsdb(8): Fix some -Wformat warnings and raise WARNS to 2.
Delta File
+9 -7 sbin/fsdb/fsdb.c
+7 -6 sbin/fsdb/fsdbutil.c
+1 -1 sbin/fsdb/Makefile
+17 -14 3 files

DragonFlyBSD — sbin/umount umount.c

umount(8): Add missing braces.
Delta File
+2 -1 sbin/umount/umount.c
+2 -1 1 file

DragonFlyBSD — usr.sbin/mfiutil Makefile

mfiutil(8): Remove -fno-builtin-strftime from CFLAGS.

We don't need this.
Delta File
+0 -2 usr.sbin/mfiutil/Makefile
+0 -2 1 file

DragonFlyBSD — include stdio.h monetary.h

Provide __{printf,scanf,strfmon,strftime}like() for builtin functions too.

We want our formats checked in -fno-builtin builds as well.
Delta File
+15 -9 include/stdio.h
+2 -1 include/monetary.h
+1 -1 include/time.h
+18 -11 3 files

DragonFlyBSD — share/mk bsd.sys.mk

bsd.sys.mk: Set -Werror only for compilers that have the warnings fixed.

This reverts part of b399af1115fa4d2d29e5b5e59eb3a5c3087dccda.
Delta File
+2 -2 share/mk/bsd.sys.mk
+2 -2 1 file

DragonFlyBSD — bin/ln ln.c, sbin/hammer hammer.c

Add __attribute__((__noreturn__)) to a number of usage() like functions.

These were not caught in the -Wsuggest-attribute=noreturn cleanup
because they were already static at that point. There are likely
more such cases but I don't know how to find them systematically.

DragonFlyBSD — bin/ed ed.h

ed(1): Add three __attribute__((__noreturn__)).

I had missed them in a31274954f5c10e5a80969dcfc719d665f36a26c.
Delta File
+3 -3 bin/ed/ed.h
+3 -3 1 file

DragonFlyBSD — usr.sbin/pfctl pfctl_optimize.c

pfctl(8): Fix two wrong conditions.

Caught by gcc80's -Wtautological-compare option.
Delta File
+2 -2 usr.sbin/pfctl/pfctl_optimize.c
+2 -2 1 file

DragonFlyBSD — usr.sbin/pfctl pfctl_optimize.c

pfctl(8): Fix two wrong conditions.

Caught by gcc80's -Wtautological-compare option.
Delta File
+2 -2 usr.sbin/pfctl/pfctl_optimize.c
+2 -2 1 file

DragonFlyBSD — include pthread.h, lib/libthread_xu/thread thr_printf.c

libthread_xu: Fix issues detected by gcc80.

The changes to <pthread.h> all deal with -Wnonnull-compare warnings,
which are issued when a function has a NULL check for a parameter that
at the same time is marked with __attribute__((nonnull(...))), aka
__nonnull(...).

Such __nonnull() decoration only ever catches those cases where NULL is
passed directly to the function, but not any more indirect ways. What
makes matters worse is that in higher optimization levels (-O >= 2),
GCC will happily optimize out any NULL checks within the function for
these parameters.

This means that __nonnull() is generally inferior to a direct NULL check
in the function itself and if we have both, which newer GCCs warn about
with -Wnonnull-compare (that is part of -Wall), we should remove the
__nonnull().

This commit does that for all parameters which our libthread_xu checks
directly in the function. What remains are __nonnull() for parameters
which are _not_ checked in the functions, to at least catch cases where
NULL is passed directly. We should think about adding real checks for
those parameters too.

While here, add a "/* FALLTHROUGH */" comment in thr_printf.c which
fixes a -Wimplicit-fallthrough warning.

DragonFlyBSD — usr.sbin/mfiutil Makefile

mfiutil(8): Use MAN instead of MAN8.
Delta File
+1 -1 usr.sbin/mfiutil/Makefile
+1 -1 1 file

DragonFlyBSD — share/mk bsd.sys.mk

Revert "bsd.sys.mk: support -Wunused-local-typedef"

This reverts commit 14683bdb9c1d41c0d62dc7d11f3fd535973ad258.

It is no longer needed after 6954d52dca31dc7773729c0bf92e14fb1dab5aae.
Delta File
+0 -4 share/mk/bsd.sys.mk
+0 -4 1 file

DragonFlyBSD — gnu/usr.bin Makefile.cco, gnu/usr.bin/cc50 Makefile.version

gcc50: Move out manpage version handling.

The Makefile.cco should only affect global ones.

DragonFlyBSD — gnu/usr.bin Makefile.cco, gnu/usr.bin/cc47/c++ Makefile

gcc47: Move out manpage version handling.

The Makefile.cco should only affect global ones.

DragonFlyBSD — sys/dev/powermng/corepower corepower.c

corepower - Add kabylake support

* Add kabylake support (just the id needed)

DragonFlyBSD — etc remote

etc/remote: Fix ucom[234].
Delta File
+3 -3 etc/remote
+3 -3 1 file

DragonFlyBSD — etc remote

etc/remote: Fix ucom[234].
Delta File
+3 -3 etc/remote
+3 -3 1 file

DragonFlyBSD — sys/dev/misc/evdev input-event-codes.h

kernel/evdev: Whitespace correction in input-event-codes.h
Delta File
+21 -21 sys/dev/misc/evdev/input-event-codes.h
+21 -21 1 file

DragonFlyBSD — sys/dev/misc/evdev input-event-codes.h

kernel/evdev: Update input-event-codes.h

Taken-from: Linux

DragonFlyBSD — sbin/ipfw ipfw2.c ipfw.8, sys/net/ipfw ip_fw2.c ip_fw2.h

ipfw: Add icmpcodes support.

DragonFlyBSD — sys/platform/pc64/x86_64 busdma_machdep.c, sys/sys bus_dma.h

kernel - Fix busdma allocation bug

* Fix a bug where kmalloc() could be used to allocate DMA memory
  that the caller intends to be non-cacheable.

  If a non-cacheable tag is specified, bus_dma now uses contigmalloc.

* Use the bus_dmamap_t pointer to differentiate between kmalloc
  and contigmalloc allocated memory, instead of running tag tests.

  This is a bit of a hack, but its the easiest solution.

DragonFlyBSD — sys/bus/u4b/controller xhci_pci.c

kernel - xhci cleanup, lock attach

* Lock xhci during attach to avoid spurious interrupts from
  hitting the interrupt routine too early.

* Install interrupt after controller startup, but before
  the main usb code begins querying it.

* Cleanup syntax
Delta File
+36 -27 sys/bus/u4b/controller/xhci_pci.c
+36 -27 1 file

DragonFlyBSD — sys/dev/acpica acpi.c acpi_cpu_pstate.c, sys/kern subr_bus.c

kernel - Add a global priority hack for ACPI

* Allows ACPI to fully probe and attach all acpi devices before
  attaching any non-ACPI devices.

* May improve device attach stability.

* Currently only implemented at the top-level of the acpi
  device tree.
Delta File
+167 -3 sys/kern/subr_bus.c
+10 -1 sys/sys/kobj.h
+8 -2 sys/dev/acpica/acpi.c
+2 -1 sys/dev/acpica/acpi_cpu_pstate.c
+3 -0 sys/sys/bus.h
+2 -1 sys/dev/acpica/acpi_cpu.c
+13 -0 13 files not shown
+205 -8 19 files

DragonFlyBSD — sys/bus/smbus/ichiic ig4_iic.c

kernel - Handle ig4 controller startup errors

* Fail the attach on controller startup errors.  For some reason the
  dell xps 13 says there's I2C controller, but the controller appears
  to be permanente disabled and will refuse to enable.
Delta File
+9 -2 sys/bus/smbus/ichiic/ig4_iic.c
+9 -2 1 file

DragonFlyBSD — usr.sbin/cpucontrol amd10h.c cpucontrol.c

cpucontrol - Add amd10h support

* Add support for ryzen and later microcodes.

* Adds general support for AMD microcodes in their
  packed format.  No need to unpack AMD microcode any
  more, cpucontrol will parse the distribution file
  from AMD.

Taken-from: FreeBSD

DragonFlyBSD — share/man/man4 acpi.4, sys/config X86_64_GENERIC LINT64

kernel: Add acpi and a number of related drivers to our default config.

These are: gpio_acpi, gpio_intel, smbus and smbacpi. Leave
ichiic (aka ig4) commented out for now because it seems to have
issues with latest generation Intel CPUs.

Adjust the manual page a bit and remove an obsolete comment in LINT64.

In-discussion-with: dillon, ivadasz

DragonFlyBSD — sbin/mount_autofs mount_autofs.c

sbin/mount_autofs: Change include path from fs/ to vfs/

/usr/include/fs seems to exist as a symlink to vfs/,
but change include path to vfs.
Delta File
+1 -1 sbin/mount_autofs/mount_autofs.c
+1 -1 1 file

DragonFlyBSD — sbin Makefile, sbin/mount_autofs mount_autofs.c mount_autofs.8

sbin/mount_autofs: Port mount_autofs(8) from NetBSD

Christos added this to NetBSD, so why not for DragonFly.
One will write something simlar to this when porting autofs,
until autofs(5)/automount(8)/automountd(8) become usable enough.

While I try to minimize diff from FreeBSD for autofs userspace
by not making trivial style fixes, new things from NetBSD are
appreciated.

-o getargs support is dropped since unsupported on DragonFly.

DragonFlyBSD — sys/contrib/dev/ath/ath_hal/ar9300 ar9300_tx99_tgt.c

kernel/ath_hal: Add missing header to fix build with -Wundef.

DragonFlyBSD — sys/dev/netif/my if_my.c

kernel/my: Fix -Wundef.
Delta File
+1 -1 sys/dev/netif/my/if_my.c
+1 -1 1 file

DragonFlyBSD — share/initrd/bin Makefile, share/initrd/sbin Makefile

s/NO_MAN/NOMAN/ in various Makefiles.

DragonFlyBSD — bin/notty Makefile, games/snake/snake Makefile

Simplify some Makefiles.

If there is just one source file that is named ${PROG}.c, SRCS does
not need to be set.

DragonFlyBSD — test/dsched dsched_stats.c Makefile, test/dsched_fq fqstats.c Makefile

Remove test/dsched*. This doesn't build anymore after 3573cf7bf66147.

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

January 14, 2018 snapshot from http://pciids.sourceforge.net/
Delta File
+190 -26 share/misc/pci_vendors
+190 -26 1 file

DragonFlyBSD — sys/vfs/autofs autofs_vfsops.c

    sys/vfs/autofs: prevent assert on unmount.
    
    Bring in below commit from NetBSD/autofs. This hasn't existed in
    FreeBSD and DragonFly. This at least avoids potential panic via
    assertion failure on unmount like PR 3062. Note that the assertion
    in autofs_node_delete() is good. There might be mkdir related bug.
    
    The GitHub link below may not be a valid URL in the future.
    
    
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/fs/autofs/autofs_vfsops.c.diff?r1=1.2&r2=1.3
    (https://github.com/NetBSD/src/commit/59fdd9b6d94c045e89f22f06c9a6f6d6c0fd60f2)
Delta File
+5 -0 sys/vfs/autofs/autofs_vfsops.c
+5 -0 1 file

DragonFlyBSD — sys/dev/netif/oce oce_if.c, sys/dev/raid/mps mps_sas.c mpsvar.h

kernel: Fix some -Wundef warnings in oce(4) and mps(4).

__FreeBSD_version is not defined in DragonFly, so make it clearer
which path we take.

DragonFlyBSD — usr.sbin/ac ac.c, usr.sbin/arp arp.c

Add __attribute__((__noreturn__)) to various function prototypes in usr.sbin/.

This general cleanup is useful in various ways. It helps the compiler
optimize better and it also helps later GCCs detect better when to give
-Wimplicit-fallthrough warnings and when not.

Found-with: -Wsuggest-attribute=noreturn

DragonFlyBSD — sys/dev/misc/syscons syscons.c

syscons - Skip drawing of the border, when switching to a graphics vty.

* When the target vty in a vty switch is in graphics mode, and we have
  a dumb framebuffer (sc->fbi != NULL), we definitely don't need to
  call sc_set_border().
Delta File
+2 -1 sys/dev/misc/syscons/syscons.c
+2 -1 1 file

DragonFlyBSD — sys/dev/misc/syscons syscons.c

syscons - Use COL and ROW #define constants.
Delta File
+3 -3 sys/dev/misc/syscons/syscons.c
+3 -3 1 file

DragonFlyBSD — usr.sbin/watchdogd watchdogd.c

watchdogd(8): Staticize.
Delta File
+5 -5 usr.sbin/watchdogd/watchdogd.c
+5 -5 1 file

DragonFlyBSD — usr.sbin/traceroute6 traceroute6.c

traceroute6(8): Staticize and remove unused variables/functions.
Delta File
+49 -68 usr.sbin/traceroute6/traceroute6.c
+49 -68 1 file

DragonFlyBSD — usr.sbin/traceroute traceroute.c

traceroute(8): Staticize.
Delta File
+51 -51 usr.sbin/traceroute/traceroute.c
+51 -51 1 file