Received: by 10.192.165.148 with SMTP id m20csp4644636imm; Tue, 24 Apr 2018 06:15:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/StE+JxUylNgSHCqXjsOENSO9Aqkdev0zcu+YnUdfnku1Ynq0KsWBR19AfaExKTopqkTE+ X-Received: by 10.98.38.65 with SMTP id m62mr19338483pfm.15.1524575756480; Tue, 24 Apr 2018 06:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524575756; cv=none; d=google.com; s=arc-20160816; b=jcQehy900LfKQVFHuhlCreERvdhNxZPvL/59b3D4IuoLT37BcUIRM9bdLDK9fZ3B3J xPF0fwxX/6/XlTgObymddreHuw0xYCCi+1DJLES11BVWrXSPYf4Luthl7v96BHpE1gBs A1kis/8yQy844/6W9d8Wk7ieDJwJHhQFWkYYl5h2QEBLc+GvSBh8VVr/hY2uB9Qi6Br+ MknHGzG0CaVDNBXrWJYiHwYoe3Png8+PiuoO07sYpckVmE/KS6qb90Y+aBvm1UQHozfv t9y0Am2BmLvRo2n+fclQthBIeer/kKXRbxja+lf47Geu3ffOdQmOhU/FfRPFHEyIgQU6 gztA== 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:arc-authentication-results; bh=FE5XYVrVtzFwyRiqhATtZKCtFUAlWayTXwzaNYF67rQ=; b=dEkrB6pdEetu/RxV6ZvujYYHgX5uuyBMFWPkfua2fhCJ1yhhOBMrGSOVeCuaE21Vhn HvQTS7+TqmfSljo3fqNi8feqIs3SJVF/qr6GqU6EgqY92T6EH1iP77FDSH9/UpWEd2ow rbymqNAxTCjpQsa9bMCWzFryM504nMQKaZJrqK0TPWTXCuHiUT3fRo40O7mod9bS4LZH 3iCQ+FiWs41xM1AQ6S5RyO+mf8FBKyjA0eFKWbuz1N/z7dK5RBa7NCFxk4gyyHzuW2Gb 73MKsnnO7npD7LOU2inOQj6O+wpoU8ULxNoEp9lu2s81a9/yej7ozwzAxtEImzc4Dt30 bh1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RjIOBieD; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6-v6si8585042plj.192.2018.04.24.06.15.40; Tue, 24 Apr 2018 06:15:56 -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=@gmail.com header.s=20161025 header.b=RjIOBieD; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757934AbeDXNO1 (ORCPT + 99 others); Tue, 24 Apr 2018 09:14:27 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:53503 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757855AbeDXNOO (ORCPT ); Tue, 24 Apr 2018 09:14:14 -0400 Received: by mail-wm0-f66.google.com with SMTP id 66so878711wmd.3; Tue, 24 Apr 2018 06:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FE5XYVrVtzFwyRiqhATtZKCtFUAlWayTXwzaNYF67rQ=; b=RjIOBieDfA5vZm5AMX66C1QMP/pFKd3eKeMWBy048iHjVe72jGX/Y/z6fjecGb/gce 7sz+URrNk3B3H59cFFCesEE2xrEGXiaO4wD35qLYqvn/2xwnvDmL3Qs4BQqk5hc/XDMw s9sB42pMo+pAdwYfDm4s1lIVBGZCdxjY7foSxq0SxO8v3RnvBiWGid75UWG3ZHgcoEmy Hvbz5peZgr/TjSKsHJQh6PcRbxi6eVmxDwWWzG8LleP5d+7gy/3OqPXNaOeyk7MMnkh6 0zcF5BtdZnB8c0+oGQgRJsW6asfFnKLi4wLDFDNiW7flBTDEwfmhGAH6+hilSbX4QUfH J1OQ== 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=FE5XYVrVtzFwyRiqhATtZKCtFUAlWayTXwzaNYF67rQ=; b=s5FGx3aX5Den4e9fR0MkpwIiTXdVColb33D8DC1GVsaGulBEnmarlCgnisuayiPbBz 28GDMhN3uM68Hhlucx4uE8YaNRO+dvK/PnIVJ5tswkBRHjimx5NjjYnloYckAKPHbJcp G/ngiPndHZ9Z1doWiVjlSbwDPj9pDUKKQzdqZJ1NTMXg94YWbTiPqtmmclWdtPBkYEaL udDeaVecUOO/+90cl2jFyZipSXjEojE3vC3lhYOXuOJIzMvJRJoSijYIANMXLIJYZoaW /urAOOzmvD/IGdUpLNM7NhfzYxOojE92UwxlFIHiT0NtSBFbewGrzyNbMnl9FiFBlABQ bXKQ== X-Gm-Message-State: ALQs6tAIdp4BZeYokTtL6dgKaYbRoxxtVVuFuAKwX1pfXiilq2VY9E5l LqdIC0L+46/KrI+s9tLpiVBBt+ht X-Received: by 10.80.163.229 with SMTP id t34mr32966208edb.227.1524575653127; Tue, 24 Apr 2018 06:14:13 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id l1sm8824088edi.54.2018.04.24.06.14.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:14:12 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Philipp Reisner , Lars Ellenberg , Jens Axboe , drbd-dev@lists.linbit.com, linux-block@vger.kernel.org Subject: [PATCH] drdb: fix print_st_err()'s prototype Date: Tue, 24 Apr 2018 15:14:10 +0200 Message-Id: <20180424131410.1603-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org print_st_err() is defined with its 4th argument taking an 'enum drbd_state_rv' but its prototype use an int for it. Fix this by using 'enum drbd_state_rv' in the prototype too. Signed-off-by: Luc Van Oostenryck --- drivers/block/drbd/drbd_state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/drbd/drbd_state.h b/drivers/block/drbd/drbd_state.h index ea58301d0..b2a390ba7 100644 --- a/drivers/block/drbd/drbd_state.h +++ b/drivers/block/drbd/drbd_state.h @@ -131,7 +131,7 @@ extern enum drbd_state_rv _drbd_set_state(struct drbd_device *, union drbd_state enum chg_state_flags, struct completion *done); extern void print_st_err(struct drbd_device *, union drbd_state, - union drbd_state, int); + union drbd_state, enum drbd_state_rv); enum drbd_state_rv _conn_request_state(struct drbd_connection *connection, union drbd_state mask, union drbd_state val, -- 2.17.0