Bug 228694

Summary: [patch] unused argument in turnstile_unpend
Product: Base System Reporter: Julian Pszczołowski <julian.pszczolowski>
Component: kernAssignee: Mateusz Guzik <mjg>
Status: Closed FIXED    
Severity: Affects Only Me CC: mjg
Priority: --- Keywords: patch
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch that deletes unused argument none

Description Julian Pszczołowski 2018-06-02 15:39:43 UTC
Created attachment 193934 [details]
Patch that deletes unused argument

In file sys/kern/subr_turnstile.c I see that argument owner_type of function turnstile_unpend is unused.

I have attached a patch that deletes this argument, fixes turnstile_unpend calls and deletes TS_SHARED_LOCK and TS_EXCLUSIVE_LOCK defines, which are now unused as well.
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-06-02 22:38:02 UTC
A commit references this bug:

Author: mjg
Date: Sat Jun  2 22:37:54 UTC 2018
New revision: 334546
URL: https://svnweb.freebsd.org/changeset/base/334546

Log:
  Remove an unused argument to turnstile_unpend.

  PR:	228694
  Submitted by:	Julian Pszczo?owski <julian.pszczolowski@gmail.com>

Changes:
  head/sys/amd64/amd64/pmap.c
  head/sys/kern/kern_mutex.c
  head/sys/kern/kern_rmlock.c
  head/sys/kern/kern_rwlock.c
  head/sys/kern/subr_turnstile.c
  head/sys/sys/turnstile.h
Comment 2 Mateusz Guzik freebsd_committer freebsd_triage 2018-06-02 22:39:18 UTC
Thanks for the submission!