mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrey Panin <pazke@orbita1.ru>
To: "Thomas 'Dent' Mirlacher" <dent@cosy.sbg.ac.at>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] neofb.c
Date: Mon, 27 May 2002 10:40:26 +0400	[thread overview]
Message-ID: <20020527064026.GB314@pazke.ipt> (raw)
In-Reply-To: <Pine.GSO.4.05.10205251400470.7328-100000@mausmaki.cosy.sbg.ac.at>

[-- Attachment #1: Type: text/plain, Size: 760 bytes --]

On Sat, May 25, 2002 at 02:02:16PM +0200, Thomas 'Dent' Mirlacher wrote:
> gcc 3.1 seems to be unhappy:
> neofb.c:2321: initialized causes a section type conflict
> 
> the simple patch for this would be:
> ===== neofb.c 1.8 vs edited =====
> --- 1.8/drivers/video/neofb.c   Thu May  2 00:56:02 2002
> +++ edited/neofb.c      Sat May 25 18:50:14 2002
> @@ -2318,10 +2318,10 @@
>    return 0;
>  }
>  
> -static int __init initialized = 0;
> -
>  int __init neofb_init(void)
>  {
> +  static int initialized = 0;
> +
>    DBG("neofb_init");
>  
>    if (disabled)

correct solution is to change __init to __initdata.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: wwwkeys.eu.pgp.net

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

      reply	other threads:[~2002-05-27  6:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-25 12:02 Thomas 'Dent' Mirlacher
2002-05-27  6:40 ` Andrey Panin [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=20020527064026.GB314@pazke.ipt \
    --to=pazke@orbita1.ru \
    --cc=dent@cosy.sbg.ac.at \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®