dragonfly.git
6 years agosys/vfs/autofs: Change autofs_mount::am_lock to use mutex(9)
Tomohiro Kusumi [Tue, 13 Feb 2018 22:13:13 +0000 (07:13 +0900)]
sys/vfs/autofs: Change autofs_mount::am_lock to use mutex(9)

6 years agosys/vfs/autofs: Change autofs_node::an_vnode_lock to use mutex(9)
Tomohiro Kusumi [Tue, 13 Feb 2018 21:57:32 +0000 (06:57 +0900)]
sys/vfs/autofs: Change autofs_node::an_vnode_lock to use mutex(9)

6 years agohammer(8): Remove include guards in a .c file.
Sascha Wildner [Tue, 13 Feb 2018 14:06:25 +0000 (15:06 +0100)]
hammer(8): Remove include guards in a .c file.

6 years agosys/vfs/autofs: Remove #if0'd export related code
Tomohiro Kusumi [Tue, 13 Feb 2018 18:33:30 +0000 (03:33 +0900)]
sys/vfs/autofs: Remove #if0'd export related code

Exporting is never going to be implemented.

6 years agosys/vfs/autofs: Cleanups
Tomohiro Kusumi [Tue, 13 Feb 2018 17:10:39 +0000 (02:10 +0900)]
sys/vfs/autofs: Cleanups

6 years agobinutils227: Add support for DWARF-4 line number tables.
zrj [Tue, 13 Feb 2018 09:56:13 +0000 (11:56 +0200)]
binutils227: Add support for DWARF-4 line number tables.

Backport from upstream trunk the c83344582375e65643c5efe68b3739e87db482f3

Work around the ld.gold issue when '.rela.debug_line' is populated.
We use ld.gold as default system linker that sigbus on DWARF-4 tables.
LDVER=ld.bfd seems to be unaffected, apply 2018-02-03 fix only for 227.
No functional change for default non-debug buildworlds (only for gcc80).

6 years ago<unistd.h>: Remove commented out ctermid() prototype. It's not needed here.
Sascha Wildner [Mon, 12 Feb 2018 20:05:42 +0000 (21:05 +0100)]
<unistd.h>: Remove commented out ctermid() prototype. It's not needed here.

6 years agoetc/autofs: Cleanup trailing whitespaces
Tomohiro Kusumi [Tue, 13 Feb 2018 02:28:15 +0000 (11:28 +0900)]
etc/autofs: Cleanup trailing whitespaces

This generates diff from FreeBSD.

6 years agoetc/autofs: Sync special_media with FreeBSD
Tomohiro Kusumi [Mon, 12 Feb 2018 10:24:24 +0000 (19:24 +0900)]
etc/autofs: Sync special_media with FreeBSD

6 years agousr.sbin/fstyp: Bring in exFAT support from FreeBSD
Tomohiro Kusumi [Mon, 12 Feb 2018 10:22:40 +0000 (19:22 +0900)]
usr.sbin/fstyp: Bring in exFAT support from FreeBSD

exFAT support was added by below FreeBSD@GitHub commit in 2017.
f72e57262fe11f1cc7ffc3b3000bc5747467b8c3

6 years agotmpfs - Fix data loss issues
Matthew Dillon [Sun, 11 Feb 2018 06:18:19 +0000 (22:18 -0800)]
tmpfs - Fix data loss issues

* Fix a data loss issue that can occur when vnodes are cycled.  This
  can be replicated by setting kern.maxvnodes to a fairly low value.
  Vnode recycling does not necessarily issue a vinvalbuf() when clean
  pages are present, which tmpfs needs to retain.

* Fix a data loss issue when swap becomes full or when the system has
  no swap configured.  When tmpfs tries to flush to swap and fails,
  pages can remain associated with the vnode after the vinvalbuf()
  call, and then lost when the vnode is recycled.

* The above fixes are accomplished by call vinvalbuf() on vnode deactivation
  to make sure that all buffers have been flushed, and then moving any
  pages that remain to tn_aobj.

  The pages are moved back when the vnode is reinstantiated and an open(),
  read(), write(), or setattr (i.e.  truncation or extension) is called.

  We try to avoid moving the pages back if the vnode is merely *stat()d
  or deleted.

* Use cluster_read() by default to try to improve read throughput when
  pages are swap-backed.

Reported-by: zrj, marino
6 years agokernel - syntax
Matthew Dillon [Sun, 11 Feb 2018 06:17:31 +0000 (22:17 -0800)]
kernel - syntax

* Improve a formatting issue.

6 years agokernel - Fix two rare namecache bugs
Matthew Dillon [Sun, 11 Feb 2018 06:11:18 +0000 (22:11 -0800)]
kernel - Fix two rare namecache bugs

* Fix calculations which use the vfscache_negs global.  This global
  is somewhat heuristical and can values which are a bit off, including
  0.  Copy to a local and limit the range, fixing a divide-by-zero
  bug and a negative-number handling bug.

* Fix a bug in the handling of a race in _cache_cleanneg().  We were
  unlocking the ncp but failing to drop it, leaving it with a ref.
  The accumulating namecache records prevent umount from succeeding.

  This race can only occur regularly when kern.maxvnodes is set to
  a low value.

6 years agoif: Allow user to override software queue length.
Sepherosa Ziehau [Sat, 10 Feb 2018 02:37:16 +0000 (10:37 +0800)]
if: Allow user to override software queue length.

6 years agoif: Remove ifq maxlen fixup in ifinit.
Sepherosa Ziehau [Sat, 10 Feb 2018 00:19:49 +0000 (08:19 +0800)]
if: Remove ifq maxlen fixup in ifinit.

It will not work, and no drivers in the base require this kind of fixup.

6 years ago<fcntl.h>: Add #if 0'd prototypes for posix_fa{dvise,llocate}().
Sascha Wildner [Thu, 8 Feb 2018 10:16:52 +0000 (11:16 +0100)]
<fcntl.h>: Add #if 0'd prototypes for posix_fa{dvise,llocate}().

6 years agosyscall.9: Explain better how errno and return value are set in userland.
Sascha Wildner [Wed, 7 Feb 2018 14:06:18 +0000 (15:06 +0100)]
syscall.9: Explain better how errno and return value are set in userland.

In-discussion-with: peeterm, zrj

6 years agoUse 'null' and 'NULL' instead of 'nil' in some manual pages.
Sascha Wildner [Tue, 6 Feb 2018 08:49:30 +0000 (09:49 +0100)]
Use 'null' and 'NULL' instead of 'nil' in some manual pages.

6 years agokernel - Do not panic on media size of zero in disk_probe()
Matthew Dillon [Sun, 4 Feb 2018 19:17:47 +0000 (11:17 -0800)]
kernel - Do not panic on media size of zero in disk_probe()

* Do not panic if the media size is zero in disk_probe().

6 years agokernel - Fix CAM peripheral error handling
Matthew Dillon [Sun, 4 Feb 2018 19:13:03 +0000 (11:13 -0800)]
kernel - Fix CAM peripheral error handling

* cam_periph.c was bcopy()ing the *ENTIRE* saved ccb back to the
  original when working through certain error results.  This completely
  destroys linked list entry fields.

* Refactor by hacking a restore_ccb() function which does not copy
  over the link list entry fields or the callout structure.

* Fixes panics with CDs, particularly audio CDs, and can also fix
  other panics.

  Panics are related to situations where an AHCI error or errors occur
  while multiple CCBs are queued.

* Also always initialize the state tracking field for various scsi
  periphals to ensure that stale data does not result in improper
  processing in scsi/*.c's *done() functions.

Reported-by: htse
6 years agoahci - Improve debug output
Matthew Dillon [Sun, 4 Feb 2018 19:01:49 +0000 (11:01 -0800)]
ahci - Improve debug output

* TFES errors now also report the slot and ccb pointer

6 years agobsd.sys.mk: Don't exclude -Wformat-extra-args in FORMAT_AUDIT builds.
Sascha Wildner [Sun, 4 Feb 2018 12:01:46 +0000 (13:01 +0100)]
bsd.sys.mk: Don't exclude -Wformat-extra-args in FORMAT_AUDIT builds.

Not sure why this was originally added but we surely want to see them.

Reported-by: zrj
6 years agogdb/lvm: Fix two -Wformat-extra-args warnings.
Sascha Wildner [Sun, 4 Feb 2018 11:59:59 +0000 (12:59 +0100)]
gdb/lvm: Fix two -Wformat-extra-args warnings.

The gdb one was taken from upstram and the lvm one is in __DragonFly__
specific code.

6 years agopthread_join.3: Add a missing header in the SYNOPSIS.
Sascha Wildner [Sat, 3 Feb 2018 20:41:20 +0000 (21:41 +0100)]
pthread_join.3: Add a missing header in the SYNOPSIS.

6 years agocpucontrol(8): Fix -e handling.
zrj [Sat, 3 Feb 2018 08:56:45 +0000 (10:56 +0200)]
cpucontrol(8): Fix -e handling.

We do not have implemented CPUCTL_EVAL_CPU_FEATURES in cpuctl(4) yet.

6 years agoFix a few mdoc issues.
Sascha Wildner [Sat, 3 Feb 2018 08:00:39 +0000 (09:00 +0100)]
Fix a few mdoc issues.

6 years agonewsyslog.8: Comment out another zstd reference (and fix a typo).
Sascha Wildner [Sat, 3 Feb 2018 08:00:23 +0000 (09:00 +0100)]
newsyslog.8: Comment out another zstd reference (and fix a typo).

6 years agocallout.9: Remove some obsolete MLINKS.
Sascha Wildner [Sat, 3 Feb 2018 07:57:40 +0000 (08:57 +0100)]
callout.9: Remove some obsolete MLINKS.

6 years ago[fish] fix style
Eitan Adler [Sat, 3 Feb 2018 04:58:31 +0000 (20:58 -0800)]
[fish] fix style

6 years ago[fish] don't allow users to request cards they have made books for
Eitan Adler [Sat, 3 Feb 2018 04:51:45 +0000 (20:51 -0800)]
[fish] don't allow users to request cards they have made books for

It is not technically legal to request a card you don't have in your
hand, even if you have the book for it. This really only matters if
you're playing with more than one deck, which fish(6) does not support,
but since this is a critical bug, fix it.

6 years agonewsyslog(8): Add missing fallthrough.
zrj [Fri, 2 Feb 2018 20:15:20 +0000 (22:15 +0200)]
newsyslog(8): Add missing fallthrough.

6 years agoNormalize libcrypto and libssl DPADD variable names and adjust Makefiles.
Sascha Wildner [Fri, 2 Feb 2018 15:24:08 +0000 (16:24 +0100)]
Normalize libcrypto and libssl DPADD variable names and adjust Makefiles.

6 years agodrill(1): Use strdup() for known strings.
zrj [Tue, 30 Jan 2018 16:47:48 +0000 (18:47 +0200)]
drill(1): Use strdup() for known strings.

6 years agolibarchive: Use memcpy() when constructing buffers.
zrj [Tue, 30 Jan 2018 16:25:54 +0000 (18:25 +0200)]
libarchive: Use memcpy() when constructing buffers.

Avoid common mistakes that strncpy() will terminate the string.
Results here are not expected to be NULL terminated.

6 years agoee(1): Fix ispell_op().
zrj [Tue, 30 Jan 2018 18:36:08 +0000 (20:36 +0200)]
ee(1): Fix ispell_op().

Do not pass NULL to sprintf, use tempname returned by mkstemp(3).

6 years agotruncate(1): Add support for T.
zrj [Wed, 31 Jan 2018 12:08:56 +0000 (14:08 +0200)]
truncate(1): Add support for T.

While there, add fallthrough.

6 years agotput(1): Constify.
zrj [Wed, 31 Jan 2018 12:06:19 +0000 (14:06 +0200)]
tput(1): Constify.

While there, add fallthrough.

6 years agors(1): Staticize.
zrj [Wed, 31 Jan 2018 12:02:08 +0000 (14:02 +0200)]
rs(1): Staticize.

While there, add few fallthrough.

6 years agojot(1): General cleanup.
zrj [Wed, 31 Jan 2018 11:47:02 +0000 (13:47 +0200)]
jot(1): General cleanup.

  * staticize
  * constify
  * add fallthrough

6 years agoident(1): Use NULL instead of 0.
zrj [Wed, 31 Jan 2018 11:33:32 +0000 (13:33 +0200)]
ident(1): Use NULL instead of 0.

While there, add few cases of fallthrough (few need more investigation).

6 years agoctags(1): Add missing fallthrough.
zrj [Wed, 31 Jan 2018 11:16:43 +0000 (13:16 +0200)]
ctags(1): Add missing fallthrough.

The -v option implies the -x.

6 years agocolcrt(1): Add missing fallthrough.
zrj [Wed, 31 Jan 2018 11:13:12 +0000 (13:13 +0200)]
colcrt(1): Add missing fallthrough.

6 years agoat(1): Add missing fallthrough.
zrj [Wed, 31 Jan 2018 11:04:08 +0000 (13:04 +0200)]
at(1): Add missing fallthrough.

While there, constify struct.

6 years agokgdb(1): Avoid -Wformat-truncation warning.
zrj [Tue, 30 Jan 2018 21:22:43 +0000 (23:22 +0200)]
kgdb(1): Avoid -Wformat-truncation warning.

No functional change.

6 years agowindow(1): Add some format safety.
zrj [Tue, 30 Jan 2018 19:50:13 +0000 (21:50 +0200)]
window(1): Add some format safety.

While there, add some FALLTHROUGH too.

6 years agonetstat(1): Add some formats safety.
zrj [Tue, 30 Jan 2018 19:13:11 +0000 (21:13 +0200)]
netstat(1): Add some formats safety.

No functional change intended.

6 years agosort(1): Use asprintf(3) when fixing legacy options.
zrj [Tue, 30 Jan 2018 14:43:43 +0000 (16:43 +0200)]
sort(1): Use asprintf(3) when fixing legacy options.

While there, make fix_obsolete_keys() static.

6 years agotzsetup(8): Suppress -Wformat-overflow warning.
zrj [Tue, 30 Jan 2018 20:31:52 +0000 (22:31 +0200)]
tzsetup(8): Suppress -Wformat-overflow warning.

6 years agosystat(8): Add some formats safety.
zrj [Tue, 30 Jan 2018 19:32:45 +0000 (21:32 +0200)]
systat(8): Add some formats safety.

Mainly to suppress -Wformat-overflow

6 years agosliplogin(8): Add some formats safety.
zrj [Tue, 30 Jan 2018 20:28:21 +0000 (22:28 +0200)]
sliplogin(8): Add some formats safety.

Use %hu for printing ipv4 address octects and reduce login name lenght a
bit to allow for prepending path.

6 years agosicontrol(8): Add few fallthrough.
zrj [Wed, 31 Jan 2018 12:39:00 +0000 (14:39 +0200)]
sicontrol(8): Add few fallthrough.

6 years agoroute(8): Add some __attribute__((__noreturn__)).
zrj [Wed, 31 Jan 2018 10:52:47 +0000 (12:52 +0200)]
route(8): Add some __attribute__((__noreturn__)).

6 years agorestore(8): Add missing fallthrough.
zrj [Wed, 31 Jan 2018 10:44:03 +0000 (12:44 +0200)]
restore(8): Add missing fallthrough.

While there, add few hints for a compiler, panic() can return.

6 years agopflogd(8): Add few fallthrough.
zrj [Wed, 31 Jan 2018 12:22:40 +0000 (14:22 +0200)]
pflogd(8): Add few fallthrough.

6 years agoppp(8): Add few fallthrough.
zrj [Wed, 31 Jan 2018 12:29:13 +0000 (14:29 +0200)]
ppp(8): Add few fallthrough.

6 years agoipfw(8): Add missing fallthrough.
zrj [Wed, 31 Jan 2018 10:28:56 +0000 (12:28 +0200)]
ipfw(8): Add missing fallthrough.

6 years agoipfw3(8): Increase stack storage for linename.
zrj [Tue, 30 Jan 2018 18:10:00 +0000 (20:10 +0200)]
ipfw3(8): Increase stack storage for linename.

To accommodate fully the "Line %d" format and avoid buffer overflow.
Do the same some for ip6fw(8).

6 years agoifconfig(8): Use strlcpy() to set the ifr_name field.
zrj [Tue, 30 Jan 2018 17:51:26 +0000 (19:51 +0200)]
ifconfig(8): Use strlcpy() to set the ifr_name field.

While there, change to use IFNAMSIZ too.

6 years agodfregress(8): Suppress -Wformat-oveflow warnings.
zrj [Tue, 30 Jan 2018 20:30:47 +0000 (22:30 +0200)]
dfregress(8): Suppress -Wformat-oveflow warnings.

6 years agoedquota(8): Use uintmax_t in cvtstoa().
zrj [Tue, 30 Jan 2018 20:11:21 +0000 (22:11 +0200)]
edquota(8): Use uintmax_t in cvtstoa().

Mainly to suppress the -Wformat-oveflow warnings.

6 years agocron(8): Add some format safety.
zrj [Tue, 30 Jan 2018 20:06:58 +0000 (22:06 +0200)]
cron(8): Add some format safety.

Mostly no functional change for a common case, just to suppress
the -Wformat-overflow

6 years agochat(8): Add missing fallthrough.
zrj [Wed, 31 Jan 2018 11:10:33 +0000 (13:10 +0200)]
chat(8): Add missing fallthrough.

Handle them as an error.

6 years agoboot/common: Add missing fallthrough.
zrj [Wed, 31 Jan 2018 10:56:57 +0000 (12:56 +0200)]
boot/common: Add missing fallthrough.

6 years agolibusb: Use more common "vendor product" order.
zrj [Wed, 31 Jan 2018 09:10:20 +0000 (11:10 +0200)]
libusb: Use more common "vendor product" order.

While there, make sure that "vendor product" would take only half of
the usb_desc field that is 96 chars long.

6 years agolibtcplay: Add some format safety.
zrj [Wed, 31 Jan 2018 10:09:59 +0000 (12:09 +0200)]
libtcplay: Add some format safety.

Limit device prints to 88 chars (should be plenty).

While there, add few missing fallthrough.

6 years agolibcompat: Use %hu for unsigned shorts.
zrj [Tue, 30 Jan 2018 17:56:58 +0000 (19:56 +0200)]
libcompat: Use %hu for unsigned shorts.

6 years agorpc: Fix xdr_* macros and limit buffer sizes.
zrj [Tue, 30 Jan 2018 07:02:49 +0000 (09:02 +0200)]
rpc: Fix xdr_* macros and limit buffer sizes.

While there, constify few things.

Taken-from: FreeBSD

6 years agoyp*: Staticise.
zrj [Mon, 29 Jan 2018 20:44:34 +0000 (22:44 +0200)]
yp*: Staticise.

While there, make few format fixes.

6 years agomd5(1): Untangle MD5 symbols.
zrj [Tue, 30 Jan 2018 13:05:40 +0000 (15:05 +0200)]
md5(1): Untangle MD5 symbols.

Prefer to use symbols from LibreSSL crypto lib to match SHA ones. Adjust
the function casting to suppress the gcc80 -Wcast-function-type warnings.

While there, print MiB/s instead of bytes/s for benchmarks.

6 years agolibutil: Use local wrapper for exit(3).
zrj [Mon, 29 Jan 2018 19:20:24 +0000 (21:20 +0200)]
libutil: Use local wrapper for exit(3).

Avoids -Wcast-function-type warning.

6 years agocpucontrol(8): Unbreak WORLD_CCOPTLEVEL=2.
zrj [Fri, 2 Feb 2018 07:50:54 +0000 (09:50 +0200)]
cpucontrol(8): Unbreak WORLD_CCOPTLEVEL=2.

Add NO_STRICT_ALIASING for dereferencing type-punned pointers.

6 years agoinit(8): Convert to use sig_atomic_t.
zrj [Mon, 29 Jan 2018 15:57:51 +0000 (17:57 +0200)]
init(8): Convert to use sig_atomic_t.

Instead of returning function pointer, now return enum for the next state.

Avoids -Wcast-function-type warnings.

Taken-from: OpenBSD

6 years agokernel: Avoid long inactivity pauses on very early boot.
zrj [Fri, 2 Feb 2018 06:42:39 +0000 (08:42 +0200)]
kernel: Avoid long inactivity pauses on very early boot.

Increase verbosity a bit on certain setups.

6 years agodrm/linux: Add some dma-buf stubs
François Tigeot [Thu, 1 Feb 2018 20:14:52 +0000 (21:14 +0100)]
drm/linux: Add some dma-buf stubs

6 years agokernel: Avoid empty macros when not INVARIANTS.
zrj [Wed, 31 Jan 2018 19:53:17 +0000 (21:53 +0200)]
kernel: Avoid empty macros when not INVARIANTS.

Visible from MINI64.

6 years agokernel/wlan: Avoid empty macros.
zrj [Wed, 31 Jan 2018 19:36:34 +0000 (21:36 +0200)]
kernel/wlan: Avoid empty macros.

Visible from VKERNEL64.

6 years agokernel: Avoid empty macros.
zrj [Wed, 31 Jan 2018 18:43:13 +0000 (20:43 +0200)]
kernel: Avoid empty macros.

Suppresses last 11 -Wempty-body warnings.

6 years agokernel/ntfs: Avoid empty macros.
zrj [Wed, 31 Jan 2018 18:24:41 +0000 (20:24 +0200)]
kernel/ntfs: Avoid empty macros.

6 years agokernel/acpi: Add braces around empty if body.
zrj [Wed, 31 Jan 2018 18:16:37 +0000 (20:16 +0200)]
kernel/acpi: Add braces around empty if body.

6 years agokernel/hpt*: Avoid empty macros.
zrj [Wed, 31 Jan 2018 18:14:11 +0000 (20:14 +0200)]
kernel/hpt*: Avoid empty macros.

Suppresses 14 -Wempty-body warnings.

6 years agokernel/twa: Avoid empty macros.
zrj [Wed, 31 Jan 2018 17:25:08 +0000 (19:25 +0200)]
kernel/twa: Avoid empty macros.

Suppresses 42 -Wempty-body warnings.

6 years agokernel/netif: Avoid empty if/else bodies.
zrj [Wed, 31 Jan 2018 17:15:16 +0000 (19:15 +0200)]
kernel/netif: Avoid empty if/else bodies.

6 years agoath_hal: Avoid empty macros.
zrj [Wed, 31 Jan 2018 17:05:56 +0000 (19:05 +0200)]
ath_hal: Avoid empty macros.

Fix just two callsights to have a terminating semicolon (rest have it)
and remove it from the macros.

6 years agoix: Avoid empty macros.
zrj [Wed, 31 Jan 2018 15:48:21 +0000 (17:48 +0200)]
ix: Avoid empty macros.

Suppresses 46 -Wempty-body warnings.

6 years agodrm/ttm: Avoid empty macros.
zrj [Wed, 31 Jan 2018 15:47:27 +0000 (17:47 +0200)]
drm/ttm: Avoid empty macros.

Suppresses -Wempty-body warnings.

6 years agodrm/linux: Improve linux/bug.h
zrj [Wed, 31 Jan 2018 15:19:23 +0000 (17:19 +0200)]
drm/linux: Improve linux/bug.h

Suppresses 399 -Wempty-body warnings.

6 years agodrm/linux: Improve linux/lockdep.h
zrj [Wed, 31 Jan 2018 13:57:28 +0000 (15:57 +0200)]
drm/linux: Improve linux/lockdep.h

Suppresses 170 -Wempty-body warnings.

6 years agokernel - Fix kernel minidumps
Matthew Dillon [Thu, 1 Feb 2018 00:12:04 +0000 (16:12 -0800)]
kernel - Fix kernel minidumps

* Refactor minidumps.  Fix an overflows due to KVM now being 8TB, fix
  improper pdp[] array calculations (cropped up when we want to > 1 PML4e
  entry for the kernel), and refactor the page table entry handling code
  to improve efficiency and reduce the dump size.

  If we had kept the original pte mapping in the minidump it would have
  required ~16GB of disk space JUST to hold a pte array that is mostly 0's.
  Now it only requires ~2MB.

  Dumping performance is improved because the page table array is primarily
  flushed to storage in 4KB block sizes, and now only 2MB or so is written
  out in this manner.

* minidump now dumps the PDP array of PD entries (representing 1GB each)
  for the entire system VA space (user and kernel) - 256TB.  This requires
  512*512*8 = 2MB of storage.

  PD pages and PT pages are no longer linearized into an array in the
  minidump.  Instead, their physical addresses are included in the dump
  map and libkvm accesses the PTEs through the physical map.

  NOTE: Only kernel memory proper is actually populated at this time, but
  this leaves the door open for e.g. dumping more information without having
  to change the minidump format again.

* Revamp the minidump header, magic string, and version to address the new
  reality.  libkvm should still be able to recognize the old minidump
  format, as well as now the new one.

Reminded-by: everyone
6 years agodrm/linux: Add linux/irqreturn.h
François Tigeot [Wed, 31 Jan 2018 21:58:23 +0000 (22:58 +0100)]
drm/linux: Add linux/irqreturn.h

6 years agoLINT64: Add a missing '#'.
Sascha Wildner [Wed, 31 Jan 2018 09:17:14 +0000 (10:17 +0100)]
LINT64: Add a missing '#'.

6 years agoLINT64: Add some nata(4) options (they remove code, so commented out).
Sascha Wildner [Wed, 31 Jan 2018 09:08:41 +0000 (10:08 +0100)]
LINT64: Add some nata(4) options (they remove code, so commented out).

6 years agoacpi - Implement a hack to recheck whether devices are present a few times.
Imre Vadász [Sun, 28 Jan 2018 21:06:29 +0000 (22:06 +0100)]
acpi - Implement a hack to recheck whether devices are present a few times.

* This allows various ACPI devices to attach, which depend on another
  device. Often the _STA method declares them absent when the initial ACPI
  namespace walk is done, so we re-check the presence of those devices
  after each global priority round, when probe-/attach-ing children.

6 years agoacpi - Use KOBJ_GPRI_ACPI driver priorities for ig4 and gpio_intel.
Imre Vadász [Sun, 28 Jan 2018 21:04:55 +0000 (22:04 +0100)]
acpi - Use KOBJ_GPRI_ACPI driver priorities for ig4 and gpio_intel.

* Since we currently don't handle the ACPI _DEP methods appropriately,
  use the "global priority hack" from
  5025fc65cd2448de8a5b7295c9936b473a7b0194 to enforce that ig4 and
  gpio_intel attach before various ACPI namespace devices.

* This uses the KOBJ_GPRI_ACPI+1 and KOBJ_GPRI_ACPI+2 driver global priority
  levels for important ACPI drivers, which may have to attach before other
  ACPI devices can be used.

* This also adds the KOBJ_GPRI_ACPI global priority level to the sdhci_acpi
  driver declaration.

6 years agoboot/efi: Sync our TianoCore EDK II headers with the UDK2018 branch.
Sascha Wildner [Tue, 30 Jan 2018 08:16:45 +0000 (09:16 +0100)]
boot/efi: Sync our TianoCore EDK II headers with the UDK2018 branch.

6 years agonewsyslog(8): Comment out zstd support for now.
Sascha Wildner [Mon, 29 Jan 2018 20:09:27 +0000 (21:09 +0100)]
newsyslog(8): Comment out zstd support for now.

6 years agonewsyslog.8: Comment out /etc/newsyslog.conf.d for now.
Sascha Wildner [Mon, 29 Jan 2018 20:06:03 +0000 (21:06 +0100)]
newsyslog.8: Comment out /etc/newsyslog.conf.d for now.

6 years agoSync zoneinfo database with tzdata2018c from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Mon, 29 Jan 2018 19:13:14 +0000 (20:13 +0100)]
Sync zoneinfo database with tzdata2018c from ftp://ftp.iana.org/tz/releases

* Revert Irish changes that relied on negative DST offsets.

* Japanese DST transitions (1948-1951) were Sundays at 00:00, not
    Saturdays or Sundays at 02:00.

For a detailed list of changes, see share/zoneinfo/NEWS.

6 years agoetc/newsyslog.conf: Pull in the confs that are installed by various ports.
Sascha Wildner [Mon, 29 Jan 2018 18:42:12 +0000 (19:42 +0100)]
etc/newsyslog.conf: Pull in the confs that are installed by various ports.

Leave /etc/newsyslog.conf.d commented out for now.

While here, fix a typo in the comments.

Taken-from: FreeBSD

6 years agonewsyslog(8): Further reduce differences with FreeBSD.
Sascha Wildner [Mon, 29 Jan 2018 18:25:02 +0000 (19:25 +0100)]
newsyslog(8): Further reduce differences with FreeBSD.

6 years agovidcontrol(8): Avoid -Wformat-truncation warning.
zrj [Mon, 29 Jan 2018 14:48:15 +0000 (16:48 +0200)]
vidcontrol(8): Avoid -Wformat-truncation warning.

The vinfo.font_size is unsigned short, so use %hu instead of %d.