[PATCH 07/17] bsd-user: Remove deprecated -p argument

Warner Losh posted 17 patches 3 months, 3 weeks ago
[PATCH 07/17] bsd-user: Remove deprecated -p argument
Posted by Warner Losh 3 months, 3 weeks ago
FreeBSD never really used the -p argument, so it's safe to remove
entirely.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/main.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/bsd-user/main.c b/bsd-user/main.c
index 9ad31bd1efe..709ab10ddc1 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -388,14 +388,6 @@ int main(int argc, char **argv)
             }
         } else if (!strcmp(r, "L")) {
             interp_prefix = argv[optind++];
-        } else if (!strcmp(r, "p")) {
-            unsigned size, want = qemu_real_host_page_size();
-
-            r = argv[optind++];
-            if (qemu_strtoui(r, NULL, 10, &size) || size != want) {
-                warn_report("Deprecated page size option cannot "
-                            "change host page size (%u)", want);
-            }
         } else if (!strcmp(r, "g")) {
             gdbstub = g_strdup(argv[optind++]);
         } else if (!strcmp(r, "r")) {
-- 
2.45.1
Re: [PATCH 07/17] bsd-user: Remove deprecated -p argument
Posted by Richard Henderson 3 months, 3 weeks ago
On 8/3/24 09:56, Warner Losh wrote:
> FreeBSD never really used the -p argument, so it's safe to remove
> entirely.
> 
> Signed-off-by: Warner Losh<imp@bsdimp.com>
> ---
>   bsd-user/main.c | 8 --------
>   1 file changed, 8 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~