* [PATCH tixy] gator: wq_get_stats can be static
2014-12-16 17:33 [tixy:tracking-armlt-gator 1/6] drivers/gator/gator_events_meminfo.c:371:26: sparse: incorrect type in initializer (different modifiers) kbuild test robot
@ 2014-12-16 17:33 ` kbuild test robot
0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2014-12-16 17:33 UTC (permalink / raw)
To: Jon Medhurst; +Cc: kbuild-all, linux-kernel
drivers/gator/gator_events_net.c:48:1: sparse: symbol 'wq_get_stats' was not declared. Should it be static?
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
gator_events_net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gator/gator_events_net.c b/drivers/gator/gator_events_net.c
index d21b4db..47fee71 100644
--- a/drivers/gator/gator_events_net.c
+++ b/drivers/gator/gator_events_net.c
@@ -45,7 +45,7 @@ static void get_network_stats(struct work_struct *wsptr)
tx_total = tx;
}
-DECLARE_WORK(wq_get_stats, get_network_stats);
+static DECLARE_WORK(wq_get_stats, get_network_stats);
static void net_wake_up_handler(unsigned long unused_data)
{
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tixy:tracking-armlt-gator 1/6] drivers/gator/gator_events_meminfo.c:371:26: sparse: incorrect type in initializer (different modifiers)
@ 2014-12-16 17:33 kbuild test robot
2014-12-16 17:33 ` [PATCH tixy] gator: wq_get_stats can be static kbuild test robot
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2014-12-16 17:33 UTC (permalink / raw)
To: Jon Medhurst; +Cc: kbuild-all, linux-kernel
tree: https://git.linaro.org/people/tixy/kernel tracking-armlt-gator
head: 9b552ac355654e1fdd504f4b84b57c971084d83e
commit: a7bdf015d9043286f35de13eb11f54f64f2af143 [1/6] gator: Version 5.20
reproduce:
# apt-get install sparse
git checkout a7bdf015d9043286f35de13eb11f54f64f2af143
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> drivers/gator/gator_events_meminfo.c:371:26: sparse: incorrect type in initializer (different modifiers)
drivers/gator/gator_events_meminfo.c:371:26: expected long long *buf
drivers/gator/gator_events_meminfo.c:371:26: got long long [noderef] *<noident>
--
>> drivers/gator/gator_events_net.c:48:1: sparse: symbol 'wq_get_stats' was not declared. Should it be static?
>> drivers/gator/gator_events_net.c:98:27: sparse: Using plain integer as NULL pointer
--
>> drivers/gator/gator_events_perf_pmu.c:140:60: sparse: Using plain integer as NULL pointer
>> drivers/gator/gator_events_perf_pmu.c:151:83: sparse: Using plain integer as NULL pointer
>> drivers/gator/gator_events_perf_pmu.c:151:95: sparse: Using plain integer as NULL pointer
>> drivers/gator/gator_events_perf_pmu.c:519:74: sparse: Using plain integer as NULL pointer
>> drivers/gator/gator_events_perf_pmu.c:519:92: sparse: Using plain integer as NULL pointer
>> drivers/gator/gator_events_perf_pmu.c:530:72: sparse: Using plain integer as NULL pointer
>> drivers/gator/gator_events_perf_pmu.c:530:90: sparse: Using plain integer as NULL pointer
Please review and possibly fold the followup patch.
vim +371 drivers/gator/gator_events_meminfo.c
355 #endif
356 #endif
357 }
358
359 #define get_mm_counter(mm, member) gator_get_mm_counter(mm, member)
360
361 #endif
362
363 static int gator_events_meminfo_read_proc(long long **buffer, struct task_struct *task)
364 {
365 struct mm_struct *mm;
366 u64 share = 0;
367 int i;
368 long long value;
369 int len = 0;
370 int cpu = get_physical_cpu();
> 371 long long *buf = per_cpu(proc_buffer, cpu);
372
373 if (!proc_global_enabled)
374 return 0;
375
376 /* Collect the memory stats of the process instead of the thread */
377 if (task->group_leader != NULL)
378 task = task->group_leader;
379
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-16 18:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16 17:33 [tixy:tracking-armlt-gator 1/6] drivers/gator/gator_events_meminfo.c:371:26: sparse: incorrect type in initializer (different modifiers) kbuild test robot
2014-12-16 17:33 ` [PATCH tixy] gator: wq_get_stats can be static kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox