All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alejandro González" <alejandro.gonzalez.correo@gmail.com>
To: f.fainelli@gmail.com, markus.mayer@broadcom.com,
	daniel.lezcano@linaro.org, rui.zhang@intel.com,
	computersforpeace@gmail.com
Cc: bcm-kernel-feedback-list@broadcom.com,
	linux-kernel@vger.kernel.org,
	"Alejandro González" <alejandro.gonzalez.correo@gmail.com>
Subject: RE: [PATCH] tools/thermal: tmon: include pthread and time headers in tmon.h
Date: Sun,  9 Aug 2020 14:57:20 +0200	[thread overview]
Message-ID: <20200809125720.2111347-1-alejandro.gonzalez.correo@gmail.com> (raw)
In-Reply-To: <3C3E65E75D9910479323816378A812E7417797A2@BGSMSX104.gar.corp.intel.com>

> > -----Original Message-----
> > From: Florian Fainelli <f.fainelli@gmail.com>
> > Sent: Thursday, June 18, 2020 8:23 AM
> > To: Markus Mayer <markus.mayer@broadcom.com>; Daniel Lezcano
> > <daniel.lezcano@linaro.org>; Pawnikar, Sumeet R
> > <sumeet.r.pawnikar@intel.com>; Zhang, Rui <rui.zhang@intel.com>; Brian
> > Norris <computersforpeace@gmail.com>
> > Cc: Broadcom Kernel List <bcm-kernel-feedback-list@broadcom.com>; Linux
> > Kernel Mailing List <linux-kernel@vger.kernel.org>
> > Subject: Re: [PATCH] tools/thermal: tmon: include pthread and time headers
> > in tmon.h
> > 
> > 
> > 
> > On 6/17/2020 4:58 PM, Markus Mayer wrote:
> > > Include sys/time.h and pthread.h in tmon.h, so that types
> > > "pthread_mutex_t" and "struct timeval tv" are known when tmon.h
> > > references them.
> > >
> > > Without these headers, compiling tmon against musl-libc will fail with
> > > these errors:
> > >
> > > In file included from sysfs.c:31:0:
> > > tmon.h:47:8: error: unknown type name 'pthread_mutex_t'
> > >  extern pthread_mutex_t input_lock;
> > >         ^~~~~~~~~~~~~~~
> > > make[3]: *** [<builtin>: sysfs.o] Error 1
> > > make[3]: *** Waiting for unfinished jobs....
> > > In file included from tui.c:31:0:
> > > tmon.h:54:17: error: field 'tv' has incomplete type
> > >   struct timeval tv;
> > >                  ^~
> > > make[3]: *** [<builtin>: tui.o] Error 1
> > > make[2]: *** [Makefile:83: tmon] Error 2
> > >
> > > Signed-off-by: Markus Mayer <mmayer@broadcom.com>
> > 
> > Acked-by: Florian Fainelli <f.fainelli@gmail.com>
> > --
> > Florian
> 
> Reviewed-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com>
> 
> Thanks,
> Sumeet.

I've tested this patch with musl-libc for the same arch. It works like a charm.

Acked-by: Alejandro González <alejandro.gonzalez.correo@gmail.com>
Tested-by: Alejandro González <alejandro.gonzalez.correo@gmail.com>

      reply	other threads:[~2020-08-09 12:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-17 23:58 [PATCH] tools/thermal: tmon: include pthread and time headers in tmon.h Markus Mayer
2020-06-18  2:52 ` Florian Fainelli
2020-06-23 17:17   ` Pawnikar, Sumeet R
2020-08-09 12:57     ` Alejandro González [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=20200809125720.2111347-1-alejandro.gonzalez.correo@gmail.com \
    --to=alejandro.gonzalez.correo@gmail.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=computersforpeace@gmail.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=f.fainelli@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markus.mayer@broadcom.com \
    --cc=rui.zhang@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.