All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH v7 2/2] xen/arm: support gzip compressed kernels
Date: Tue, 29 Sep 2015 15:58:35 +0100	[thread overview]
Message-ID: <1443538715.16718.112.camel@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1509291545590.16775@kaball.uk.xensource.com>

On Tue, 2015-09-29 at 15:46 +0100, Stefano Stabellini wrote:
> On Tue, 29 Sep 2015, Ian Campbell wrote:
> > On Wed, 2015-09-23 at 19:31 +0100, Stefano Stabellini wrote:
> > > [/...]
> > > +
> > > +    /* 
> > > +     * Need to free pages after output_size here because they won't
> > > be
> > > +     * freed by discard_initial_modules
> > > +     */
> > > +    i = (output_size + PAGE_SIZE - 1) >> PAGE_SHIFT;
> > 
> > You have access to DIV_ROUND_UP here.
> > 
> > The rest looks good to me.
> 
> Are you sure you want to introduce a / operation that can be easily
> avoided?

Given a divisor of PAGE_SIZE the compiler will turn it into a shift anyway.

Ian.

      reply	other threads:[~2015-09-29 14:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-23 18:30 [PATCH v7 0/2] support gzipped kernels on arm Stefano Stabellini
2015-09-23 18:31 ` [PATCH v7 1/2] xen: move perform_gunzip to common Stefano Stabellini
2015-09-23 18:31 ` [PATCH v7 2/2] xen/arm: support gzip compressed kernels Stefano Stabellini
2015-09-29 14:05   ` Ian Campbell
2015-09-29 14:46     ` Stefano Stabellini
2015-09-29 14:58       ` Ian Campbell [this message]

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=1443538715.16718.112.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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.