Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1101917ybb; Fri, 20 Mar 2020 13:24:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtroLwVdgXp7fdh1/lrCiaaE9oVg9n3G9m8Nyd3qTV920GSH9WypNKeEmk1hPudRPvxF4tq X-Received: by 2002:a05:6808:105:: with SMTP id b5mr7809023oie.55.1584735895875; Fri, 20 Mar 2020 13:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584735895; cv=none; d=google.com; s=arc-20160816; b=yhBX3cZwscqLVGcTGXShXRmQT80ZNqcJ5jG1XrNittMmLbEjWsQcpK7tQkhVF5AUCL DEF4CciiQG41ewVuqeBGkBe/Y2Lr+Q2VOhctEc14VOBrZjmA3cbi1Bo9tu6HtNkrlbvw og7V6Fg8xBHs5wEUzwWov6pMOsGBExJpSm3q7PFWydLD6zjI/M+MfWqC234Pb2wm6rqy r/8e2kXNaZfoyitCdIfpJyKSLwlIBOKYi8wqduJWddSD62dzkbG447RZoNfi0RNVnqIE uERs2FI3/Gdt2N+KNyJCh5QY1n2uBE5rmr6XsimbrsXCFaRdghaE6WrzaEowU5jTP8oA vkcQ== 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 :dkim-signature; bh=euYkKIzSn3Hde8M82x4MmzJpd9Ci08IFXigeVjLBfXI=; b=uHAeMjZDmfC0OWispgVQSXo1NNlxvpgofudoxmOvLwQogfT2QbSMGbK2hUnCCXz9G8 /n9IR+XdluMYfJaGrPzdtCnJdRFm2eP5W5cdztAr3rfjgeSWRxVo1234rbuPHgOL2Uly eEZA6wxJuAqGqgsxVSoki3pxFJmHrVwwrWlPUIGVSzXBfhIjTAgOoljYkOLoDIdJrroU 85yt5RmZ1wIbTovO16ftlp/szukbW8FVgNM5mBwFarG7XxWifR7EmHBHTlkVeBEBHn57 T3BFyupHD4VmcEDBmo5L6A41X1rA6j60OBHRBuGw3yXtdvBzXTAsH5Y2T9a6rLL7tgMk o1dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloud.ionos.com header.s=google header.b=FzW0eLkX; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si3117341oie.153.2020.03.20.13.24.43; Fri, 20 Mar 2020 13:24:55 -0700 (PDT) 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=@cloud.ionos.com header.s=google header.b=FzW0eLkX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726982AbgCTUYS (ORCPT + 99 others); Fri, 20 Mar 2020 16:24:18 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45681 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbgCTUYQ (ORCPT ); Fri, 20 Mar 2020 16:24:16 -0400 Received: by mail-wr1-f68.google.com with SMTP id t7so4374584wrw.12 for ; Fri, 20 Mar 2020 13:24:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.ionos.com; s=google; h=from:to:cc:subject:date:message-id; bh=euYkKIzSn3Hde8M82x4MmzJpd9Ci08IFXigeVjLBfXI=; b=FzW0eLkXrnkafLzxHp1TVU9mlmHIR3g8W8SjwOlW4nHO0fpciko/JWioTp3R6n0Dz3 VR+AJytLDbE/a7ALWCRUUcyK19SEcnNmhxxCxvuJtCKx5+5pBJ/YXnUZgRXkL0bb8DIA 5YL/lkfhzvPnj6CO2ryJoUVU08yiQsU703NOqw9gB80RvkKluI8JUS10vJ0bzWOGfbOS m+EzWbjq8qX5LPai1eKGmosWV/ur2BAppFnBkNet6PRAIM3j/qc2YBOMQKhsh/1uFi/A akaNVhR05w/65IIimuuo20vWnjZqbUl4ItvFHjXmerB6hvDTcA0IwxqrolE8JmcKBALV 3ucg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=euYkKIzSn3Hde8M82x4MmzJpd9Ci08IFXigeVjLBfXI=; b=ik5Aro0tgv1oXX+6hViiYMOaxpETRTASS703kQXLUo6JKW8BRZjbFXYglxX5O3UdRl VGr9+l03OGK5xEqQECbNN2Rwp4fk6enSAb0WPULZro8ZSGGpDxjFiqiypyKfFohs8uE7 1jfWbveqJerOL4vjff70o2pk1kbpOLQc2jSCazZQPRujPB6w2Q70/kgEcggzOI76tiwH C9lHxl5FLfhhz+JgqlTfwEpURmCKJRcDJO8V2iqVVRRIf7U/HdXpvqcnPNImJvCCCXhk 9aHQpEg+LZKMTohtwM0bWQxjAiFKKFtXm1bIC8442Qkrzx2O9ykRAq1aTBP9vnjOsBRs Ee8A== X-Gm-Message-State: ANhLgQ0dzcS8FuSwLBkNmekY1ne1BfbqlhmuQHkeZAzgfnPSoqgKgv+/ o1LoEbpDQr+TYsk2f+nNpzsL5w== X-Received: by 2002:adf:f3c8:: with SMTP id g8mr11357354wrp.351.1584735854835; Fri, 20 Mar 2020 13:24:14 -0700 (PDT) Received: from nb01257.fkb.profitbricks.net ([2001:16b8:48c3:f900:5028:8a37:4a0d:15bd]) by smtp.gmail.com with ESMTPSA id q4sm9437267wro.56.2020.03.20.13.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Mar 2020 13:24:14 -0700 (PDT) From: Guoqing Jiang To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de Cc: linux-kernel@vger.kernel.org, Guoqing Jiang Subject: [PATCH] wait: remove wait_event_interruptible_lock_irq_cmd Date: Fri, 20 Mar 2020 21:23:55 +0100 Message-Id: <20200320202355.27157-1-guoqing.jiang@cloud.ionos.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove this function since it is not used. Signed-off-by: Guoqing Jiang --- include/linux/wait.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/include/linux/wait.h b/include/linux/wait.h index 3283c8d02137..e7fee8d1ac60 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -1003,40 +1003,6 @@ do { \ schedule(); \ spin_lock_irq(&lock)) -/** - * wait_event_interruptible_lock_irq_cmd - sleep until a condition gets true. - * The condition is checked under the lock. This is expected to - * be called with the lock taken. - * @wq_head: the waitqueue to wait on - * @condition: a C expression for the event to wait for - * @lock: a locked spinlock_t, which will be released before cmd and - * schedule() and reacquired afterwards. - * @cmd: a command which is invoked outside the critical section before - * sleep - * - * The process is put to sleep (TASK_INTERRUPTIBLE) until the - * @condition evaluates to true or a signal is received. The @condition is - * checked each time the waitqueue @wq_head is woken up. - * - * wake_up() has to be called after changing any variable that could - * change the result of the wait condition. - * - * This is supposed to be called while holding the lock. The lock is - * dropped before invoking the cmd and going to sleep and is reacquired - * afterwards. - * - * The macro will return -ERESTARTSYS if it was interrupted by a signal - * and 0 if @condition evaluated to true. - */ -#define wait_event_interruptible_lock_irq_cmd(wq_head, condition, lock, cmd) \ -({ \ - int __ret = 0; \ - if (!(condition)) \ - __ret = __wait_event_interruptible_lock_irq(wq_head, \ - condition, lock, cmd); \ - __ret; \ -}) - /** * wait_event_interruptible_lock_irq - sleep until a condition gets true. * The condition is checked under the lock. This is expected -- 2.17.1