riscv: clean up empty lines in .c and .h files
This commit is contained in:
parent
c3aa3bf97c
commit
e91d4ae878
@ -117,7 +117,6 @@ ATOMIC_FCMPSET_ACQ_REL(16);
|
||||
#define atomic_fcmpset_acq_char atomic_fcmpset_acq_8
|
||||
#define atomic_fcmpset_rel_char atomic_fcmpset_rel_8
|
||||
|
||||
|
||||
#define atomic_cmpset_short atomic_cmpset_16
|
||||
#define atomic_cmpset_acq_short atomic_cmpset_acq_16
|
||||
#define atomic_cmpset_rel_short atomic_cmpset_rel_16
|
||||
|
@ -89,7 +89,6 @@
|
||||
#define BUS_SPACE_BARRIER_READ 0x01
|
||||
#define BUS_SPACE_BARRIER_WRITE 0x02
|
||||
|
||||
|
||||
struct bus_space {
|
||||
/* cookie */
|
||||
void *bs_cookie;
|
||||
@ -256,7 +255,6 @@ struct bus_space {
|
||||
bus_size_t, const u_int64_t *, bus_size_t);
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Utility macros; INTERNAL USE ONLY.
|
||||
*/
|
||||
@ -282,7 +280,6 @@ struct bus_space {
|
||||
#define __bs_nonsingle_s(type, sz, t, h, o, a, c) \
|
||||
(*(t)->__bs_opname_s(type,sz))((t)->bs_cookie, h, o, a, c)
|
||||
|
||||
|
||||
/*
|
||||
* Mapping and unmapping operations.
|
||||
*/
|
||||
@ -293,7 +290,6 @@ struct bus_space {
|
||||
#define bus_space_subregion(t, h, o, s, hp) \
|
||||
(*(t)->bs_subregion)((t)->bs_cookie, (h), (o), (s), (hp))
|
||||
|
||||
|
||||
/*
|
||||
* Allocation and deallocation operations.
|
||||
*/
|
||||
@ -309,8 +305,6 @@ struct bus_space {
|
||||
#define bus_space_barrier(t, h, o, l, f) \
|
||||
(*(t)->bs_barrier)((t)->bs_cookie, (h), (o), (l), (f))
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Bus read (single) operations.
|
||||
*/
|
||||
@ -345,7 +339,6 @@ struct bus_space {
|
||||
#define bus_space_read_multi_stream_8(t, h, o, a, c) \
|
||||
__bs_nonsingle_s(rm,8,(t),(h),(o),(a),(c))
|
||||
|
||||
|
||||
/*
|
||||
* Bus read region operations.
|
||||
*/
|
||||
@ -367,7 +360,6 @@ struct bus_space {
|
||||
#define bus_space_read_region_stream_8(t, h, o, a, c) \
|
||||
__bs_nonsingle_s(rr,8,(t),(h),(o),(a),(c))
|
||||
|
||||
|
||||
/*
|
||||
* Bus write (single) operations.
|
||||
*/
|
||||
@ -381,7 +373,6 @@ struct bus_space {
|
||||
#define bus_space_write_stream_4(t, h, o, v) __bs_ws_s(4,(t),(h),(o),(v))
|
||||
#define bus_space_write_stream_8(t, h, o, v) __bs_ws_s(8,(t),(h),(o),(v))
|
||||
|
||||
|
||||
/*
|
||||
* Bus write multiple operations.
|
||||
*/
|
||||
@ -403,7 +394,6 @@ struct bus_space {
|
||||
#define bus_space_write_multi_stream_8(t, h, o, a, c) \
|
||||
__bs_nonsingle_s(wm,8,(t),(h),(o),(a),(c))
|
||||
|
||||
|
||||
/*
|
||||
* Bus write region operations.
|
||||
*/
|
||||
@ -425,7 +415,6 @@ struct bus_space {
|
||||
#define bus_space_write_region_stream_8(t, h, o, a, c) \
|
||||
__bs_nonsingle_s(wr,8,(t),(h),(o),(a),(c))
|
||||
|
||||
|
||||
/*
|
||||
* Set multiple operations.
|
||||
*/
|
||||
@ -438,7 +427,6 @@ struct bus_space {
|
||||
#define bus_space_set_multi_8(t, h, o, v, c) \
|
||||
__bs_set(sm,8,(t),(h),(o),(v),(c))
|
||||
|
||||
|
||||
/*
|
||||
* Set region operations.
|
||||
*/
|
||||
@ -451,7 +439,6 @@ struct bus_space {
|
||||
#define bus_space_set_region_8(t, h, o, v, c) \
|
||||
__bs_set(sr,8,(t),(h),(o),(v),(c))
|
||||
|
||||
|
||||
/*
|
||||
* Copy operations.
|
||||
*/
|
||||
|
@ -400,7 +400,6 @@ bounce_bus_dmamap_destroy(bus_dma_tag_t dmat, bus_dmamap_t map)
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Allocate a piece of memory that can be efficiently mapped into
|
||||
* bus device space based on the constraints lited in the dma tag.
|
||||
@ -813,7 +812,6 @@ bounce_bus_dmamap_load_buffer(bus_dma_tag_t dmat, bus_dmamap_t map, void *buf,
|
||||
if (map->sync_count == 0 ||
|
||||
(kvaddr != 0 && kvaddr != sl_vend) ||
|
||||
(curaddr != sl_pend)) {
|
||||
|
||||
if (++map->sync_count > dmat->common.nsegments)
|
||||
goto cleanup;
|
||||
sl++;
|
||||
|
@ -173,7 +173,6 @@ fill_elf_hwcap(void *dummy __unused)
|
||||
elf_hwcap &= hwcap;
|
||||
else
|
||||
elf_hwcap = hwcap;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -121,4 +121,3 @@ memrw(struct cdev *dev, struct uio *uio, int flags)
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
@ -117,7 +117,6 @@ static device_method_t nexus_methods[] = {
|
||||
DEVMETHOD(bus_deactivate_resource, nexus_deactivate_resource),
|
||||
DEVMETHOD(bus_setup_intr, nexus_setup_intr),
|
||||
DEVMETHOD(bus_teardown_intr, nexus_teardown_intr),
|
||||
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
@ -193,7 +192,6 @@ nexus_add_child(device_t bus, u_int order, const char *name, int unit)
|
||||
return (child);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Allocate a resource on behalf of child. NB: child is usually going to be a
|
||||
* child of one of our descendants, not a direct child of nexus0.
|
||||
@ -349,7 +347,6 @@ nexus_set_resource(device_t dev, device_t child, int type, int rid,
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
nexus_deactivate_resource(device_t bus, device_t child, int type, int rid,
|
||||
struct resource *r)
|
||||
|
@ -543,7 +543,6 @@ pmap_bootstrap_l3(vm_offset_t l1pt, vm_offset_t va, vm_offset_t l3_start)
|
||||
l3pt += PAGE_SIZE;
|
||||
}
|
||||
|
||||
|
||||
/* Clean the L2 page table */
|
||||
memset((void *)l3_start, 0, l3pt - l3_start);
|
||||
|
||||
@ -986,7 +985,6 @@ pmap_map(vm_offset_t *virt, vm_paddr_t start, vm_paddr_t end, int prot)
|
||||
return PHYS_TO_DMAP(start);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Add a list of wired pages to the kva
|
||||
* this routine is only used for temporary
|
||||
@ -1381,7 +1379,6 @@ pmap_alloc_l3(pmap_t pmap, vm_offset_t va, struct rwlock **lockp)
|
||||
return (m);
|
||||
}
|
||||
|
||||
|
||||
/***************************************************
|
||||
* Pmap allocation/deallocation routines.
|
||||
***************************************************/
|
||||
@ -1507,7 +1504,6 @@ pmap_growkernel(vm_offset_t addr)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***************************************************
|
||||
* page management routines.
|
||||
***************************************************/
|
||||
|
@ -70,7 +70,6 @@ sbi_get_mvendorid(void)
|
||||
return (SBI_CALL0(SBI_EXT_ID_BASE, SBI_BASE_GET_MVENDORID));
|
||||
}
|
||||
|
||||
|
||||
static struct sbi_ret
|
||||
sbi_get_marchid(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user