Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110453232
D12683.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D12683.diff
View Options
Index: head/sys/dev/pms/freebsd/driver/common/lxencrypt.c
===================================================================
--- head/sys/dev/pms/freebsd/driver/common/lxencrypt.c
+++ head/sys/dev/pms/freebsd/driver/common/lxencrypt.c
@@ -41,8 +41,8 @@
#include <vm/uma.h>
-static atomic_t ioerr_queue_count;
#ifdef ENCRYPT_ENHANCE
+static atomic_t ioerr_queue_count;
/******************************************************************************
careful_write():
Index: head/sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
===================================================================
--- head/sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
+++ head/sys/dev/pms/freebsd/driver/ini/src/agtiapi.c
@@ -533,9 +533,6 @@
tiIOCTLPayload_t *pIoctlPayload;
struct agtiapi_softc *pCard;
pCard=dev->si_drv1;
- void *param1 = NULL;
- void *param2 = NULL;
- void *param3 = NULL;
U32 status = 0;
U32 retValue;
int err = 0;
@@ -649,8 +646,8 @@
status = tiCOMMgntIOCTL( &pCard->tiRoot,
pIoctlPayload,
pCard,
- param2,
- param3 );
+ NULL,
+ NULL );
if (status == IOCTL_CALL_PENDING)
{
ostiIOCTLWaitForSignal(&pCard->tiRoot,NULL, NULL, NULL);
@@ -2069,17 +2066,14 @@
/* get a ccb */
if ((pccb = agtiapi_GetCCB(pmcsc)) == NULL)
{
- ag_device_t *targ;
AGTIAPI_PRINTK("agtiapi_QueueCmnd_: GetCCB ERROR\n");
if (pmcsc != NULL)
{
+ ag_device_t *targ;
TID = INDEX(pmcsc, TID);
targ = &pmcsc->pDevList[TID];
- }
- if (targ != NULL)
- {
agtiapi_adjust_queue_depth(ccb->ccb_h.path,targ->qdepth);
- }
+ }
ccb->ccb_h.status &= ~CAM_SIM_QUEUED;
ccb->ccb_h.status &= ~CAM_STATUS_MASK;
ccb->ccb_h.status |= CAM_REQUEUE_REQ;
@@ -3089,7 +3083,6 @@
ccb_t *pccb;
int TID;
ag_device_t *targ;
- struct ccb_relsim crs;
AGTIAPI_IO( "agtiapi_StartIO: start\n" );
@@ -4345,18 +4338,6 @@
}
-int agtiapi_eh_DeviceReset( struct agtiapi_softc *pmcsc, union ccb *cmnd )
-{
- AGTIAPI_PRINTK( "agtiapi_eh_HostReset: ccb pointer %p\n",
- cmnd );
-
- if( cmnd == NULL )
- {
- printf( "agtiapi_eh_HostReset: null command, skipping reset.\n" );
- return tiInvalidHandle;
- }
- return agtiapi_DoSoftReset( pmcsc );
-}
/******************************************************************************
agtiapi_QueueCCB()
@@ -5661,8 +5642,7 @@
static void agtiapi_scan(struct agtiapi_softc *pmcsc)
{
union ccb *ccb;
- int bus, tid, lun, card_no;
- static int num=0;
+ int bus, tid, lun;
AGTIAPI_PRINTK("agtiapi_scan: start cardNO %d \n", pmcsc->cardNo);
Index: head/sys/dev/pms/freebsd/driver/ini/src/osapi.c
===================================================================
--- head/sys/dev/pms/freebsd/driver/ini/src/osapi.c
+++ head/sys/dev/pms/freebsd/driver/ini/src/osapi.c
@@ -764,7 +764,6 @@
)
{
bit32 retVal = 0;
- struct agtiapi_softc *pCard = TIROOT_TO_CARD(tiRoot);
ccb_t *pccb = (ccb_t *) tiIORequest->osData;
tiDeviceHandle_t *tiDeviceHandle = pccb->devHandle;
ag_device_t *pDevice = (ag_device_t *)tiDeviceHandle->osData;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 19, 4:12 PM (16 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16723712
Default Alt Text
D12683.diff (3 KB)
Attached To
Mode
D12683: pms/freebsd: fix compiler warnings
Attached
Detach File
Event Timeline
Log In to Comment