Received: by 10.192.165.148 with SMTP id m20csp538376imm; Wed, 25 Apr 2018 03:55:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq/oakGZcTm6hGkOND1HWpFvT+YQ4iUlU6fALhx7XRznFwTMc3RkR/r2QsAOlAWwSHU4eNu X-Received: by 10.98.75.22 with SMTP id y22mr773516pfa.29.1524653759252; Wed, 25 Apr 2018 03:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524653759; cv=none; d=google.com; s=arc-20160816; b=CyVNm3TfMxRxHI90yiA5BRDGjjuTeq0PKUbLyKyLWJEJVmztCsmEPiGNn+7avdVq82 hJIDqiHjYNUEdfKCFud+7Zv7Kau4jaaK8T1tydA1YNSVOUOvjGRuko6nY+l0Thr6io6W 3451bFk5Fo21AKS4t3PtCeRw7FtxiMqv9H1+yk4BHsHRie8WS1B8SKJqIN6x0uvDfJn/ l9+xc97deIaKzrZRTzX7C6oTGroF3Cs2X2vu9tNJSuJE3VLN4pnALXM+jV84IBOtoppK LwHm9tugdf3+Oz004Ll0Y1TYUUa8X9BSsg26EZqONv5S52bawHDgIAAL9RHS76dEyHrg 731A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=vyBwyWwkhrbehAGHEeGwWT89xo/hckuLvpdzZmQf/mk=; b=ujN21Cyl6B58L8eHzPS61AcNBMTmKopMWbDXzMjV/36m6svVtjC+K+umMLHmJbkkUq XgxTnZKBoxeba76W/oVZn4xO67aAtWhr2yKny6s2Yblwy7hjR52ltp4hMjbjyGwgd/3g UH712O+rvazSJnMn8n8MA9eDWGqjCMQ8xQIbas8ozQykEKGnQnlmNbPDXEDFz/Cdahfp tD9d4Nh/rjrSJ10PE9TbWcN0gJmPuoZJ7aBnWsbT5mTuCMbSPreGu0h7H/tGEZh3wtE8 j+YAOmG91663XG31JZv9Og5AH35qnVotOrVxKa7Gktm6i/PZAXAieFS1GlCclibSBMkE WgwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linbit-com.20150623.gappssmtp.com header.s=20150623 header.b=pBN1TYx1; 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 66si15810402pfm.167.2018.04.25.03.55.44; Wed, 25 Apr 2018 03:55:59 -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=@linbit-com.20150623.gappssmtp.com header.s=20150623 header.b=pBN1TYx1; 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 S1754201AbeDYKyo (ORCPT + 99 others); Wed, 25 Apr 2018 06:54:44 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35272 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752520AbeDYKyj (ORCPT ); Wed, 25 Apr 2018 06:54:39 -0400 Received: by mail-wm0-f67.google.com with SMTP id o78so6012109wmg.0 for ; Wed, 25 Apr 2018 03:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linbit-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vyBwyWwkhrbehAGHEeGwWT89xo/hckuLvpdzZmQf/mk=; b=pBN1TYx14NcqCvwdGCLPG8QCUVNDYy2Ucvj9Apjr9hwXe8Y6P9TNducRaT2PdDnD5I eyQxS/R2N+ZxHya9JA5TKriPnLfhrMQBIrQGYIhoCemJQEJ/dZqcTCig3gcGy33R/TED 8cwAA4XOJClaa9TC6TQXRerzJU+KO4Hf8fGF+KBtMYCIKNnMsdH0ZzNA5C6KvLZKy8eK +4YHdbau3GcYQNuSEJI9JBph5+6p8jupechUMmHYvnh0JACAN70uThQGFmYIWXTjls5o 4gYiekgs/V1UO4WfDuL6wIzKf206bU7oGsI8kYdIg6IZrR4j2yj2bQxlapYcezd/wK77 K/BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vyBwyWwkhrbehAGHEeGwWT89xo/hckuLvpdzZmQf/mk=; b=X+9Qd13SG6wm1LsjybkFiHSM07jP6dhj7v9EqsIZE3wbquKfUPpTMfMSvUfycOovSd VOFkHyu9KxAM8tAnsVzYgeUOz+cg8HTfegIq0r2RqGLQnFhH1nfCngSwhq0u9E7cTpb5 OfHziK/D73Ns/vytM7f7k1fW2bY8g0MAiWSfI140vlVPOnrypdE5gIvR7m/kI9SD74Sn g1V2wZEd6QJOp3HHAoqQSwynsafdtmwOf/JthtWCUyQtDpCqpV4tsktkaEUQPteihznM UtXKsy4eAP6uuTlBuqGmiCMTudkFR9N2v5zVCWz1QYzcApu1MXuV6Ww+ay29WHYwcnVK rTsA== X-Gm-Message-State: ALQs6tD3BAWYkIvHyzaWjLFob8tOrPJ6DMzdzu4dEzpOS2nBT14SS/nD AN2p524mQFpwL8PesjHCZ7uVoW/r X-Received: by 10.28.231.4 with SMTP id e4mr11267252wmh.119.1524653678363; Wed, 25 Apr 2018 03:54:38 -0700 (PDT) Received: from localhost (213-47-144-126.static.upcbusiness.at. [213.47.144.126]) by smtp.gmail.com with ESMTPSA id 32-v6sm14537483wrf.79.2018.04.25.03.54.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 03:54:37 -0700 (PDT) Date: Wed, 25 Apr 2018 12:54:36 +0200 From: Roland Kammerer To: Luc Van Oostenryck Cc: linux-kernel@vger.kernel.org, Jens Axboe , Philipp Reisner , linux-block@vger.kernel.org, Lars Ellenberg , drbd-dev@lists.linbit.com Subject: Re: [Drbd-dev] [PATCH] drdb: fix print_st_err()'s prototype Message-ID: <20180425105436.5ko6imz66hfsxwk3@rck.sh> References: <20180424131410.1603-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424131410.1603-1-luc.vanoostenryck@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 03:14:10PM +0200, Luc Van Oostenryck wrote: > 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 Thanks, looks good. Applied to our internal tree. As usual, we send it mainline bundled with other pending changes. Regards, rck