mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[S390] BUG to BUG_ON changes
Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
59f2e69d0f
commit
6aa0d3a922
5 changed files with 7 additions and 12 deletions
|
@ -698,8 +698,7 @@ debug_info_t *debug_register_mode(const char *name, int pages_per_area,
|
||||||
if ((uid != 0) || (gid != 0))
|
if ((uid != 0) || (gid != 0))
|
||||||
pr_warning("Root becomes the owner of all s390dbf files "
|
pr_warning("Root becomes the owner of all s390dbf files "
|
||||||
"in sysfs\n");
|
"in sysfs\n");
|
||||||
if (!initialized)
|
BUG_ON(!initialized);
|
||||||
BUG();
|
|
||||||
mutex_lock(&debug_mutex);
|
mutex_lock(&debug_mutex);
|
||||||
|
|
||||||
/* create new debug_info */
|
/* create new debug_info */
|
||||||
|
|
|
@ -134,8 +134,7 @@ void __cpuinit cpu_init(void)
|
||||||
|
|
||||||
atomic_inc(&init_mm.mm_count);
|
atomic_inc(&init_mm.mm_count);
|
||||||
current->active_mm = &init_mm;
|
current->active_mm = &init_mm;
|
||||||
if (current->mm)
|
BUG_ON(current->mm);
|
||||||
BUG();
|
|
||||||
enter_lazy_tlb(&init_mm, current);
|
enter_lazy_tlb(&init_mm, current);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -664,8 +664,7 @@ tape_3590_bread(struct tape_device *device, struct request *req)
|
||||||
ccw++;
|
ccw++;
|
||||||
dst += TAPEBLOCK_HSEC_SIZE;
|
dst += TAPEBLOCK_HSEC_SIZE;
|
||||||
}
|
}
|
||||||
if (off > bv->bv_len)
|
BUG_ON(off > bv->bv_len);
|
||||||
BUG();
|
|
||||||
}
|
}
|
||||||
ccw = tape_ccw_end(ccw, NOP, 0, NULL);
|
ccw = tape_ccw_end(ccw, NOP, 0, NULL);
|
||||||
DBF_EVENT(6, "xBREDccwg\n");
|
DBF_EVENT(6, "xBREDccwg\n");
|
||||||
|
|
|
@ -624,8 +624,7 @@ tape_alloc_request(int cplength, int datasize)
|
||||||
{
|
{
|
||||||
struct tape_request *request;
|
struct tape_request *request;
|
||||||
|
|
||||||
if (datasize > PAGE_SIZE || (cplength*sizeof(struct ccw1)) > PAGE_SIZE)
|
BUG_ON(datasize > PAGE_SIZE || (cplength*sizeof(struct ccw1)) > PAGE_SIZE);
|
||||||
BUG();
|
|
||||||
|
|
||||||
DBF_LH(6, "tape_alloc_request(%d, %d)\n", cplength, datasize);
|
DBF_LH(6, "tape_alloc_request(%d, %d)\n", cplength, datasize);
|
||||||
|
|
||||||
|
@ -782,8 +781,7 @@ static void tape_long_busy_timeout(unsigned long data)
|
||||||
device = (struct tape_device *) data;
|
device = (struct tape_device *) data;
|
||||||
spin_lock_irq(get_ccwdev_lock(device->cdev));
|
spin_lock_irq(get_ccwdev_lock(device->cdev));
|
||||||
request = list_entry(device->req_queue.next, struct tape_request, list);
|
request = list_entry(device->req_queue.next, struct tape_request, list);
|
||||||
if (request->status != TAPE_REQUEST_LONG_BUSY)
|
BUG_ON(request->status != TAPE_REQUEST_LONG_BUSY);
|
||||||
BUG();
|
|
||||||
DBF_LH(6, "%08x: Long busy timeout.\n", device->cdev_id);
|
DBF_LH(6, "%08x: Long busy timeout.\n", device->cdev_id);
|
||||||
__tape_start_next_request(device);
|
__tape_start_next_request(device);
|
||||||
device->lb_timeout.data = (unsigned long) tape_put_device(device);
|
device->lb_timeout.data = (unsigned long) tape_put_device(device);
|
||||||
|
|
|
@ -37,8 +37,8 @@ tape_std_assign_timeout(unsigned long data)
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
request = (struct tape_request *) data;
|
request = (struct tape_request *) data;
|
||||||
if ((device = request->device) == NULL)
|
device = request->device;
|
||||||
BUG();
|
BUG_ON(!device);
|
||||||
|
|
||||||
DBF_EVENT(3, "%08x: Assignment timeout. Device busy.\n",
|
DBF_EVENT(3, "%08x: Assignment timeout. Device busy.\n",
|
||||||
device->cdev_id);
|
device->cdev_id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue