Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2566380ybl; Mon, 20 Jan 2020 05:25:37 -0800 (PST) X-Google-Smtp-Source: APXvYqyn4R+GZrhvEhm8+3qM5qBcnc8J3Xfl5EnA/aeRPaqmfFH6vOYI45FSiStXRPL0ptgNIRTr X-Received: by 2002:a05:6808:291:: with SMTP id z17mr12583447oic.94.1579526737488; Mon, 20 Jan 2020 05:25:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579526737; cv=none; d=google.com; s=arc-20160816; b=FtM95Jwq9UWYKl/H63xaZ03PfQi+3C9G5yeG91uuRwBosD5y/SV1RXpGzS3ecurO1+ yiyylGi3q4vIzBqiLFWyh3opowTtfIkd0OgvHbZmpYV9YGJUAx3tpR83D13/RiSM6Cyn FbYiqystSU6tEZKjM4TeEVq/dnZDjlAW/ZyxzZAKz6hAIdMGmC8hMekkRKzEllpFO01D olEg2o4HrLmNCoyyED2hDBd3emfC5iG0bmNd7FueIAGAylixFY1ngtdrzk6yDkWmr8bt 82wiy9pO/Enn1bE5LTuCPNQdbFH9fuNjn9bdGeUhfWLhAvkZKk/FntTvR2cnbHCsimVj EDdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=3i7l2WA4p8t1LEW/kuJPwDKcIEYGPK5gxi8vuaP0ZV0=; b=S5SMo8nssRi/EhxW0iG6v6/RW196lym27bY9AfRVp60y9W73GLyYawlR270MOZEEBt W4znIcZn6GbEKxfjk6mcheEOG8zA3NBaohtIPbIEOLcWz8UKT10unpk5ggx8LaQpeb1b rXQKAit+KOCdLsoAF3lxcHovPKmMsC5W2pOXOgR+roWliz6mJAn1NXhfySGG/ahTJy6u w0CKR67T0JhLmrionrxrbaeTrfZSZeueoljV3+Z6Uply+WtKtK/IaiffwwcfnNE45VlF BzmgJ58CwnoAzhkKqVKkJf7NZew+3/TtnBcoRwKzz79op3iCx6Q8Q18YhBzM82cWJul7 W4ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=jB3pySYi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w196si18016421oia.135.2020.01.20.05.25.25; Mon, 20 Jan 2020 05:25:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=jB3pySYi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727092AbgATNYS (ORCPT + 99 others); Mon, 20 Jan 2020 08:24:18 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:32028 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726619AbgATNYR (ORCPT ); Mon, 20 Jan 2020 08:24:17 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00KDNm7Z031635; Mon, 20 Jan 2020 14:24:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=3i7l2WA4p8t1LEW/kuJPwDKcIEYGPK5gxi8vuaP0ZV0=; b=jB3pySYiytbAnO69I7W+ysXkdp1M9jANngEqdkNND/YCemwvmDqVy6ITbVjHtcNrfcC7 nHv405WARkPQtMVy2LQkqaSuEm7xoXbJB4d36yRW5qGrAcXjXYc27XBW7fgwIhAjSyjE 7EroGgGklpXGq1y6cSp/AXPGR9NIuGqRSQqtXewTb+yk5j60twgAbg6UM4LShuwb7Oxq zM3KG/BBBEjH/bdPSK+Dshwlzz/Uqkoc4St1LrgE7v/ZoYgFt8AMMZSGxLNtK46tHBzq kJuLAIS4zQmu/j9yBvXGKPJ8jJnRfackqNfQfbeKZWBdo7rQq98LIDppL4qEnl32YcEs Dg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2xkrc4spwk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Jan 2020 14:24:14 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 07BFD10002A; Mon, 20 Jan 2020 14:24:10 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EAD4A2BE234; Mon, 20 Jan 2020 14:24:09 +0100 (CET) Received: from localhost (10.75.127.48) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 20 Jan 2020 14:24:09 +0100 From: Benjamin Gaignard To: , CC: , , Benjamin Gaignard Subject: [PATCH] cpuidle: coupled: fix warning when compiling with W=1 Date: Mon, 20 Jan 2020 14:24:08 +0100 Message-ID: <20200120132408.20734-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG3NODE2.st.com (10.75.127.8) To SFHDAG3NODE3.st.com (10.75.127.9) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-20_02:2020-01-20,2020-01-20 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the warning that show up when compiling with W=1 Signed-off-by: Benjamin Gaignard --- drivers/cpuidle/coupled.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/cpuidle/coupled.c b/drivers/cpuidle/coupled.c index b607278df25b..04003b90dc49 100644 --- a/drivers/cpuidle/coupled.c +++ b/drivers/cpuidle/coupled.c @@ -89,6 +89,7 @@ * @coupled_cpus: mask of cpus that are part of the coupled set * @requested_state: array of requested states for cpus in the coupled set * @ready_waiting_counts: combined count of cpus in ready or waiting loops + * @abort_barrier: synchronisation point for abort cases * @online_count: count of cpus that are online * @refcnt: reference count of cpuidle devices that are using this struct * @prevent: flag to prevent coupled idle while a cpu is hotplugging @@ -338,7 +339,7 @@ static void cpuidle_coupled_poke(int cpu) /** * cpuidle_coupled_poke_others - wake up all other cpus that may be waiting - * @dev: struct cpuidle_device for this cpu + * @this_cpu: target cpu * @coupled: the struct coupled that contains the current cpu * * Calls cpuidle_coupled_poke on all other online cpus. @@ -355,7 +356,7 @@ static void cpuidle_coupled_poke_others(int this_cpu, /** * cpuidle_coupled_set_waiting - mark this cpu as in the wait loop - * @dev: struct cpuidle_device for this cpu + * @cpu: target cpu * @coupled: the struct coupled that contains the current cpu * @next_state: the index in drv->states of the requested state for this cpu * @@ -376,7 +377,7 @@ static int cpuidle_coupled_set_waiting(int cpu, /** * cpuidle_coupled_set_not_waiting - mark this cpu as leaving the wait loop - * @dev: struct cpuidle_device for this cpu + * @cpu: target cpu * @coupled: the struct coupled that contains the current cpu * * Removes the requested idle state for the specified cpuidle device. @@ -412,7 +413,7 @@ static void cpuidle_coupled_set_done(int cpu, struct cpuidle_coupled *coupled) /** * cpuidle_coupled_clear_pokes - spin until the poke interrupt is processed - * @cpu - this cpu + * @cpu: this cpu * * Turns on interrupts and spins until any outstanding poke interrupts have * been processed and the poke bit has been cleared. -- 2.15.0