From: Jean Delvare <khali@linux-fr.org>
To: Devendra Naga <develkernel412222@gmail.com>,
Zhang Rui <rui.zhang@intel.com>
Cc: Len Brown <len.brown@intel.com>,
Andrew Morton <akpm@linux-foundation.org>,
Joe Perches <joe@perches.com>,
linux-kernel@vger.kernel.org, Fengguang Wu <wfg@linux.intel.com>,
Durgadoss R <durgadoss.r@intel.com>
Subject: Re: [PATCH] thermal: fix build error at thermal_sys.c
Date: Sun, 22 Jul 2012 12:58:10 +0200 [thread overview]
Message-ID: <20120722125810.052ca19e@endymion.delvare> (raw)
In-Reply-To: <1342944622-16263-1-git-send-email-develkernel412222@gmail.com>
On Sun, 22 Jul 2012 13:55:22 +0545, Devendra Naga wrote:
> with the commit 67ff19 (Thermal: Make Thermal trip points writeable)
> build error is introduced,
>
> the following was reported from Fengguang Wu,
>
> drivers/thermal/thermal_sys.c: In function 'create_trip_attrs':
> drivers/thermal/thermal_sys.c:1216:3: error: 'count' undeclared (first use in this function)
> drivers/thermal/thermal_sys.c:1216:3: note: each undeclared identifier is reported only once for each function it appears in
>
> link:
> http://www.spinics.net/lists/linux-kernel-janitors/msg12174.html
>
> use the indx instead.
Thanks for the fix.
> Cc: Durgadoss R <durgadoss.r@intel.com>
> Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
> ---
>
> This patch is build-tested only.
Something the original submitter apparently didn't do. Durga, can you
please build-test all your commits from now on? I don't even understand
how you managed to test your code if it did not build...
The broken commit isn't upstream yet, so in the interest of
bisectability I would recommend that the original commit is fixed and
the branch in which this broken commit was is rebased. Only then, ask
Linux to pull from it.
Thanks.
>
> drivers/thermal/thermal_sys.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
> index 9f56250..1b4aa9d 100644
> --- a/drivers/thermal/thermal_sys.c
> +++ b/drivers/thermal/thermal_sys.c
> @@ -1259,7 +1259,7 @@ static int create_trip_attrs(struct thermal_zone_device *tz, int flag)
> snprintf(tz->trip_type_attrs[indx].name, THERMAL_NAME_LENGTH,
> "trip_point_%d_type", indx);
>
> - sysfs_attr_init(&tz->trip_type_attrs[count].attr.attr);
> + sysfs_attr_init(&tz->trip_type_attrs[indx].attr.attr);
> tz->trip_type_attrs[indx].attr.attr.name =
> tz->trip_type_attrs[indx].name;
> tz->trip_type_attrs[indx].attr.attr.mode = S_IRUGO;
--
Jean Delvare
next prev parent reply other threads:[~2012-07-22 10:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-22 8:10 [PATCH] thermal: fix build error at thermal_sys.c Devendra Naga
2012-07-22 10:58 ` Jean Delvare [this message]
2012-07-23 2:02 ` Zhang Rui
2012-07-23 6:54 ` Jean Delvare
2012-07-23 7:28 ` Zhang Rui
2012-07-23 7:47 ` Jean Delvare
2012-07-23 3:08 ` R, Durgadoss
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=20120722125810.052ca19e@endymion.delvare \
--to=khali@linux-fr.org \
--cc=akpm@linux-foundation.org \
--cc=develkernel412222@gmail.com \
--cc=durgadoss.r@intel.com \
--cc=joe@perches.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rui.zhang@intel.com \
--cc=wfg@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox