Skip to content

Commit

Permalink
openzfs: Reduce local diffs
Browse files Browse the repository at this point in the history
These are all local diffs that have no functional change.

Reviewed by:	mav, emaste
Sponsored by:	AFRL, DARPA
Differential Revision:	https://reviews.freebsd.org/D46530
  • Loading branch information
bsdjhb committed Oct 3, 2024
1 parent 5b21d4a commit 59f5f10
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_powerpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
#include <machine/pcb.h>
#include <machine/cpu.h>

/* FreeBSD doesn't support floating point on powerpc kernel yet */
#define kfpu_allowed() 0

#define kfpu_initialize(tsk) do {} while (0)
#define kfpu_begin() do {} while (0)
#define kfpu_end() do {} while (0)
Expand Down
1 change: 0 additions & 1 deletion sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#define kfpu_allowed() 1
#define kfpu_initialize(tsk) do {} while (0)


#define kfpu_begin() { \
if (__predict_false(!is_fpu_kern_thread(0))) \
fpu_kern_enter(curthread, NULL, FPU_KERN_NOCTX);\
Expand Down
2 changes: 1 addition & 1 deletion sys/contrib/openzfs/module/os/freebsd/zfs/zfs_ctldir.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ zfsctl_root_readdir(struct vop_readdir_args *ap)
* The check below facilitates the idiom of repeating calls until the
* count to return is 0.
*/
if (zfs_uio_offset(&uio) == 3 * sizeof(entry)) {
if (zfs_uio_offset(&uio) == 3 * sizeof (entry)) {
return (0);
}

Expand Down

0 comments on commit 59f5f10

Please sign in to comment.