Commit Graph

194553 Commits

Author SHA1 Message Date
dim
3473287ac7 MFC r259896:
In sys/dev/cxgb/common/cxgb_mc5.c, remove static function
dbgi_wr_addr3(), which is unused since r167514.
2013-12-28 02:11:17 +00:00
dim
ecbf461bca MFC r259893:
In sys/vm/vm_pageout.c, since vm_pageout_worker() takes a void * as
argument, cast the incoming 0 argument to void *, to silence a warning
from clang 3.4 ("expression which evaluates to zero treated as a null
pointer constant of type 'void *' [-Wnon-literal-null-conversion]").
2013-12-28 02:07:29 +00:00
dim
d0987645bf MFC r259892:
In sys/kern/vfs_mountroot.c, remove static function parse_isspace(),
which is unused since r214006.
2013-12-28 02:00:33 +00:00
dim
9191fc023f MFC r259888:
Pull in r183971 from upstream llvm trunk:

  X86: cvtpi2ps is just an SSE instruction with MMX operands. It has no AVX
  equivalent.

  Give it the right register format so we can also emit it when AVX is enabled.

This should fix a "Cannot select: intrinsic %llvm.x86.sse.cvtpi2ps" fatal error
in clang while building the gnuradio port for amd64.

Reported by:	db
2013-12-28 01:56:04 +00:00
dim
d517c0e1a4 MFC r259876:
In sys/kern/subr_witness.c, remove static function
witness_lock_order_key_empty(), which is unused since r181695.
2013-12-28 01:52:52 +00:00
dim
e1aa82b3d2 MFC r259880:
In sys/dev/sym/sym_hipd.c, remove static functions sym_que_first(),
sym_que_last() and sym_remque_tail(), which are all unused since r53790.
2013-12-28 01:47:19 +00:00
dim
03dc4a0e5e MFC r259875:
In sys/kern/sched_ule.c, remove static function sched_both(), which is
unused since r232207.
2013-12-28 01:42:20 +00:00
dim
d72ff8ac8e MFC r259869:
In sys/dev/mwl/if_mwl.c, put the static RD4() function under #ifdef
MWL_DEBUG guards, since it only used in DPRINTF statements.
2013-12-28 01:33:42 +00:00
dim
d66753f8cd MFC r259842:
Remove some unused static const strings under sys/rpc, which have never
been used since the initial commit (r177633).

MFC r259843:

Move a static const variable to the #if 0 part where it is only used.
(Note the #if 0 part has been inactive since the initial commit,
r177633, so maybe it should be removed altogether).
2013-12-28 01:26:26 +00:00
dim
5b742ab941 MFC r259840:
In sys/netinet6/in6_mcast.c, in6m_is_ifp_detached() is only used
whenever KTR is defined, so put it between #ifdef KTR guards.  This
avoids a warning about a unused function if KTR is not enabled.
2013-12-28 01:19:48 +00:00
dim
58bc1e001e MFC r259839:
In sys/netinet/in_mcast.c, inm_is_ifp_detached() is only used whenever
KTR is defined, so put it between #ifdef KTR guards.  This avoids a
warning about a unused function if KTR is not enabled.
2013-12-28 01:15:34 +00:00
dim
20a8dfaced MFC r259833:
Remove another unused static const variable num_chip_names, from
aic7xxx.c this time.

Noticed by:	pluknet
2013-12-28 01:08:40 +00:00
peter
cb16a1bd34 MFC r259109: allow ZFS to co-habitate with crypto / aesni 2013-12-28 01:03:30 +00:00
dim
9536e2a918 MFC r259827:
Remove unused static const variable num_chip_names from aic79xx.c.

Reviewed by:	gibbs
2013-12-28 00:53:20 +00:00
dim
8bd563e158 MFC r259825:
Remove unused static function adwccbstatus() from adw(4).

Reviewed by:	gibbs
2013-12-28 00:16:58 +00:00
dim
7b0e1bcf7d MFC r259756:
Get rid of register keyword usage in gperf, it is totally obsolete for
C++, and this allows gperf to be compiled for C++11 without a warning
about it.
2013-12-28 00:03:15 +00:00
delphij
a74695269c MFC r259973:
Tighten default restrictions for ntpd(8) server and provide a link
to NTP access restriction documentation.
2013-12-27 23:09:40 +00:00
markj
62fbf016fd MFC r258000:
Consistently add the relocation offset only when the ELF type is not
ET_EXEC. This fixes several problems with the DTrace pid provider not
being able to match probes.
2013-12-27 23:00:56 +00:00
markj
c911703d60 MFC r257670:
Modify the libproc breakpoint add/remove functions to stop the target
process if it has not already been stopped, since this is required for
ptrace(2) to work.

libdtrace does not seem to stop target processes before trying to remove
their breakpoints, so we were previously failing to remove the breakpoint
on r_debug_state() in rtld. This was causing processes to die with SIGTRAP
if they called dlopen(3) after dtrace(1) had detached.
2013-12-27 22:30:36 +00:00
markj
c8ab069033 MFC r257300:
Fix an off-by-one error when checking whether a given address is within
the extent of a symbol.
2013-12-27 22:19:19 +00:00
adrian
899f5ffc89 Revert r252694 from stable/10 to fix instabilities seen with jemalloc + dhclient/sshd.
This is a direct commit to stable/10 as the VM code has changed
since the stable/10 branch.

PR:		kern/185046
2013-12-27 22:05:51 +00:00
jmmv
e125f95c9c Split and extend bsd.test.mk into {atf,plain,tap}.test.mk.
This is a MFC of:

- r256761 Clearly split the logic to build ATF and plain tests apart.
- r256762 Add the automatic generation of Atffile files.
- r256763 Add the automatic generation of Kyuafile files.
- r256764 Plug atf-run into the 'test' target.
- r256765 Plug kyua into the 'test' target.
- r257096 Move the TESTSBASE definition to bsd.own.mk.
- r257099 Add missing plain.test.mk.
- r258297 Remove registration of C++ test programs into PROGS.
- r258298 Fix the build of plain test programs.
- r258551 Install plain.test.mk.
- r259208 Add tap.test.mk.

Approved by:	rpaulo (mentor)
2013-12-27 22:00:22 +00:00
jhb
33f454b5c1 MFC 258063,258064,258066,258097,258185,259134:
- Add an -s option to the regression tests that specifies a path to an
  alternate etcupdate.sh script to test.  This allows a non-installed
  version of the script to be tested more easily.
- Add a pre-world mode of updating similar to the -p option that can be
  passed to mergemaster.
- Fix a couple of issues with -F:
  - Fix ALWAYS_INSTALL to take precedence over the FreeBSD ID checks.
  - Fix the -F option in the case that the only upstream change is a
    change in the FreeBSD ID and the local file is removed.
- Refresh /etc/localtime after each update using tzsetup -r.
- Regenerate /var/db/services.db when /etc/services changes.
2013-12-27 19:53:42 +00:00
pfg
020ad1f282 gcc: Merge upstream changes.
Include types in error message for build_binary_op.

Mostly cosmetic changes, to reduce differences with Apple's gcc.

Obtained from:	gcc 4.3 (rev. 120611, 124839, 125239; GPLv2)
2013-12-27 16:06:08 +00:00
jhb
285471a802 MFC 259014: There is no sysctl with the MIB { CTL_KERN, KERN_MAXID }. 2013-12-26 16:57:36 +00:00
pfg
a53893ff4d MFC r258904, r259780:
Small ext2fs updates.

Add two new reserved inodes.
Make the hashing algorithm match the linux code.

PR:		kern/183230
2013-12-26 01:12:35 +00:00
bz
5d40dd365f MFC r259267:
Add an FDT DTS and MDROOT kernel configuration for BERI on NetFPGA.

  At this point we only support one CPU, the PIC, and a UART console.

Sponsored by:	DARPA, AFRL
2013-12-25 23:57:01 +00:00
bz
3c552ab887 MFC r259265:
Use correct value pointing to previously selected FDT DTB.

Sponsored by:	DARPA, AFRL
2013-12-25 23:54:38 +00:00
markj
d6a22c4af9 MFC r256661 r257222 r257235 r257248 r257298.
MFC r256661:
Fix the libproc build when DEBUG is defined.

MFC r257222:
Clean up the debug printing in libproc a bit. In particular:

* Don't print any error messages to stderr unless DEBUG is defined.
* Add a DPRINTFX macro for use when errno isn't set.
* Print the error string from libelf when appropriate.

MFC r257235:
Remove an incorrect debug printf.

MFC r257248:
Fix the build with gcc.

MFC r257298:
Revert r257248 and fix the problem in a way that doesn't violate style(9).
2013-12-25 22:36:27 +00:00
pfg
e9055f74fe MFC r258826, r259555, r 259558:
libcpp: Merge fixes from upstream
Fixes:
GCC preprocessor/29966:
GCC preprocessor/28709:
GCC c/31924
GCC preprocessor/14331

gcc: add Apple-compatible -Wnewline-eof

Obtained from:	gcc per-4.3 (rev. 121340, 124356, 124358, 124730,
				  125212, 125255 ; GPLv2)
		Apple Inc. (Apple GCC 4.2 - 5531)
2013-12-25 21:59:56 +00:00
pluknet
ddabe064bb MFC r258469:
- Purge one more reference to ad(4)[1].
- NSWAPDEV limit has gone.

Noticed by:	Sergey V. Dyatko [1]
2013-12-25 15:40:15 +00:00
mav
440a3e9f89 MFC r259222:
Destroy mtx lock when failed to allocate memory during attach.

Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
2013-12-25 12:41:53 +00:00
gjb
d3ac080f01 MFC r259729:
Bootstrap etcupdate(8) as part of the release build, similar
  to what is done for mergemaster(8).  This allows etcupdate(8)
  to work out-of-box after the first upgrade of a system.

Sponsored by:	The FreeBSD Foundation
2013-12-25 06:09:07 +00:00
dim
6978c9a485 MFC r259740:
In usr.bin/sort/radixsort.c, pop_ls_mt() is only referenced if
SORT_THREADS is defined, so make the whole function conditional, instead
of just the pthread calls in it.
2013-12-25 00:53:48 +00:00
dim
d51fec8133 MFC r259724:
Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
zoulasc) to contrib/file:

  don't write a char to a pointer.
2013-12-25 00:48:08 +00:00
dim
525a40cc11 MFC r259720:
For gnu/lib/csu, only use gcc-specific flags when compiling with gcc.
2013-12-25 00:40:42 +00:00
ae
c0cbf2ad7b MFC r259520:
Fix copy/paste typo.
2013-12-24 23:23:44 +00:00
jhb
bf62f8539b MFC 259013:
Fix the processor table entry structure to use a fixed-width type for
32-bit fields so it is the correct size on amd64.  Remove a workaround
for the broken structure from bhyve(8).
2013-12-24 19:10:56 +00:00
jhb
4620ae454b MFC 258869:
Fix an off-by-one error in r228960.  The maximum priority delta provided
by SCHED_PRI_TICKS should be SCHED_PRI_RANGE - 1 so that the resulting
priority value (before nice adjustment) is between SCHED_PRI_MIN and
SCHED_PRI_MAX, inclusive.
2013-12-24 19:01:08 +00:00
jhb
af9076fcae MFC 258177:
Remove an incorrectly copied and pasted clause from these license
statements.
2013-12-24 18:48:29 +00:00
dim
fef52f4b6c MFC r259473:
Enable llvm's integrated assembler for PowerPC, since it should now be
good enough for typical usage.

Requested by:	rdivacky
2013-12-24 14:26:31 +00:00
jilles
20e995f743 MFC r259677: swapon: Fix buffer overflow when configuring swap on GBDE.
PR:		bin/184950
2013-12-24 13:46:54 +00:00
kib
7baf16ac14 MFC r259522:
If vn_open_vnode() succeeded in opening the vnode, but subsequent
advisory lock cannot be obtained, prevent double-close of the vnode in
vn_close() called from the fdrop(), by resetting file' f_ops methods.
2013-12-24 07:32:06 +00:00
kib
d30d9d8d87 MFC r259521:
Do not allow O_EXEC opens for fifo, return EINVAL.
2013-12-24 07:25:49 +00:00
rodrigc
5c0abc1ae6 MFC r259808
Add pointer to wiki for Hyper-V information.

  Wiki content for Hyper-V in FreeBSD 10 was significantly updated by
  Abhishek Gupta <abgupta@microsoft.com>.
2013-12-24 05:17:24 +00:00
np
30cdcf32e9 MFC r259527:
Do not create a hardware IPv6 server if the listen address is not
in6addr_any and is not in the CLIP table either.  This fixes a reported
TOE+IPv6 NULL-dereference panic in do_pass_open_rpl().

While here, stop creating hardware servers for any loopback address.
It's just a waste of server tids.
2013-12-24 02:10:12 +00:00
gjb
b7566d44e9 Switch references to -CURRENT to -STABLE.
This is a direct commit to stable/10/.

Sponsored by:	The FreeBSD Foundation
2013-12-23 21:07:02 +00:00
gjb
df3dfecf5f Update FreeBSD version entity values.
This is a direct commit to stable/10/, because the values differ
between stable/10/ and head/.

Sponsored by:	The FreeBSD Foundation
2013-12-23 20:52:29 +00:00
delphij
c1209e6340 MFC r259058,r259060:
Remove -q from usage.

Document -q and --quiet as discouraged compatibility option.
2013-12-23 20:20:46 +00:00
delphij
907f6b0d31 MFC r259131:
Don't panic when we get ZPOOL_STATUS_NON_NATIVE_ASHIFT
while listing importable pools.
2013-12-23 20:16:54 +00:00