From nobody Fri Nov 24 18:32:41 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ScNrT5MJLz52B3r; Fri, 24 Nov 2023 18:32:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ScNrT3srYz3FJW; Fri, 24 Nov 2023 18:32:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700850761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KQhW2knvOHnN3s2PxrzcTFExdbE6IibhIkkEdeMjhlk=; b=kxuHkDI17ZDE3AP6jMxVbS3aYNyGFM+igN406iBtUAjU3nU2R35g7XmrMJ69EBbpW1h14o QmmizSbqn+tcTPYGnuK6NidkSJa7pfH+eImlpe6wCAguafs4PhOwamco0cKkOyM5KX+ra6 IT2F06KI1LWe6yN7ZXVrRaPxREvmzrzzUMMnSUboEepa+VM50Jb/Px8eLcg4Ck0AAnso3O tUrIpWdfssBtcJOp+BMEUVm0elM5Q4iYh8wiYue9np4MjFkaUPg4O+BXRTpMWVsO7TmLO3 VUZUPEsTqAxZplcj2n3jGPFYBSn1yzNrvYwqmYU/9Al/2Ux04SvJKSIXf2wb5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700850761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KQhW2knvOHnN3s2PxrzcTFExdbE6IibhIkkEdeMjhlk=; b=jz8sUa3QZ0zGCouH0hcI4Z7jMFn1I9JB7oZ40YOUOImzlLdEYfBatsWTJVqYAmE8iiz/Oi gpfROrM6Vh4RvEQ0qaImfxqWOQ5w3xx5LCItSooVFjcEz4++pEX5jlaizy3O988iHFc4fD HUFHZ16l43mDpEZf0qCvNFEUOF0+RI9NhTTzaTbXaTsjZfpAigRUAEr+4yfXOGMnDz4dAH Bg7L0FnWMvGRXwDwQmCSjW/ErrKVYDnNepGYJr05FNRGCJh1Y43RiY1ocbTmmbK25yp4Yi otlqc6Drw28+A2oKxwOeVgjxWEa9fS5+P7Xh8UsMU/YPbfPL7K9Kwui1/WfI5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700850761; a=rsa-sha256; cv=none; b=Iyf0eDBkT4svJRIE9n/bzUD735qDQTjNp4Yxop4OdqdrZ6MKcu642GJjR0ERtKNWKHKUBf X6S+SVCP6hhiI2a4NKsp1vPtE45/SPvTNnpHth/fry0ADR7RGMGoLz1GnTwsn1W5R39RJZ ZSL91XBhT1fwNQ9v7Z+uJ1w4cFd0JB0szQxKEnL5IJpatekAI7mhPoyOggC0VYuLLDIbNg JIzH72/fsZoG9jF7C8FusaqXezGqVB7djPqtGZIcI/G3KTh5Yritioo6FevAeFdoUOV4lT j+RBFc8ql/sLgsOis/Jcc32wkVAuNahkiLcqsXe75Xp7AU4KvEfgz7bDlL/66g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ScNrT2xzTzwpd; Fri, 24 Nov 2023 18:32:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AOIWfue068270; Fri, 24 Nov 2023 18:32:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AOIWfvs068267; Fri, 24 Nov 2023 18:32:41 GMT (envelope-from git) Date: Fri, 24 Nov 2023 18:32:41 GMT Message-Id: <202311241832.3AOIWfvs068267@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: e0e508153866 - main - ata: Retire unused variable / externs List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e0e508153866947115d1f855a31d83cdaf49aa68 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e0e508153866947115d1f855a31d83cdaf49aa68 commit e0e508153866947115d1f855a31d83cdaf49aa68 Author: Warner Losh AuthorDate: 2023-11-24 18:27:38 +0000 Commit: Warner Losh CommitDate: 2023-11-24 18:27:38 +0000 ata: Retire unused variable / externs When looking for something else, I noticed these are no longer used anywhere. Sponsored by: Netflix --- sys/dev/ata/ata-all.c | 3 +-- sys/dev/ata/ata-all.h | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index dae833bbd849..c12043c9915d 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -71,7 +71,6 @@ static int ata_str2mode(const char *str); /* global vars */ MALLOC_DEFINE(M_ATA, "ata_generic", "ATA driver generic layer"); -int (*ata_raid_ioctl_func)(u_long cmd, caddr_t data) = NULL; devclass_t ata_devclass; int ata_dma_check_80pin = 1; @@ -428,7 +427,7 @@ void ata_udelay(int interval) { /* for now just use DELAY, the timer/sleep subsystems are not there yet */ - if (1 || interval < (1000000/hz) || ata_delayed_attach) + if (1 || interval < (1000000/hz)) DELAY(interval); else pause("ataslp", interval/(1000000/hz)); diff --git a/sys/dev/ata/ata-all.h b/sys/dev/ata/ata-all.h index 41faa271abda..056a391cb621 100644 --- a/sys/dev/ata/ata-all.h +++ b/sys/dev/ata/ata-all.h @@ -450,11 +450,7 @@ struct ata_channel { #define ATA_LED_MASK 0x03 /* externs */ -extern int (*ata_raid_ioctl_func)(u_long cmd, caddr_t data); -extern struct intr_config_hook *ata_delayed_attach; extern devclass_t ata_devclass; -extern int ata_wc; -extern int ata_setmax; extern int ata_dma_check_80pin; /* public prototypes */