dragonfly.git
11 years agoMake sure that upgrading to master doesn't happen automatically/accidentally.
Justin C. Sherrill [Thu, 1 Nov 2012 02:39:50 +0000 (22:39 -0400)]
Make sure that upgrading to master doesn't happen automatically/accidentally.
Users will stay with a stable release unless they choose to change.
Also, nrelease builds will build the correct release.

11 years agoioapic/i386: Allow GSI > 191
Sepherosa Ziehau [Thu, 1 Nov 2012 01:29:53 +0000 (09:29 +0800)]
ioapic/i386: Allow GSI > 191

11 years agoioapic/x86_64: Allow GSI > 191
Sepherosa Ziehau [Tue, 30 Oct 2012 02:53:59 +0000 (10:53 +0800)]
ioapic/x86_64: Allow GSI > 191

Some BIOSes seem to assume that all 256 IDT vectors could be used,
while we limit the available IDT vectors percpu to 192.   Find an
unused IRQ for these GSIs, if this ever happens.

Reported-by: thowe on EFnet #dragonflybsd
11 years agoSync zoneinfo database with tzdata2012h from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Sat, 27 Oct 2012 09:15:46 +0000 (11:15 +0200)]
Sync zoneinfo database with tzdata2012h from ftp://ftp.iana.org/tz/releases

* asia:
    Israel has new DST rules next year (thanks to Ephraim Silverberg).
    Jordan stays on DST this winter (thanks to Steffen Thorsen).

* southamerica:
    Bahia no longer has DST (thanks to Kelley Cook).
    Tocantins has DST (thanks to Rodrigo Severo).

11 years agomdoc: Fix .Os version.
Sascha Wildner [Fri, 26 Oct 2012 22:50:54 +0000 (00:50 +0200)]
mdoc: Fix .Os version.

11 years agolibssp47, libobjc47: install headers
John Marino [Fri, 26 Oct 2012 14:35:25 +0000 (16:35 +0200)]
libssp47, libobjc47: install headers

Headers for both libssp and libobjc were not getting installed for the
gcc47 library set.  As an aside, the gcc44 libobjc is also missing these
headers.  There installation required an mtree change, but it can be
built with quickworld.

Additionally, CFLAGS were moved to above an include for libobjc which
should ensure the local config.h is included before a different version
and this in turn likely improves libobjc functionality.

11 years agolibgomp47: Install libgomp.spec and omp.h
John Marino [Fri, 26 Oct 2012 13:52:09 +0000 (15:52 +0200)]
libgomp47: Install libgomp.spec and omp.h

It was reported these files are needed by libgomp, so generate and
install them.

11 years agovkernel64: Add a missing 'break'.
Sascha Wildner [Sun, 21 Oct 2012 20:09:15 +0000 (22:09 +0200)]
vkernel64: Add a missing 'break'.

11 years agoUPDATING: Fix a typo and mention that for usb4bsd, w&k need rebuilding.
Sascha Wildner [Sun, 21 Oct 2012 16:45:32 +0000 (18:45 +0200)]
UPDATING: Fix a typo and mention that for usb4bsd, w&k need rebuilding.

Sigh, I had written 'loader.conf' instead of 'make.conf'. It will need
a mention on the release page/errata.

11 years agoUPDATING: Add some words about usb4bsd. v3.2.1
Sascha Wildner [Sun, 21 Oct 2012 13:52:36 +0000 (15:52 +0200)]
UPDATING: Add some words about usb4bsd.

11 years agocondvar(9): adjust manpage to reflect reality
Markus Pfeiffer [Sat, 20 Oct 2012 20:50:17 +0000 (20:50 +0000)]
condvar(9): adjust manpage to reflect reality

also fix a typo while I am here

11 years agousb4bsd: Add a commented out line to our configs for enabling usb4bsd.
Sascha Wildner [Thu, 18 Oct 2012 07:14:53 +0000 (09:14 +0200)]
usb4bsd: Add a commented out line to our configs for enabling usb4bsd.

In addition to this, WANT_USB4BSD needs to be put into /etc/make.conf
for the userland part.

11 years agousb4bsd/libusb: Remove an unused variable and mark a dummy variable unused.
Sascha Wildner [Wed, 17 Oct 2012 16:25:30 +0000 (18:25 +0200)]
usb4bsd/libusb: Remove an unused variable and mark a dummy variable unused.

11 years agousb4bsd/ukbd: Adjust comment style a bit.
Sascha Wildner [Tue, 16 Oct 2012 08:28:52 +0000 (10:28 +0200)]
usb4bsd/ukbd: Adjust comment style a bit.

11 years agousb: Fix a typo in ukbd.
Markus Pfeiffer [Tue, 16 Oct 2012 09:00:03 +0000 (09:00 +0000)]
usb: Fix a typo in ukbd.

11 years agousb4bsd: Fix attach/detach for ukbd.
Markus Pfeiffer [Tue, 16 Oct 2012 08:59:23 +0000 (08:59 +0000)]
usb4bsd: Fix attach/detach for ukbd.

This still needs work to make it function with the debugger

11 years agousb4bsd: Regenerate usbdevs.h and usbdevs_data.h.
Sascha Wildner [Sun, 14 Oct 2012 21:41:33 +0000 (23:41 +0200)]
usb4bsd: Regenerate usbdevs.h and usbdevs_data.h.

11 years agousb4bsd: Sync usbdevs with FreeBSD.
Sascha Wildner [Sun, 14 Oct 2012 21:38:08 +0000 (23:38 +0200)]
usb4bsd: Sync usbdevs with FreeBSD.

11 years agousb4bsd: Add usb_quirk module.
Sascha Wildner [Sun, 14 Oct 2012 20:10:30 +0000 (22:10 +0200)]
usb4bsd: Add usb_quirk module.

11 years agousb4bsd: Makefile cleanup.
Sascha Wildner [Sun, 14 Oct 2012 19:40:29 +0000 (21:40 +0200)]
usb4bsd: Makefile cleanup.

11 years agousb4bsd: Sort files a bit better in 'files' (from FreeBSD).
Sascha Wildner [Sun, 14 Oct 2012 19:13:28 +0000 (21:13 +0200)]
usb4bsd: Sort files a bit better in 'files' (from FreeBSD).

11 years agousb4bsd/controller: Use device_delete_children().
Sascha Wildner [Sun, 14 Oct 2012 13:12:08 +0000 (15:12 +0200)]
usb4bsd/controller: Use device_delete_children().

11 years agokernel: add device_delete_children()
François Tigeot [Thu, 5 Jul 2012 07:05:18 +0000 (09:05 +0200)]
kernel: add device_delete_children()

Obtained-from: FreeBSD

11 years agomake upgrade: Remove more new USB stuff if it is not requested.
Sascha Wildner [Sun, 14 Oct 2012 12:35:43 +0000 (14:35 +0200)]
make upgrade: Remove more new USB stuff if it is not requested.

To reduce confusion when switching.

11 years agousb4bsd: Pull up libusb and usbcontrol to FreeBSD current's.
Sascha Wildner [Sun, 14 Oct 2012 12:18:21 +0000 (14:18 +0200)]
usb4bsd: Pull up libusb and usbcontrol to FreeBSD current's.

I stopped before their recent streams commit.

11 years agoBring in USB4BSD userspace libraries and utilities.
Markus Pfeiffer [Sun, 14 Oct 2012 11:00:18 +0000 (11:00 +0000)]
Bring in USB4BSD userspace libraries and utilities.

The following will now be built and installed if WANT_USB4BSD is defined.

* libusb
* usbconfig

11 years agousb4bsd/ehci: Fix EHCI resetting (and thus, intialization & attach).
Sascha Wildner [Fri, 12 Oct 2012 19:29:22 +0000 (21:29 +0200)]
usb4bsd/ehci: Fix EHCI resetting (and thus, intialization & attach).

No need for PINTERLOCKED here.

Reported-by: ftigeot, tuxillo
In-discussion-with: vsrinivas

11 years agousb4bsd/ehci: Ouch, fix a bug in the Makefile.
Sascha Wildner [Fri, 12 Oct 2012 17:56:15 +0000 (19:56 +0200)]
usb4bsd/ehci: Ouch, fix a bug in the Makefile.

It was taking a wrong file and this caused ehci to not properly initialize
when loaded as a module (like it is our default).

Note that this is my fault, not Markus Pfeiffer's. I had messed with the
Makefiles and it was a copy/paste error.

Reported-by: ftigeot, tuxillo
11 years agousb4bsd: Use NULL for pointers.
Sascha Wildner [Fri, 12 Oct 2012 16:59:04 +0000 (18:59 +0200)]
usb4bsd: Use NULL for pointers.

11 years agousb4bsd/controller: Remove some unused module declarations.
Sascha Wildner [Fri, 12 Oct 2012 16:52:41 +0000 (18:52 +0200)]
usb4bsd/controller: Remove some unused module declarations.

11 years agousb4bsd: Remove more unused files.
Sascha Wildner [Fri, 12 Oct 2012 16:46:01 +0000 (18:46 +0200)]
usb4bsd: Remove more unused files.

11 years agousb4bsd: Remove unused ARM related files.
Sascha Wildner [Fri, 12 Oct 2012 16:32:29 +0000 (18:32 +0200)]
usb4bsd: Remove unused ARM related files.

11 years agoFix 'make upgrade', it was broken.
Sascha Wildner [Fri, 12 Oct 2012 15:15:44 +0000 (17:15 +0200)]
Fix 'make upgrade', it was broken.

11 years agousb4bsd/audio: Some porting work in uaudio_pcm.c.
Sascha Wildner [Fri, 12 Oct 2012 09:05:13 +0000 (11:05 +0200)]
usb4bsd/audio: Some porting work in uaudio_pcm.c.

* Locking fixes (by ftigeot).

* Comment out unknown methods for now.

* Adjust include path.

With this it only whines on mixer_get_lock() which we don't have.

11 years agokernel/sound: Add PCMTRIG_COMMON (from FreeBSD).
Sascha Wildner [Fri, 12 Oct 2012 09:03:36 +0000 (11:03 +0200)]
kernel/sound: Add PCMTRIG_COMMON (from FreeBSD).

11 years agokernel: Comment out the new uaudio_pcm.c for now, it doesn't build yet.
Sascha Wildner [Fri, 12 Oct 2012 09:03:06 +0000 (11:03 +0200)]
kernel: Comment out the new uaudio_pcm.c for now, it doesn't build yet.

11 years agokernel: Add KOBJMETHOD_END and use it.
Sascha Wildner [Fri, 12 Oct 2012 07:34:00 +0000 (09:34 +0200)]
kernel: Add KOBJMETHOD_END and use it.

11 years agousb4bsd/uether: Missing argument in usb_ether_method's ue_ioctl() member.
Sascha Wildner [Fri, 12 Oct 2012 06:25:36 +0000 (08:25 +0200)]
usb4bsd/uether: Missing argument in usb_ether_method's ue_ioctl() member.

11 years agousb4bsd/if_udav: Comment out a variable (usage is not yet enabled).
Sascha Wildner [Fri, 12 Oct 2012 06:24:06 +0000 (08:24 +0200)]
usb4bsd/if_udav: Comment out a variable (usage is not yet enabled).

11 years agousb4bsd/audio: 'static' has to be at the beginning of the declaration.
Sascha Wildner [Fri, 12 Oct 2012 06:23:02 +0000 (08:23 +0200)]
usb4bsd/audio: 'static' has to be at the beginning of the declaration.

11 years agoRemove old USB stuff when the new stack is requested.
Sascha Wildner [Fri, 12 Oct 2012 05:44:34 +0000 (07:44 +0200)]
Remove old USB stuff when the new stack is requested.

11 years agousb4bsd: Add uether dependency for compiling udav into the kernel.
Sascha Wildner [Thu, 11 Oct 2012 13:40:41 +0000 (15:40 +0200)]
usb4bsd: Add uether dependency for compiling udav into the kernel.

11 years agousb4bsd: Fix the compilation of the remaining drivers into the kernel.
Sascha Wildner [Thu, 11 Oct 2012 13:35:38 +0000 (15:35 +0200)]
usb4bsd: Fix the compilation of the remaining drivers into the kernel.

11 years agousb4bsd: Fix some compilation warnings.
Sascha Wildner [Thu, 11 Oct 2012 13:35:22 +0000 (15:35 +0200)]
usb4bsd: Fix some compilation warnings.

11 years agousb4bsd: Allow some parts to be built into the kernel.
Sascha Wildner [Thu, 11 Oct 2012 09:24:08 +0000 (11:24 +0200)]
usb4bsd: Allow some parts to be built into the kernel.

This is for the core support, and for uhci, ohci, ehci and xhci.

To do this, replace:

  device usb

with

  device "usb4bsd"

in the config. The quotes are needed at the moment to cope with a
weakness in our config(8) that needs fixing.

Based-on-patch-submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years agokernel/mii_layer: Little indentation fix.
Sascha Wildner [Thu, 11 Oct 2012 09:18:50 +0000 (11:18 +0200)]
kernel/mii_layer: Little indentation fix.

11 years agousb4bsd: Port network devices (uether, udav, axe) and hook into build.
Sascha Wildner [Thu, 11 Oct 2012 09:18:06 +0000 (11:18 +0200)]
usb4bsd: Port network devices (uether, udav, axe) and hook into build.

Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years agousb4bsd: Port input devices (uep, uhid, ukbd, ums) and hook into build.
Sascha Wildner [Wed, 10 Oct 2012 22:55:15 +0000 (00:55 +0200)]
usb4bsd: Port input devices (uep, uhid, ukbd, ums) and hook into build.

Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years agousb4bsd: Fixes, fixes, fixes.
Sascha Wildner [Wed, 10 Oct 2012 22:06:44 +0000 (00:06 +0200)]
usb4bsd: Fixes, fixes, fixes.

* Fix a panic when trying to free null pointer in usb_free_device.

* Fix a panic due to wrong assignment of locks.

* Fix kqueue handling.

* Add debug helpers.

Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years agousb4bsd: Implement umass scsi probing on attach.
Sascha Wildner [Wed, 10 Oct 2012 21:46:53 +0000 (23:46 +0200)]
usb4bsd: Implement umass scsi probing on attach.

Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years agousb4bsd: Bring in FreeBSD's uaudio driver.
Sascha Wildner [Sun, 7 Oct 2012 15:25:03 +0000 (17:25 +0200)]
usb4bsd: Bring in FreeBSD's uaudio driver.

This is based on FreeBSD SVN r231881.

Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years agousb4bsd: Separate building of the old USB modules.
Sascha Wildner [Tue, 2 Oct 2012 04:21:24 +0000 (06:21 +0200)]
usb4bsd: Separate building of the old USB modules.

Don't build the old USB driver modules when WANT_USB4BSD is set.

Also, do some cleanup in some of the Makefiles, while I'm here.

11 years agousb4bsd: Cleanup pass.
Sascha Wildner [Mon, 1 Oct 2012 04:04:09 +0000 (06:04 +0200)]
usb4bsd: Cleanup pass.

* Adjust indentation, whitespace and typos.

* Uniformly use #if 0 to deactivate code instead of C comments.

11 years agousb4bsd: Hook usb, ehci, ohci, uhci, xhci, umass, and usfs into the build.
Sascha Wildner [Thu, 27 Sep 2012 07:51:55 +0000 (09:51 +0200)]
usb4bsd: Hook usb, ehci, ohci, uhci, xhci, umass, and usfs into the build.

Adds some missing Makefiles and adjusts others.

With this commit, the corresponding modules all build when WANT_USB4BSD
is set, but they are not guaranteed to work. More bugs will be fixed in
subsequent commits.

The new USB code can't yet be built into the kernel.

Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years agousb4bsd: Perform the usual porting on the controller, storage and core code.
Sascha Wildner [Wed, 26 Sep 2012 17:31:51 +0000 (19:31 +0200)]
usb4bsd: Perform the usual porting on the controller, storage and core code.

malloc -> kmalloc, printf -> kprintf, locking, and so forth.

Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years agousb4bsd: Generate usbdevs.h and usbdevs_data.h.
Sascha Wildner [Wed, 26 Sep 2012 16:00:13 +0000 (18:00 +0200)]
usb4bsd: Generate usbdevs.h and usbdevs_data.h.

Also, rename devlist2h.awk to usbdevs2h.awk and remove our CVS ID in
Makefile.usbdevs.

Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years ago<bus/pci/pcireg.h>: Add a definition for XHCI programming interface.
Sascha Wildner [Wed, 26 Sep 2012 07:27:25 +0000 (09:27 +0200)]
<bus/pci/pcireg.h>: Add a definition for XHCI programming interface.

Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years agousb4bsd: Hook the userland part into the build.
Sascha Wildner [Wed, 26 Sep 2012 00:00:09 +0000 (02:00 +0200)]
usb4bsd: Hook the userland part into the build.

Define a new make.conf(5) variable, WANT_USB4BSD, which (if set) causes
the new USB's userland to be built (similar to WANT_NETGRAPH7).

11 years agousb4bsd: Adjust header paths in libusbhid, usbhidctl, and public headers.
Sascha Wildner [Tue, 25 Sep 2012 21:15:43 +0000 (23:15 +0200)]
usb4bsd: Adjust header paths in libusbhid, usbhidctl, and public headers.

Also remove some __FBSDID's.

Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years agousb4bsd: Bring in FreeBSD's libusbhid, usbhidctl and USB kernel code.
Sascha Wildner [Tue, 25 Sep 2012 21:11:40 +0000 (23:11 +0200)]
usb4bsd: Bring in FreeBSD's libusbhid, usbhidctl and USB kernel code.

In order to make it live peacefully along with our old USB code, name
all directories with new USB code *u4b* instead of *usb*.

This is FreeBSD SVN r231881.

Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
11 years agogcc4X man pages: Introduce generic MLINK handling
John Marino [Sun, 21 Oct 2012 09:08:28 +0000 (11:08 +0200)]
gcc4X man pages: Introduce generic MLINK handling

A few months ago, the MLINK handling for binutils was updated to make
it easier to switch the primary version.  For binutils, every manpage
has a suffix based on the binutils version and the "real" man page is
linked to the primary version.

The two base compilers had the same organization, but the manual system
was not converted when binutils system was.  When gcc47 was brought in,
the manual organization wasn't implemented correctly and the gcc47 pages
ended up getting linked to the "real" man page instead of the primary
compiler gcc44.

While fixing this, bring in the binutils MLINK handling to prepare for
switching gcc47 to the primary compiler in the future.

11 years agolibgomp47: link pthread library
John Marino [Sat, 20 Oct 2012 13:19:06 +0000 (15:19 +0200)]
libgomp47: link pthread library

11 years agogcc47: Add libgomp
John Marino [Sat, 20 Oct 2012 06:37:48 +0000 (08:37 +0200)]
gcc47: Add libgomp

This library was not part of the gcc 4.7 system compiler set.
By request for the purpose of supporting OpenMP with system compiler,
libgomp is being added to the gcc 4.7 library set.

11 years agogcc47: Add libssp and libssp_noshared
John Marino [Fri, 19 Oct 2012 15:43:21 +0000 (17:43 +0200)]
gcc47: Add libssp and libssp_noshared

These libraries were not part of the gcc 4.4 system compiler set.
Some pkgsrc packages assume the ssp libraries come with the compiler,
so add them to the gcc 4.7 library set.

11 years agoMerge branch 'vendor/GCC47' into RELEASE_3_2
John Marino [Sun, 21 Oct 2012 07:39:34 +0000 (09:39 +0200)]
Merge branch 'vendor/GCC47' into RELEASE_3_2

11 years agogcc47: Add __stack_chk_fail_local hack from gcc44
John Marino [Sat, 20 Oct 2012 00:06:27 +0000 (02:06 +0200)]
gcc47: Add __stack_chk_fail_local hack from gcc44

Like gcc44 before it, gcc47 is complaining about the hidden symbol of
__stack_chk_fail_local.  This patch swildner added to gcc44 will fix the
issue, but it is a bit of a hack.  A true fix may end up touching libc,
rtld, and other bits.  The original code is supposd to conserve a PIC
register.

Note that vendor-built GCCs on FreeBSD exhibit the same behavior and as
a consequence only the patched base compiler can be used to build certain
ports.

This hack should be fixed properly as soon as convenient.

11 years agoAdd libgomp source files to gcc 4.7 vendor branch
John Marino [Sat, 20 Oct 2012 06:35:34 +0000 (08:35 +0200)]
Add libgomp source files to gcc 4.7 vendor branch

11 years agoudevd(8): Reduce the scope of a yet unused variable.
Sascha Wildner [Sat, 20 Oct 2012 08:49:14 +0000 (10:49 +0200)]
udevd(8): Reduce the scope of a yet unused variable.

11 years agonewfs(8): Remove an unused variable.
Sascha Wildner [Sat, 20 Oct 2012 08:39:26 +0000 (10:39 +0200)]
newfs(8): Remove an unused variable.

Found-by: gcc47
11 years agomount{,_ufs}(8): Check for mountctl() error before printing buf.
Sascha Wildner [Sat, 20 Oct 2012 08:18:27 +0000 (10:18 +0200)]
mount{,_ufs}(8): Check for mountctl() error before printing buf.

11 years agoAdd libssp source files to gcc 4.7 vendor branch
John Marino [Fri, 19 Oct 2012 15:27:07 +0000 (17:27 +0200)]
Add libssp source files to gcc 4.7 vendor branch

11 years agokernel - Fix UP build for usched_dfly
Matthew Dillon [Fri, 19 Oct 2012 20:26:45 +0000 (13:26 -0700)]
kernel - Fix UP build for usched_dfly

* Fix UP build for usched_dfly (primarily for the 3.2 release, UP is being
  removed post-release).

11 years agorshd(8): Add an error check for getnameinfo().
Sascha Wildner [Fri, 19 Oct 2012 19:22:23 +0000 (21:22 +0200)]
rshd(8): Add an error check for getnameinfo().

11 years agokernel - Detect edge cases in ELF note handling
Matthew Dillon [Fri, 19 Oct 2012 17:41:01 +0000 (10:41 -0700)]
kernel - Detect edge cases in ELF note handling

* Do more stringent tests on ELF note structures and headers to
  avoid possible panics on page-crossings.

* Patch constructed from examination of a similar fix made to FreeBSD
  cvs/1.227.  However, our patch is written a different way.

Reported-by: Lukasz Wojcik <lukasz.wojcik@zoho.com>
11 years agoRevert a few additions of __unused that need some more thought.
Sascha Wildner [Fri, 19 Oct 2012 15:47:17 +0000 (17:47 +0200)]
Revert a few additions of __unused that need some more thought.

We can postpone it until WARNS gets raised to 4 (at the moment, all
this stuff is WARNS = 2).

11 years agoRevert some no longer needed local CFLAGS modifications.
Sascha Wildner [Fri, 19 Oct 2012 08:49:34 +0000 (10:49 +0200)]
Revert some no longer needed local CFLAGS modifications.

11 years agocrypto: Revert some changes in contributed code.
Sascha Wildner [Fri, 19 Oct 2012 08:47:11 +0000 (10:47 +0200)]
crypto: Revert some changes in contributed code.

11 years agoMove gcc47's -Wunused-but-set-{parameter,variable} to WARNS >= 4.
Sascha Wildner [Fri, 19 Oct 2012 08:43:55 +0000 (10:43 +0200)]
Move gcc47's -Wunused-but-set-{parameter,variable} to WARNS >= 4.

It's not really important stuff that they uncover.

Also, -Wunused-parameter is added at >= 4 too.

11 years agondis_events(8): Check a read().
Sascha Wildner [Fri, 19 Oct 2012 07:36:36 +0000 (09:36 +0200)]
ndis_events(8): Check a read().

Found-by: gcc47
11 years agolibstdc++47: Rework to prevent regeneration during install
John Marino [Fri, 19 Oct 2012 07:15:22 +0000 (09:15 +0200)]
libstdc++47: Rework to prevent regeneration during install

The installincludes target regenerated files such as c++config.h during
the install phase.  It may be a minor bug as "bits/c++config.h:" would
trigger it but "c++config.h:" without the subdirectory wouldn't.  In any
case, generating it and two other headers to the local working bits
directory wasn't necessary as installincludes target installs them in an
accessible location.  Reworking the makefiles prevents a write operation
during installworld.

Reported-by: dillon
11 years agoIPXrouted(8): Oops removed too much in the last commit.
Sascha Wildner [Thu, 18 Oct 2012 22:54:03 +0000 (00:54 +0200)]
IPXrouted(8): Oops removed too much in the last commit.

11 years ago<bsd.sys.mk>: Rename -W to -Wextra.
Sascha Wildner [Thu, 18 Oct 2012 22:30:13 +0000 (00:30 +0200)]
<bsd.sys.mk>: Rename -W to -Wextra.

-Wextra is a newer name and it is a bit more descriptive.

While here, break a long line.

11 years agowatchdogd(8): Silence a warning differently.
Sascha Wildner [Thu, 18 Oct 2012 22:13:41 +0000 (00:13 +0200)]
watchdogd(8): Silence a warning differently.

Also satisfies -Wunused-but-set-parameter.

Found-by: gcc47
11 years agokernel/x86_64: In pmap_enter(), entry is, in fact, used.
Sascha Wildner [Thu, 18 Oct 2012 15:53:36 +0000 (17:53 +0200)]
kernel/x86_64: In pmap_enter(), entry is, in fact, used.

11 years agomptable(8): Remove an unused variable.
Sascha Wildner [Thu, 18 Oct 2012 13:36:07 +0000 (15:36 +0200)]
mptable(8): Remove an unused variable.

Found-by: gcc47
11 years agoinetd(8): Fix initialization of se_rpc_{low,high}vers.
Sascha Wildner [Thu, 18 Oct 2012 13:35:08 +0000 (15:35 +0200)]
inetd(8): Fix initialization of se_rpc_{low,high}vers.

Found-by: gcc47
11 years agofwcontrol(8): f_cycle is only used in #if 0'd code, so #if 0 it too.
Sascha Wildner [Thu, 18 Oct 2012 13:34:20 +0000 (15:34 +0200)]
fwcontrol(8): f_cycle is only used in #if 0'd code, so #if 0 it too.

Found-by: gcc47
11 years agoIPXrouted(8): Remove dead code, DragonFly has RTM_ADD.
Sascha Wildner [Thu, 18 Oct 2012 13:32:19 +0000 (15:32 +0200)]
IPXrouted(8): Remove dead code, DragonFly has RTM_ADD.

11 years agoypxfr(8): Use the correct enum member for checking yp_errno.
Sascha Wildner [Thu, 18 Oct 2012 12:56:38 +0000 (14:56 +0200)]
ypxfr(8): Use the correct enum member for checking yp_errno.

Revert local CFLAGS, too.

Found-by: gcc47
11 years agoyppoll(8): Comment out -h option.
Sascha Wildner [Thu, 18 Oct 2012 12:30:27 +0000 (14:30 +0200)]
yppoll(8): Comment out -h option.

The implementation of it is missing (see e.g. NetBSD or OpenBSD). Until
someone works on it, comment out the existing code to silence a warning
about 'hostname' being set but unused.

Found-by: gcc47
11 years agoldconfig(8): Remove -s from usage(), too.
Sascha Wildner [Thu, 18 Oct 2012 12:22:38 +0000 (14:22 +0200)]
ldconfig(8): Remove -s from usage(), too.

11 years agomake(1): Use an inline function instead of a macro for Lst_Valid().
Sascha Wildner [Thu, 18 Oct 2012 12:03:04 +0000 (14:03 +0200)]
make(1): Use an inline function instead of a macro for Lst_Valid().

This gives -Waddress something to test even if the address of a local
variable is passed.

Remove local CFLAGS and put back under -Werror.

11 years agoSync zoneinfo database with tzdata2012g from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Thu, 18 Oct 2012 06:45:59 +0000 (08:45 +0200)]
Sync zoneinfo database with tzdata2012g from ftp://ftp.iana.org/tz/releases

* asia (Asia/Gaza, Asia/Hebron): Fall transition was Sep 21, not Sep 28.
    Thanks to Steffen Thorsen for this.

* australasia (Pacific/Apia): New DST rules for Western Samoa.
    Thanks to Nicholas Pereira for the heads-up and to Robert Elz
    for coding up the rules.

11 years agondiscvt(8): Unbreak build.
Sascha Wildner [Wed, 17 Oct 2012 20:51:15 +0000 (22:51 +0200)]
ndiscvt(8): Unbreak build.

11 years agocompilers.conf: Add -Wno-unknown-warning-option for clang.
Sascha Wildner [Wed, 17 Oct 2012 16:15:54 +0000 (18:15 +0200)]
compilers.conf: Add -Wno-unknown-warning-option for clang.

When compiling with clang, add -Wno-unknown-warning-option to silence
warnings about unknown warning options. We'll not maintain compatibility
for warning options in our wrapper.

Reported-by: Joris Giovannangeli <joris@giovannangeli.fr>
11 years agoRemove more unused variables in userland.
Sascha Wildner [Wed, 17 Oct 2012 16:08:46 +0000 (18:08 +0200)]
Remove more unused variables in userland.

Found-by: gcc47
11 years agosnd/hda: Restore the magic register setting to enable cache snooping
Sepherosa Ziehau [Wed, 17 Oct 2012 13:22:59 +0000 (21:22 +0800)]
snd/hda: Restore the magic register setting to enable cache snooping

It looks like certain chips ignore NOSNOOP settings in PCIe device
control configuration register.  Restore the magic register setting
to enable cache snooping.

Reported-by: many
Tested-by: Goetz Isenmann <info@goetz-isenmann.de>
11 years agovinum(8): Remove some unused variables.
Sascha Wildner [Tue, 16 Oct 2012 10:41:43 +0000 (12:41 +0200)]
vinum(8): Remove some unused variables.

Found-by: gcc47
11 years agogrowfs(8): Remove an unused variable.
Sascha Wildner [Tue, 16 Oct 2012 09:44:53 +0000 (11:44 +0200)]
growfs(8): Remove an unused variable.

Found-by: gcc47
11 years agorcs(1): Remove an unused variable.
Sascha Wildner [Tue, 16 Oct 2012 09:19:46 +0000 (11:19 +0200)]
rcs(1): Remove an unused variable.

Found-by: gcc47