From: Alan Cox <alan@linux.intel.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Dave Airlie <airlied@redhat.com>,
kernel-janitors@vger.kernel.org, dri-devel@lists.freedesktop.org,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Subject: Re: [patch] gma500: silence an unused variable warning
Date: Thu, 10 May 2012 15:30:06 +0000 [thread overview]
Message-ID: <20120510163006.77d68441@bob.linux.org.uk> (raw)
In-Reply-To: <20120510073302.GA5919@elgon.mountain>
On Thu, 10 May 2012 10:33:02 +0300
Dan Carpenter <dan.carpenter@oracle.com> wrote:
> If CONFIG_BACKLIGHT_CLASS_DEVICE is disabled then GCC warns that:
> drivers/gpu/drm/gma500/opregion.c:154:6: warning:
> unused variable ‘max’ [-Wunused-variable]
>
> Which give me a chance to use the new config_enabled() macro. :)
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Alan Cox <alan@linux.intel.com>
WARNING: multiple messages have this Message-ID (diff)
From: Alan Cox <alan@linux.intel.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Dave Airlie <airlied@redhat.com>,
kernel-janitors@vger.kernel.org, dri-devel@lists.freedesktop.org,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Subject: Re: [patch] gma500: silence an unused variable warning
Date: Thu, 10 May 2012 16:30:06 +0100 [thread overview]
Message-ID: <20120510163006.77d68441@bob.linux.org.uk> (raw)
In-Reply-To: <20120510073302.GA5919@elgon.mountain>
On Thu, 10 May 2012 10:33:02 +0300
Dan Carpenter <dan.carpenter@oracle.com> wrote:
> If CONFIG_BACKLIGHT_CLASS_DEVICE is disabled then GCC warns that:
> drivers/gpu/drm/gma500/opregion.c:154:6: warning:
> unused variable ‘max’ [-Wunused-variable]
>
> Which give me a chance to use the new config_enabled() macro. :)
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Alan Cox <alan@linux.intel.com>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2012-05-10 15:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-10 7:33 [patch] gma500: silence an unused variable warning Dan Carpenter
2012-05-10 7:33 ` Dan Carpenter
2012-05-10 8:01 ` Kirill A. Shutemov
2012-05-10 8:01 ` Kirill A. Shutemov
2012-05-10 8:31 ` Paul Menzel
2012-05-10 15:30 ` Alan Cox [this message]
2012-05-10 15:30 ` Alan Cox
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=20120510163006.77d68441@bob.linux.org.uk \
--to=alan@linux.intel.com \
--cc=airlied@redhat.com \
--cc=dan.carpenter@oracle.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=kirill.shutemov@linux.intel.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.