From patchwork Sun Mar 30 05:54:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmed Salem X-Patchwork-Id: 14032827 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8763817C2; Sun, 30 Mar 2025 05:54:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743314097; cv=none; b=gOFw/phuaF4fQzLQ9/IlQ9obMeB/V+WAUvHsTBMX4nJ7Em0tHxXpfljcjeeEezj+0RNIbCTDqSDV35ZTcTqRJ2MhtO43ye2G4BHFcG7puqRPDa7hxwKO+UjnEC+79e5qr0VnH86jePNky6rEeJUZLd8Pn1p6KyNKekLLaJW4a5o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743314097; c=relaxed/simple; bh=6p8gncaaZsHPc5k3Qs2ZLsncfJuQGvSixclKj5eyQLw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=V62ZETbRle0UMDvB/qm66BLA6k7cfUD5z/7hUtz9NMoK+XYOJIlVEoglxHOIcOd7LPYiPbxOYEOcSRywBcj2ibWjq8IdcaXOJyszZhLrNoqRrvDkpZslVENeDnu9ezkqVfQaE7SZtJABdwkNU6/2T7+qyr7IkoZ51IYmKHSvPJg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ln3XgHIC; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ln3XgHIC" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-ac2af2f15d1so452914966b.1; Sat, 29 Mar 2025 22:54:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743314094; x=1743918894; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=LZS5hChiziL0zECiXtf+2ICQEzuKraJOFVrf1WXGBpo=; b=Ln3XgHICO3pkubsy+qBzV8NjDOrPbTSJN8Q1Dz1oRlPg/+WL/xwSWeCEkdds5/Kbg0 ptPuhHS8atkyczWHA72rsEv6XzU5kG78/c6jJy83pt/nxckswwMChTemrwrpdAKvON2N lwiLf9vQSLhcwLTIU3w0jDpt8jjXixUZuvRFDSqVUXnqbPDxa+6II7IiaF6Xgwc4hOFn 7A+qQgkLqbvRXSzauw9bdormpCA4lEHwA/zl7sBTkSfZ+FEcKhBJesJdM5hNqcXPc19x 8Kiu7ZLQGJ1RE9bNjhfdUrg+eZ3kStoiKBXKUbCgasrfTE724E+Ogyq5L3gVeX2C7LmK 6edA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743314094; x=1743918894; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LZS5hChiziL0zECiXtf+2ICQEzuKraJOFVrf1WXGBpo=; b=encZSJE8pjQsci/JvWpopnvUXvKBxoEZZqPXfOLKuOLtuikg2S4XYxQCe5RvvTjVoK qo9zJyh9J5xy4rMyS+DWVTL3MAjGNa+30ahyEw0xwJyxH6xdig1q6rh5WWWxSYPd82f1 xnOVX033A1Llmrgqub3uXQaD6NA9lCRDzRmWfpUuXfTmQJGz+X40gEBGxAnRcLmnLpMX /ctJAQc56RF5sfjS7pzFIL04w7HS/GFp4mLMR1Z9YElLyipmJZst1Byjfiht0IUQbbiy KZAgn+cAcoNt4FHt8/tOjnIlLs53eYtu44Ap4oZLfxkmzPGhztq77/uXwT6+oKMyCXPg uiLQ== X-Forwarded-Encrypted: i=1; AJvYcCWGaJfY6Wl6vptABiiUA0M4rCnr90QPJnXNK6u1tG75qFR8HHcGP0Cbqiq/CEnBeKA0SB3TwfZ+Yk0iQivD@vger.kernel.org, AJvYcCWdS3OTMM6yj98qsws4WinOHRY3YRI9OyzcF7CB9ysOd/tkkV3a/iRHxD3VFRDOLjVdcEVf+DPUS/Aq@vger.kernel.org X-Gm-Message-State: AOJu0YzVJ83sgPMNuZyqDWih8TDQwVYwLjNKgdc0YZFVMr9wei9teT6N LJOjvBaWhrQadg+e9+8li0tEclBrRPDK94kYUHrqiq9SpLHFNKdv X-Gm-Gg: ASbGncsAETgwnZx8m7V4uaj1Leg83OC6YQFM+8fOcC0Tj99+3byBAJzJq468Z/15TrP nX00MAvLkdHA25a90R9AiiJZQNwRKA3l3S6aIQ2/IEjNlvBlO8clEqUfq2sYRSYU/uQp1khEkZU JN4a2OxKqIKO4TTLXjpgv5CTIn7jE7iPhIlsG2XTaDPqbOb5/fQm/gDOWde4trcc4MKrjTYFlwI uga9XKbhCA7RnuexrAKU0tFkwIQVKGcnq2stzx9eXsu05lEyBMJSNNHB29VX1Ob/EW9z43zPS2N Rer/yOMd8K5ek2VUzdAk0oU21dewgzq4kqAFd9e7XK+2RJdx7rMMouNuB374SRNDxko= X-Google-Smtp-Source: AGHT+IE87WJv0/ZzDl3FXShm+jTRY2Te+7Zv9PYAX8DvccPdhOEnetOp/txCzMreLmUt78hsaQBNgA== X-Received: by 2002:a17:907:7f07:b0:ac2:55f2:f939 with SMTP id a640c23a62f3a-ac738975e33mr385096066b.6.1743314093493; Sat, 29 Mar 2025 22:54:53 -0700 (PDT) Received: from localhost (44.tor-exit.nothingtohide.nl. [192.42.116.218]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-ac71922ba63sm433884266b.2.2025.03.29.22.54.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Mar 2025 22:54:53 -0700 (PDT) Date: Sun, 30 Mar 2025 07:54:50 +0200 From: Ahmed Salem To: robert.moore@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org Cc: skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [RFC PATCH 1/2] ACPI: mark ACPI_COPY_NAMESEG destinations with __nonstring attribute Message-ID: References: Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: strncpy(), which ACPI_COPY_NAMESEG currently uses, is deprecated[1]. This patch is the first of two, ultimately replacing strncpy() with strtomem(), avoiding future compiler warnings about truncation. [1] https://github.com/KSPP/linux/issues/90 Signed-off-by: Ahmed Salem --- drivers/acpi/acpica/acdebug.h | 2 +- drivers/acpi/prmt.c | 2 +- drivers/acpi/sysfs.c | 4 ++-- include/acpi/actbl.h | 6 +++--- tools/power/acpi/os_specific/service_layers/oslinuxtbl.c | 2 +- tools/power/acpi/tools/acpidump/apfiles.c | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/acpi/acpica/acdebug.h b/drivers/acpi/acpica/acdebug.h index 911875c5a5f1..2b56a8178f43 100644 --- a/drivers/acpi/acpica/acdebug.h +++ b/drivers/acpi/acpica/acdebug.h @@ -37,7 +37,7 @@ struct acpi_db_argument_info { struct acpi_db_execute_walk { u32 count; u32 max_count; - char name_seg[ACPI_NAMESEG_SIZE + 1]; + char name_seg[ACPI_NAMESEG_SIZE + 1] __nonstring; }; #define PARAM_LIST(pl) pl diff --git a/drivers/acpi/prmt.c b/drivers/acpi/prmt.c index e549914a636c..ca70f01c940c 100644 --- a/drivers/acpi/prmt.c +++ b/drivers/acpi/prmt.c @@ -40,7 +40,7 @@ struct prm_buffer { }; struct prm_context_buffer { - char signature[ACPI_NAMESEG_SIZE]; + char signature[ACPI_NAMESEG_SIZE] __nonstring; u16 revision; u16 reserved; guid_t identifier; diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index a48ebbf768f9..a05d4032d4f1 100644 --- a/drivers/acpi/sysfs.c +++ b/drivers/acpi/sysfs.c @@ -307,9 +307,9 @@ static struct kobject *hotplug_kobj; struct acpi_table_attr { struct bin_attribute attr; - char name[ACPI_NAMESEG_SIZE]; + char name[ACPI_NAMESEG_SIZE] __nonstring; int instance; - char filename[ACPI_NAMESEG_SIZE+ACPI_INST_SIZE]; + char filename[ACPI_NAMESEG_SIZE+ACPI_INST_SIZE] __nonstring; struct list_head node; }; diff --git a/include/acpi/actbl.h b/include/acpi/actbl.h index 451f6276da49..8aa60281e7db 100644 --- a/include/acpi/actbl.h +++ b/include/acpi/actbl.h @@ -66,12 +66,12 @@ ******************************************************************************/ struct acpi_table_header { - char signature[ACPI_NAMESEG_SIZE]; /* ASCII table signature */ + char signature[ACPI_NAMESEG_SIZE] __nonstring; /* ASCII table signature */ u32 length; /* Length of table in bytes, including this header */ u8 revision; /* ACPI Specification minor version number */ u8 checksum; /* To make sum of entire table == 0 */ - char oem_id[ACPI_OEM_ID_SIZE]; /* ASCII OEM identification */ - char oem_table_id[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */ + char oem_id[ACPI_OEM_ID_SIZE] __nonstring; /* ASCII OEM identification */ + char oem_table_id[ACPI_OEM_TABLE_ID_SIZE] __nonstring; /* ASCII OEM table identification */ u32 oem_revision; /* OEM revision number */ char asl_compiler_id[ACPI_NAMESEG_SIZE]; /* ASCII ASL compiler vendor ID */ u32 asl_compiler_revision; /* ASL compiler version */ diff --git a/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c b/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c index 9d70d8c945af..52026b9e389e 100644 --- a/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c +++ b/tools/power/acpi/os_specific/service_layers/oslinuxtbl.c @@ -19,7 +19,7 @@ ACPI_MODULE_NAME("oslinuxtbl") typedef struct osl_table_info { struct osl_table_info *next; u32 instance; - char signature[ACPI_NAMESEG_SIZE]; + char signature[ACPI_NAMESEG_SIZE] __nonstring; } osl_table_info; diff --git a/tools/power/acpi/tools/acpidump/apfiles.c b/tools/power/acpi/tools/acpidump/apfiles.c index 13817f9112c0..5a39b7d9351d 100644 --- a/tools/power/acpi/tools/acpidump/apfiles.c +++ b/tools/power/acpi/tools/acpidump/apfiles.c @@ -103,7 +103,7 @@ int ap_open_output_file(char *pathname) int ap_write_to_binary_file(struct acpi_table_header *table, u32 instance) { - char filename[ACPI_NAMESEG_SIZE + 16]; + char filename[ACPI_NAMESEG_SIZE + 16] __nonstring; char instance_str[16]; ACPI_FILE file; acpi_size actual; From patchwork Sun Mar 30 05:55:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmed Salem X-Patchwork-Id: 14032828 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1B7A8632C; Sun, 30 Mar 2025 05:55:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743314125; cv=none; b=j0HBmJqcIi9BbPsFjgqX37VsINzAwP6LPg7cdaF70KQM+SyS2ZsyvpDO8NSSFyWNICYcOASOn5dzr3xFFrxWPkVTO/digWtT/a/I+gUT0kGgn0SNHEpf7nLoQ0Sra97Pn6QvDY+PJ79HvF/IMAtjYZy5z7K5tUb9MkopiUnEUFY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743314125; c=relaxed/simple; bh=jq+T0KY3Uy+rx4nE/vr2dkayKbNzmAXvHQY/LI1TJw4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iqFIN7rtLx/O3SIVpGbA1htSgi8sbg0CIP8PF8dx7tDKi61Z0dI4q1QU793WawQCEe91qX9KA7366iGEMr9dQ/rsPgaan6sb6IkZKwDmlvueyevkc8muOmXyx329EHmOIb5tYw3gU1MU022RwIJtyf5V6iqH9mg5emewN4p7pJw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MWOcUPgE; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MWOcUPgE" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-ac298c8fa50so570535166b.1; Sat, 29 Mar 2025 22:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743314122; x=1743918922; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=6PpTlh5KVVgsGhCGF4y/CrrtuRXsy3r6ZCRQJL7GKJ8=; b=MWOcUPgEcqvRSJY2VK2B8XAMZsFPxy/kM75X/jDVzADq0GlFfOTq9jbQagM6wF2Adq K+nKhupoodiWcXC1I8YXEZsFkcmlxHkf34hbp+vQtAt3NBvq8J+Rd5rNP7+HZ+zMHnbb ow1Esu4sL4FTXW/FMpyxHlivQD8eC2LS2f1HHPnlKNl9owktGKpJkBiVmZkVpyb2kwO2 O+8Atvzuvku2g0bP9HgxySGun3oDsgMgfkbT9KQGKEBQnxDOQcbrOM+vwDtb/xo8qk8X iIiuh/wziNuktPh1sMFa5IPqgz5+f+lNxmZRIX/xpE/w8+bzl74eXsvxMNuH75CYfL7p R0Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743314122; x=1743918922; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6PpTlh5KVVgsGhCGF4y/CrrtuRXsy3r6ZCRQJL7GKJ8=; b=MdhwVLyBX243/Mvj62Hy1k8SdrCN3dA+qTZyfz6/ZYALKGjaB14Dvh2AIs3uYw5KI5 AcmSx3yjuWCh66MMdgq1PalXupXjuidoI9KA3grXna3kfROzTDKF1p+3C3laejkbYYh2 QuulIJvpUF9iG90+ddmv8QhN56Xuxn7wxc1QvWk0BnQUr7FJLFPkKGXCJMGA0Vz49TwX VnvtrxifEZzcaOHkYOYs7apy8K32YkS877Pt4LrymTYA6qvcEfyP1GCxpox5g+KekOrO 8FA704uyeG5Vka628WJuqRbdQjEaKC523y0Y+Q8gcWYjhYLKA2wUFFvngrLFQnkSfRY2 2Zvw== X-Forwarded-Encrypted: i=1; AJvYcCU+uTVbaQceqTSR25XreVMDPx3CkSEY+uKk1CKMPGZ4522ARrNnh9eLR8HyZc/C3w4fSQhBuacuW4HE@vger.kernel.org, AJvYcCWIe/bXDSp+9gZ4AZV7rKMCCCp+UQTiEohBaqzdk7hbUDEa2TBLJkVcoj0HTdf8UOr7t+jzptPU/AcV/8Nm@vger.kernel.org X-Gm-Message-State: AOJu0Yw5rAnA9b86CJixdyl8GCCGi+M9rVkfoz/J4N+cZsL9aAk+6tCU +2Veljg9MVEaL3R7h4azPqU5XYPSrRrMPotoqtHUpaFTx7UjswkrZfT6ci4e6ez4fBp9 X-Gm-Gg: ASbGncvQVNbDy524r5Cph901KGOEf3enMZgKhCEOAaepfaxcuGm81mxuvdRikSkKcZi 8LarsxJSlYOFvPqJ/Cqs1A3+V9fYh7PXULUTCWR8vfWeJDnbG52jtc8VD0IW+Rte9r7HUu9i+Q0 gdJTfqfHSLpseneFkEJBxz3d+Pinhfyk/s/EvpNFdaAmDEeowwfvAOJrfC4WklG7jWlcY6Zx8bF iCCTvovQstFbV2crchAGE0l6jqWw3yP2EE2hgQ2nqF4a1Z/dIy5U1s7DKOrEU5eLwRnV7kaF5gM mSTzQoAS+3bUolsGaJbGy1RLupFkKUgdFtetWrEuhJui1vBKL8irlkir X-Google-Smtp-Source: AGHT+IGos8Q7srbIrNbIAkO4sMWeffy1fVcgAryd53kfETkDp506bEMrCTcyjRgqYm0R6nLDH4kAow== X-Received: by 2002:a17:907:6092:b0:ac3:8aa5:53f6 with SMTP id a640c23a62f3a-ac738a0c683mr434267666b.24.1743314121909; Sat, 29 Mar 2025 22:55:21 -0700 (PDT) Received: from localhost (44.tor-exit.nothingtohide.nl. [192.42.116.218]) by smtp.gmail.com with UTF8SMTPSA id 4fb4d7f45d1cf-5edc16aae7asm3872618a12.2.2025.03.29.22.55.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Mar 2025 22:55:21 -0700 (PDT) Date: Sun, 30 Mar 2025 07:55:18 +0200 From: Ahmed Salem To: robert.moore@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org Cc: skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [RFC PATCH 2/2] ACPI: replace deprecated strncpy() with strtomem() Message-ID: <6c1a263a89712b5cdc2a6752a91bb9f71f379a2a.1743313252.git.x0rw3ll@gmail.com> References: Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: strncpy() is deprecated for NUL-terminated destination buffers[1]. Use strtomem() for ACPI_COPY_NAMESEG() as destinations are length-bounded, and not all of them require NUL termination. Also replace strncpy() with memcpy() for copying header.oem_id and header.oem_table_id [1] https://github.com/KSPP/linux/issues/90 Signed-off-by: Ahmed Salem --- drivers/acpi/acpica/tbfind.c | 4 ++-- include/acpi/actypes.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpica/tbfind.c b/drivers/acpi/acpica/tbfind.c index 1c1b2e284bd9..35f72dffc250 100644 --- a/drivers/acpi/acpica/tbfind.c +++ b/drivers/acpi/acpica/tbfind.c @@ -57,8 +57,8 @@ acpi_tb_find_table(char *signature, memset(&header, 0, sizeof(struct acpi_table_header)); ACPI_COPY_NAMESEG(header.signature, signature); - strncpy(header.oem_id, oem_id, ACPI_OEM_ID_SIZE); - strncpy(header.oem_table_id, oem_table_id, ACPI_OEM_TABLE_ID_SIZE); + memcpy(header.oem_id, oem_id, ACPI_OEM_ID_SIZE); + memcpy(header.oem_table_id, oem_table_id, ACPI_OEM_TABLE_ID_SIZE); /* Search for the table */ diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index 80767e8bf3ad..b85dec57f00d 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h @@ -522,7 +522,7 @@ typedef u64 acpi_integer; #define ACPI_COPY_NAMESEG(dest,src) (*ACPI_CAST_PTR (u32, (dest)) = *ACPI_CAST_PTR (u32, (src))) #else #define ACPI_COMPARE_NAMESEG(a,b) (!strncmp (ACPI_CAST_PTR (char, (a)), ACPI_CAST_PTR (char, (b)), ACPI_NAMESEG_SIZE)) -#define ACPI_COPY_NAMESEG(dest,src) (strncpy (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char, (src)), ACPI_NAMESEG_SIZE)) +#define ACPI_COPY_NAMESEG(dest, src) (strtomem (ACPI_CAST_PTR (char, (dest)), ACPI_CAST_PTR (char, (src)))) #endif /* Support for the special RSDP signature (8 characters) */