Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1104922ybt; Wed, 1 Jul 2020 19:12:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4T1DEbOMREwGJ1BtIpRQkVO6mir0SYhCgXtX3Qu+6NqQ7xM6iLGGiwe2+gkVp+pzrzoPz X-Received: by 2002:a50:d753:: with SMTP id i19mr33612387edj.9.1593655946332; Wed, 01 Jul 2020 19:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593655946; cv=none; d=google.com; s=arc-20160816; b=ko4AjSfYUcblZkzUjSfN2RezfpwQe3cfwJouZ+QeHznSN+LaLLKQnAvi8qYPpWurtk srbSkuxFZOfMjJ1fWgYilSW2PoDDqiI2Zd0iqaPBlUEt+j/esReWjqPH8aH15xFDa4BR HW8UpRhHtpoVvrqx4FGb0exQ/e2FxruKCno5IPBHdapQiWDB9L5gpWfPQ2co0h61QBUy qgGRnU0cnRzvGVuEE6KRW7R22GI0A2oLFaNqUeaaur2hoGq5siSgHGgJXyPQCY0q3aOT zSiDIQs14mpn087IPqFKO8PHmxYCYudEwNLdmB0QoNO1XBCUK2XvxEEoEPNk43szCmT2 JAcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=s/Hw16NoAKrS5nsSt8hi0X1olUEh9qkP8MR/ieCXprY=; b=fZUmRjafiO9bT/35lMY/JApKfGb3qvlH5C9QfZaE/iiHcI9o9+LgoGulz8YTUJ7OsB GF4mt9tiF9bfP3pT5F4E5oYIf+g+/LL2MwsmeabcnJLTMBBVB0mWCZghCB742w415qNh KocwqR/y36kVOI/sytPzVY2wuvF+BsKQxZaiVZ2dNcSdd7m9atXWeIColbNmNbenSQSV 9+pWdlcr86Qe7Y//0OdgyWyeZ6sOBFqk1cA18oKyR05hfZe15b+nXJ1phbx34JrPH0Jt mAC8OSq1DMFhhQR4vFWPRVcIweTkB20zM0rmaFY5RBefzMAYgFoDOBLTt1ll0GuLG5Wh sdww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs1si4709424edb.76.2020.07.01.19.12.02; Wed, 01 Jul 2020 19:12:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728014AbgGBCLk (ORCPT + 99 others); Wed, 1 Jul 2020 22:11:40 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:35216 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727074AbgGBCLj (ORCPT ); Wed, 1 Jul 2020 22:11:39 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-01 (Coremail) with SMTP id qwCowABHKOnuPv1edTKFAg--.63408S2; Thu, 02 Jul 2020 09:57:02 +0800 (CST) From: Xu Wang To: kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, mpe@ellerman.id.au, akpm@linux-foundation.org, wenwen@cs.uga.edu, adobriyan@gmail.com, dan.carpenter@oracle.com Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] net: cisco : use set_current_state macro Date: Thu, 2 Jul 2020 01:57:01 +0000 Message-Id: <20200702015701.8606-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowABHKOnuPv1edTKFAg--.63408S2 X-Coremail-Antispam: 1UD129KBjvdXoW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99] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiCAwEA102YPvBIQABsS Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use set_current_state macro instead of current->state = TASK_RUNNING. Signed-off-by: Xu Wang --- drivers/net/wireless/cisco/airo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/cisco/airo.c b/drivers/net/wireless/cisco/airo.c index 827bb6d74815..f0bcb67095f1 100644 --- a/drivers/net/wireless/cisco/airo.c +++ b/drivers/net/wireless/cisco/airo.c @@ -3113,7 +3113,7 @@ static int airo_thread(void *data) { } break; } - current->state = TASK_RUNNING; + __set_current_state(TASK_RUNNING); remove_wait_queue(&ai->thr_wait, &wait); locked = 1; } -- 2.17.1