From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: Juergen Gross <jgross@suse.com>
Cc: minios-devel@lists.xenproject.org,
xen-devel@lists.xenproject.org, wl@xen.org
Subject: Re: [PATCH 4/4] mini-os: remove sanity_check()
Date: Mon, 22 Jul 2024 23:35:44 +0200 [thread overview]
Message-ID: <20240722213544.hjyohnoz4mtcfltr@begin> (raw)
In-Reply-To: <20240722150141.31391-5-jgross@suse.com>
Juergen Gross, le lun. 22 juil. 2024 17:01:41 +0200, a ecrit:
> Remove the sanity_check() function, as it is used nowhere.
>
> Since any application linked with Mini-OS can't call sanity_check()
> either (there is no EXPORT_SYMBOL for it), there is zero chance of
> breaking any use case.
Don't we still want to keep it around, at least as formal documentation
of the expected status of the list?
Samuel
> Signed-off-by: Juergen Gross <jgross@suse.com>
> ---
> include/lib.h | 3 ---
> mm.c | 16 ----------------
> 2 files changed, 19 deletions(-)
>
> diff --git a/include/lib.h b/include/lib.h
> index abd4e9ab..acd4acc6 100644
> --- a/include/lib.h
> +++ b/include/lib.h
> @@ -152,9 +152,6 @@ do { \
>
> #define BUG_ON(x) ASSERT(!(x))
>
> -/* Consistency check as much as possible. */
> -void sanity_check(void);
> -
> /* Get own domid. */
> domid_t get_domid(void);
>
> diff --git a/mm.c b/mm.c
> index 96686a5c..1fa7e7bf 100644
> --- a/mm.c
> +++ b/mm.c
> @@ -394,19 +394,3 @@ void init_mm(void)
> void fini_mm(void)
> {
> }
> -
> -void sanity_check(void)
> -{
> - int x;
> - chunk_head_t *head;
> -
> - for ( x = 0; x < FREELIST_SIZE; x++ )
> - {
> - for ( head = free_list[x].next; !FREELIST_EMPTY(head);
> - head = head->next )
> - {
> - ASSERT(!allocated_in_map(virt_to_pfn(head)));
> - ASSERT(head->next->prev == head);
> - }
> - }
> -}
> --
> 2.43.0
>
--
Samuel
/*
* [...] Note that 120 sec is defined in the protocol as the maximum
* possible RTT. I guess we'll have to use something other than TCP
* to talk to the University of Mars.
* PAWS allows us longer timeouts and large windows, so once implemented
* ftp to mars will work nicely.
*/
(from /usr/src/linux/net/inet/tcp.c, concerning RTT [retransmission timeout])
next prev parent reply other threads:[~2024-07-22 21:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-22 15:01 [PATCH 0/4] mini-os: cleanup of mm.c Juergen Gross
2024-07-22 15:01 ` [PATCH 1/4] mini-os: make mm.c coding style compliant Juergen Gross
2024-07-22 21:30 ` Samuel Thibault
2024-07-22 15:01 ` [PATCH 2/4] mini-os: mm: remove not needed struct chunk_tail_st Juergen Gross
2024-07-22 21:30 ` Samuel Thibault
2024-07-22 15:01 ` [PATCH 3/4] mini-os: mm: reduce buddy allocator list administration data Juergen Gross
2024-07-22 21:34 ` Samuel Thibault
2024-07-22 15:01 ` [PATCH 4/4] mini-os: remove sanity_check() Juergen Gross
2024-07-22 21:35 ` Samuel Thibault [this message]
2024-07-23 6:36 ` Jürgen Groß
2024-07-24 22:44 ` Samuel Thibault
2024-07-25 6:25 ` Jürgen Groß
2024-07-25 6:29 ` Samuel Thibault
2024-07-25 6:40 ` Juergen Gross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240722213544.hjyohnoz4mtcfltr@begin \
--to=samuel.thibault@ens-lyon.org \
--cc=jgross@suse.com \
--cc=minios-devel@lists.xenproject.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.