diff options
26 files changed, 0 insertions, 60 deletions
diff --git a/sys/arch/aarch64/aarch64/locore.S b/sys/arch/aarch64/aarch64/locore.S index 2155991..a95475c 100644 --- a/sys/arch/aarch64/aarch64/locore.S +++ b/sys/arch/aarch64/aarch64/locore.S @@ -33,4 +33,3 @@ md_cpu_init: ldr x0, =__vectab msr vbar_el1, x0 ret - diff --git a/sys/arch/amd64/amd64/ipi.c b/sys/arch/amd64/amd64/ipi.c index bf263d3..b44a9ac 100644 --- a/sys/arch/amd64/amd64/ipi.c +++ b/sys/arch/amd64/amd64/ipi.c @@ -162,7 +162,6 @@ md_ipi_send(struct cpu_info *ci, ipi_pend_t ipi) return 0; } - /* * IPI allocation interface with * locking. diff --git a/sys/arch/amd64/amd64/uart.c b/sys/arch/amd64/amd64/uart.c index 429aa57..ea88d3c 100644 --- a/sys/arch/amd64/amd64/uart.c +++ b/sys/arch/amd64/amd64/uart.c @@ -115,4 +115,3 @@ uart_init(void) outb(UART_REG_MCR, UART_MCR_DTR); return 0; } - diff --git a/sys/crypto/siphash.c b/sys/crypto/siphash.c index e0cad44..5df2ad2 100644 --- a/sys/crypto/siphash.c +++ b/sys/crypto/siphash.c @@ -59,7 +59,6 @@ #endif - #define ROTATE(x, b) (uint64_t)( ((x) << (b)) | ( (x) >> (64 - (b))) ) #define HALF_ROUND(a,b,c,d,s,t) \ @@ -74,7 +73,6 @@ HALF_ROUND(v0,v1,v2,v3,13,16); \ HALF_ROUND(v2,v1,v0,v3,17,21); - uint64_t siphash24(const void *src, unsigned long src_sz, const char key[16]) { const uint64_t *_key = (uint64_t *)key; uint64_t k0 = _le64toh(_key[0]); diff --git a/sys/dev/acpi/uacpi/event.c b/sys/dev/acpi/uacpi/event.c index 0c58372..62412ac 100644 --- a/sys/dev/acpi/uacpi/event.c +++ b/sys/dev/acpi/uacpi/event.c @@ -1054,7 +1054,6 @@ static uacpi_status create_gpe_block( */ reg->base_idx = base_idx + (i * EVENTS_PER_GPE_REGISTER); - tmp_gas.address = address + i; ret = uacpi_map_gas_noalloc(&tmp_gas, ®->status); if (uacpi_unlikely_error(ret)) diff --git a/sys/dev/acpi/uacpi/resources.c b/sys/dev/acpi/uacpi/resources.c index a9bcb82..f1a25ec 100644 --- a/sys/dev/acpi/uacpi/resources.c +++ b/sys/dev/acpi/uacpi/resources.c @@ -602,7 +602,6 @@ static uacpi_size aml_size_for_serial_connection( #define ARG1(value) .f2.arg1 = (value) #define ARG2(value) .f3.arg2 = (value) - static const struct uacpi_resource_convert_instruction convert_irq_to_native[] = { OP(PACKED_ARRAY_16, AML_F(irq, irq_mask), NATIVE_F(irq, irqs), ARG2(NATIVE_O(irq, num_irqs))), diff --git a/sys/dev/acpi/uacpi/tables.c b/sys/dev/acpi/uacpi/tables.c index df7d7b9..3314fd1 100644 --- a/sys/dev/acpi/uacpi/tables.c +++ b/sys/dev/acpi/uacpi/tables.c @@ -1211,7 +1211,6 @@ static void gas_init_system_io( gas->access_size = 0; } - struct register_description { uacpi_size offset, xoffset; uacpi_size length_offset; diff --git a/sys/dev/acpi/uacpi/utilities.c b/sys/dev/acpi/uacpi/utilities.c index c7ca20a..059c574 100644 --- a/sys/dev/acpi/uacpi/utilities.c +++ b/sys/dev/acpi/uacpi/utilities.c @@ -963,7 +963,6 @@ static uacpi_iteration_decision find_one_device( return ctx->cb(ctx->user, node, depth); } - uacpi_status uacpi_find_devices_at( uacpi_namespace_node *parent, const uacpi_char *const *hids, uacpi_iteration_callback cb, void *user diff --git a/sys/dev/cons/cons.c b/sys/dev/cons/cons.c index d9d727a..0bb33b1 100644 --- a/sys/dev/cons/cons.c +++ b/sys/dev/cons/cons.c @@ -85,7 +85,6 @@ rgb_invert(uint32_t rgb) return ret; } - /* * Render a character onto the screen. * diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 9dfb90e..140a363 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -331,7 +331,6 @@ pci_get_device(struct pci_lookup lookup, uint16_t lookup_type) return NULL; } - void pci_add_device(struct pci_device *dev) { @@ -340,7 +339,6 @@ pci_add_device(struct pci_device *dev) spinlock_release(&devlist_lock); } - pcireg_t pci_readl(struct pci_device *dev, uint32_t offset) { diff --git a/sys/dev/video/fbdev.c b/sys/dev/video/fbdev.c index 6b1c6c8..f58a813 100644 --- a/sys/dev/video/fbdev.c +++ b/sys/dev/video/fbdev.c @@ -114,7 +114,6 @@ fbdev_init(void) dev_register(major, dev, &fb_cdevsw); devfs_create_entry(devname, major, dev, 0444); - /* Register control files */ ctl.mode = 0444; ctlfs_create_node(devname, &ctl); diff --git a/sys/include/arch/aarch64/pio.h b/sys/include/arch/aarch64/pio.h index 4aaeece..41f07fb 100644 --- a/sys/include/arch/aarch64/pio.h +++ b/sys/include/arch/aarch64/pio.h @@ -39,5 +39,4 @@ #define outw(...) __nothing #define outl(...) __nothing - #endif /* _MACHINE_PIO_H_ */ diff --git a/sys/include/crypto/chacha20.h b/sys/include/crypto/chacha20.h index d35702a..267b13c 100644 --- a/sys/include/crypto/chacha20.h +++ b/sys/include/crypto/chacha20.h @@ -44,4 +44,3 @@ void chacha20_init(uint32_t state[16], const uint8_t key[32], void chacha20_block(uint32_t state[16], uint8_t out[64]); void chacha20_encrypt(uint32_t state[16], uint8_t *in, uint8_t *out, size_t len); - diff --git a/sys/include/dev/acpi/uacpi/uacpi/internal/namespace.h b/sys/include/dev/acpi/uacpi/uacpi/internal/namespace.h index 369c5a4..045e402 100644 --- a/sys/include/dev/acpi/uacpi/uacpi/internal/namespace.h +++ b/sys/include/dev/acpi/uacpi/uacpi/internal/namespace.h @@ -42,7 +42,6 @@ void uacpi_deinitialize_namespace(void); uacpi_namespace_node *uacpi_namespace_node_alloc(uacpi_object_name name); void uacpi_namespace_node_unref(uacpi_namespace_node *node); - uacpi_status uacpi_namespace_node_type_unlocked( const uacpi_namespace_node *node, uacpi_object_type *out_type ); diff --git a/sys/include/dev/acpi/uacpi/uacpi/platform/config.h b/sys/include/dev/acpi/uacpi/uacpi/platform/config.h index dff043f..b594338 100644 --- a/sys/include/dev/acpi/uacpi/uacpi/platform/config.h +++ b/sys/include/dev/acpi/uacpi/uacpi/platform/config.h @@ -67,7 +67,6 @@ UACPI_BUILD_BUG_ON_WITH_MSG( */ // #define UACPI_SIZED_FREES - /* * Makes uacpi_kernel_alloc_zeroed mandatory to implement by the host, uACPI * will not provide a default implementation if this is enabled. diff --git a/sys/include/dev/acpi/uacpi/uacpi/utilities.h b/sys/include/dev/acpi/uacpi/uacpi/utilities.h index dfc41c3..d7042e9 100644 --- a/sys/include/dev/acpi/uacpi/uacpi/utilities.h +++ b/sys/include/dev/acpi/uacpi/uacpi/utilities.h @@ -128,7 +128,6 @@ uacpi_status uacpi_eval_cls(uacpi_namespace_node*, uacpi_id_string **out_id); */ uacpi_status uacpi_eval_uid(uacpi_namespace_node*, uacpi_id_string **out_uid); - // uacpi_namespace_node_info->flags #define UACPI_NS_NODE_INFO_HAS_ADR (1 << 0) #define UACPI_NS_NODE_INFO_HAS_HID (1 << 1) diff --git a/sys/include/dev/ic/nvmevar.h b/sys/include/dev/ic/nvmevar.h index 8dbc7b9..f361d0a 100644 --- a/sys/include/dev/ic/nvmevar.h +++ b/sys/include/dev/ic/nvmevar.h @@ -200,7 +200,6 @@ struct nvme_rw_cmd { uint16_t appmask; }; - struct nvme_cmd { union { struct nvme_identify_cmd identify; diff --git a/sys/include/sys/exec.h b/sys/include/sys/exec.h index aa2a729..43df59f 100644 --- a/sys/include/sys/exec.h +++ b/sys/include/sys/exec.h @@ -32,7 +32,6 @@ #include <sys/types.h> - /* Danger: Do not change these !! */ #define AT_NULL 0 #define AT_ENTRY 1 diff --git a/sys/include/sys/mmio.h b/sys/include/sys/mmio.h index 9f6e4e2..0fa9e36 100644 --- a/sys/include/sys/mmio.h +++ b/sys/include/sys/mmio.h @@ -42,7 +42,6 @@ #if defined(_KERNEL) - /* * mmio_write<n> - Writes to MMIO address with specific size * diff --git a/sys/include/sys/queue.h b/sys/include/sys/queue.h index 92c1ff2..2226ccc 100644 --- a/sys/include/sys/queue.h +++ b/sys/include/sys/queue.h @@ -84,7 +84,6 @@ struct { \ ((tvar) = TAILQ_NEXT(var, field), 1); \ (var) = (tvar)) - #define TAILQ_FOREACH_REVERSE(var, head, headname, field) \ for((var) = TAILQ_LAST(head, headname); \ (var) != TAILQ_END(head); \ diff --git a/sys/include/sys/tree.h b/sys/include/sys/tree.h index 1054ade..6954185 100644 --- a/sys/include/sys/tree.h +++ b/sys/include/sys/tree.h @@ -746,7 +746,6 @@ name##_RB_MINMAX(struct name *head, int val) \ ((x) != NULL) && ((y) = name##_RB_PREV(x), 1); \ (x) = (y)) - /* * Copyright (c) 2016 David Gwynne <dlg@openbsd.org> * diff --git a/sys/include/vm/vm_pager.h b/sys/include/vm/vm_pager.h index e0503e0..4732234 100644 --- a/sys/include/vm/vm_pager.h +++ b/sys/include/vm/vm_pager.h @@ -40,7 +40,6 @@ struct vm_pagerops; extern const struct vm_pagerops vm_vnops; extern const struct vm_pagerops vm_anonops; - /* * Pager operations. * diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c deleted file mode 100644 index 2755ea0..0000000 --- a/sys/kern/kern_fork.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2023-2025 Ian Marco Moffett and the Osmora Team. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of Hyra nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include <sys/types.h> -#include <sys/proc.h> - - diff --git a/sys/kern/kern_spawn.c b/sys/kern/kern_spawn.c index 7962ced..12f3d16 100644 --- a/sys/kern/kern_spawn.c +++ b/sys/kern/kern_spawn.c @@ -112,7 +112,6 @@ waitpid(pid_t pid, int *wstatus, int options) sched_yield(); } - /* Give back the status */ if (wstatus != NULL) { copyout(&child->exit_status, wstatus, sizeof(*wstatus)); diff --git a/sys/kern/kern_uio.c b/sys/kern/kern_uio.c index 2ec1532..5cdd8f6 100644 --- a/sys/kern/kern_uio.c +++ b/sys/kern/kern_uio.c @@ -235,7 +235,6 @@ uio_copyin(const struct iovec *u_iov, struct iovec *k_iov, int iovcnt) return 0; } - /* * Validate iovecs going out from kernel space (us) * before actually sending it out. diff --git a/sys/vm/vm_physmem.c b/sys/vm/vm_physmem.c index 0bd2d54..42b7a31 100644 --- a/sys/vm/vm_physmem.c +++ b/sys/vm/vm_physmem.c @@ -116,7 +116,6 @@ physmem_alloc_bitmap(void) } } - /* * Init the physical memory bitmap. */ |