Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1477141 > unrolled thread
| Started by | Baoyou Xie <baoyou.xie@linaro.org> |
|---|---|
| First post | 2016-09-06 10:00 +0200 |
| Last post | 2016-09-06 17:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] drivers/hwtracing: add missing header dependencies Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-06 10:00 +0200
Re: [PATCH] drivers/hwtracing: add missing header dependencies Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-09-06 17:30 +0200
| From | Baoyou Xie <baoyou.xie@linaro.org> |
|---|---|
| Date | 2016-09-06 10:00 +0200 |
| Subject | [PATCH] drivers/hwtracing: add missing header dependencies |
| Message-ID | <sejsu-7qJ-33@gated-at.bofh.it> |
We get 1 warning when building kernel with W=1: drivers/hwtracing/coresight/coresight-etm-perf.c:345:5: warning: no previous prototype for 'etm_perf_symlink' [-Wmissing-prototypes] In fact, this function is declared in coresight-etm-perf.h, so this patch add missing header dependencies. Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> --- drivers/hwtracing/coresight/coresight-etm-perf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c index 755125f..d936e82 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.c +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c @@ -28,6 +28,7 @@ #include <linux/workqueue.h> #include "coresight-priv.h" +#include "coresight-etm-perf.h" static struct pmu etm_pmu; static bool etm_perf_up; -- 2.7.4
[toc] | [next] | [standalone]
| From | Mathieu Poirier <mathieu.poirier@linaro.org> |
|---|---|
| Date | 2016-09-06 17:30 +0200 |
| Message-ID | <seqtY-3JB-39@gated-at.bofh.it> |
| In reply to | #1477141 |
On 6 September 2016 at 01:56, Baoyou Xie <baoyou.xie@linaro.org> wrote: > We get 1 warning when building kernel with W=1: > drivers/hwtracing/coresight/coresight-etm-perf.c:345:5: warning: no previous prototype for 'etm_perf_symlink' [-Wmissing-prototypes] > > In fact, this function is declared in coresight-etm-perf.h, so this patch > add missing header dependencies. > > Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> > --- > drivers/hwtracing/coresight/coresight-etm-perf.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c > index 755125f..d936e82 100644 > --- a/drivers/hwtracing/coresight/coresight-etm-perf.c > +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c > @@ -28,6 +28,7 @@ > #include <linux/workqueue.h> > > #include "coresight-priv.h" > +#include "coresight-etm-perf.h" I already fixed this one in my next branch - it will show up in the 4.9 cycle. Thanks for the submission, Mathieu > > static struct pmu etm_pmu; > static bool etm_perf_up; > -- > 2.7.4 >
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web