All of lore.kernel.org
 help / color / mirror / Atom feed
From: Al Stone <ahs3@redhat.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>, al.stone@linaro.org
Cc: linux-acpi@vger.kernel.org, linaro-acpi@lists.linaro.org
Subject: Re: [PATCH] ACPI: clean up compiler warning about uninitialized field
Date: Wed, 20 Nov 2013 17:42:46 -0700	[thread overview]
Message-ID: <528D5706.9080102@redhat.com> (raw)
In-Reply-To: <6079837.5iZO4KGxNA@vostro.rjw.lan>

On 11/20/2013 05:43 PM, Rafael J. Wysocki wrote:
> On Thursday, November 21, 2013 01:34:37 AM Rafael J. Wysocki wrote:
>> On Wednesday, November 20, 2013 03:45:51 PM al.stone@linaro.org wrote:
>>> From: Al Stone <ahs3@redhat.com>
>
> BTW, is it your intention to use different addresses for From: and
> Signed-off-by?
>
> I don't think it is formally invalid, but it certainly *is* confusing.

Ah, no, that was not the intent.  I'll fix my config problem.

>>> Initialize pwr_btn_status as disabled which (a) makes sure it is
>>> in a proper state to start, and (b) cleans up a compiler warning
>>> about an uninitialized variable.
>>>
>>> Signed-off-by: Al Stone <al.stone@linaro.org>
>>
>> Queued up for the next ACPI pull request, thanks!
>>
>>> ---
>>>   drivers/acpi/sleep.c | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
>>> index 14df305..721e949 100644
>>> --- a/drivers/acpi/sleep.c
>>> +++ b/drivers/acpi/sleep.c
>>> @@ -525,7 +525,7 @@ static int acpi_suspend_enter(suspend_state_t pm_state)
>>>   	 * generate wakeup events.
>>>   	 */
>>>   	if (ACPI_SUCCESS(status) && (acpi_state == ACPI_STATE_S3)) {
>>> -		acpi_event_status pwr_btn_status;
>>> +		acpi_event_status pwr_btn_status = ACPI_EVENT_FLAG_DISABLED;
>>>
>>>   		acpi_get_event_status(ACPI_EVENT_POWER_BUTTON, &pwr_btn_status);
>>>
>>>
>>


-- 
ciao,
al
-----------------------------------
Al Stone
Software Engineer
Red Hat, Inc.
ahs3@redhat.com
-----------------------------------

      reply	other threads:[~2013-11-21  0:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-20 22:45 [PATCH] ACPI: clean up compiler warning about uninitialized field al.stone
2013-11-21  0:34 ` Rafael J. Wysocki
2013-11-21  0:43   ` Rafael J. Wysocki
2013-11-21  0:42     ` Al Stone [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=528D5706.9080102@redhat.com \
    --to=ahs3@redhat.com \
    --cc=al.stone@linaro.org \
    --cc=linaro-acpi@lists.linaro.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    /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.