All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] UBIFS: Missing offset relocation for compressor 'none'
Date: Fri, 20 Mar 2009 11:51:23 +0100	[thread overview]
Message-ID: <200903201151.23448.sr@denx.de> (raw)
In-Reply-To: <m2fxh879ra.fsf@ohwell.denx.de>

Hi Detlev,

On Friday 20 March 2009, Detlev Zundel wrote:
> > Please note that I explicitly didn't fold this patch into my latest UBIFS
> > patch series. We should apply it after UBIFS is available in mainline so
> > that Michael will be listed as author for this fix.
>
> I was not so sure about this, so I was waiting for your opinion, but are
> you sure that it is ok to remove the assignment?  Doesn't other code
> depend on that?
>
> @@ -147,7 +147,10 @@ int __init ubifs_compressors_init(void)
>         if (err)
>                 return err;
>
> -       ubifs_compressors[UBIFS_COMPR_NONE] = &none_compr;
> +       err = compr_init(&none_compr);
> +       if (err)
> +               return err;
> +
>         return 0;
>  }

Yes, I'm pretty sure this patch is correct. The removed assignment is done in 
compr_init() as well:

/**
 * compr_init - initialize a compressor.
 * @compr: compressor description object
 *
 * This function initializes the requested compressor and returns zero in case
 * of success or a negative error code in case of failure.
 */
static int __init compr_init(struct ubifs_compressor *compr)
{
	ubifs_compressors[compr->compr_type] = compr;
	ubifs_compressors[compr->compr_type]->name += gd->reloc_off;
	ubifs_compressors[compr->compr_type]->capi_name += gd->reloc_off;
	ubifs_compressors[compr->compr_type]->decompress += gd->reloc_off;
	return 0;
}

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2009-03-20 10:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-19  9:06 [U-Boot] [PATCH v2] UBIFS: Missing offset relocation for compressor 'none' Michael Lawnick
2009-03-20  7:31 ` Stefan Roese
2009-03-20 10:45   ` Detlev Zundel
2009-03-20 10:51     ` Stefan Roese [this message]
2009-03-20 21:13 ` Wolfgang Denk

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=200903201151.23448.sr@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /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.