Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp277423ybi; Wed, 29 May 2019 21:13:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzw+u+1GjhJb08CEBkf47SkstVIKrj4mkvrQuVSwrStZOGqsm1tMthozp9418fKpXgIgt+d X-Received: by 2002:a63:d504:: with SMTP id c4mr1886277pgg.20.1559189597999; Wed, 29 May 2019 21:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559189597; cv=none; d=google.com; s=arc-20160816; b=D+EmaJUmvnLk+I+nq/M+SVUTvYpkBGB8KOzTEnhBDUxqiDOrmpYCFVnA1fL6JIhM42 SF51brqbekgBseVcKAmfkNo/8Lr8WHZIRJ7yuF9iIfRxGojVWrbrG59bflbSPUEc2w29 q78rzsh+5zUZ3nfLl4oD+6fV3PTWyRtuNOWgDmVdzhTWboaCqyaEM8fTPvAhfgZs+FM1 8B2VsP7WHc3mXQUCT2NArWP+AQLk+5CwKIr/Ist3vvKmuCWinLncjt5yPk6PVxGJLrDK Ww3MzNejJzGAtEGB4xPPRwdklN5wmOl3mSKfk+fXnkb4YjasHzP9EJWvEAFsLAv9uxRq b0vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=H1UJKTILvPUJUSuBQiXrqiI5Gz/sJGByKcHfAdI+98Q=; b=ST2VBgiNfCMnQdpeov6mVqolItuRSmaqfoD1N1y9h/ie61Ch+vteLnEIB94jRBmIws H+m6ZvHdipueAYjylqXEzidJOyhXXDSdOUdlWdvaLiUt17Cm8bmnQGN/W94qsxjRAEo1 TpbHuDJuCctSIiQ/AeCzOklvehT8JkutpvFXSbtfdN38ecfngYmWzeAjcDSdrbLxHJR3 mM770xHnQnhPj3uogA9Xc4Jyemwb4WfQ5mvi9FbBE7W3kDRGtb0eVv3UUP5zGubgyFhd Z6BfIwLJSCKAcM9bpXGWzXhLGKbl6iLqmOyoRBCPBsqNj1VHt1GRrV2VtyhB/pzC/Svq GMKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yuV1NHY6; 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 i21si1749115pju.82.2019.05.29.21.13.01; Wed, 29 May 2019 21:13:17 -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=@kernel.org header.s=default header.b=yuV1NHY6; 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 S1728635AbfE3EMA (ORCPT + 99 others); Thu, 30 May 2019 00:12:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:43788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730787AbfE3DQo (ORCPT ); Wed, 29 May 2019 23:16:44 -0400 Received: from localhost (ip67-88-213-2.z213-88-67.customer.algx.net [67.88.213.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6F62C245AB; Thu, 30 May 2019 03:16:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559186204; bh=Q7httw4GMtbhRVDmW0NF83OeHyB4FnlwhHmUY1vI1OM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yuV1NHY6a8iOogoFm2Mn2CTnUqJKAgdkY9Ep/01WaUyAWanL6lC4/7XsFlWpf1UKS sKan8BY1VMIhG+5wzXII18gFVydl1rZaUrktHGbJn/6hPpVmEkDbV2QnzGwsKhDuig Jm2TfFTdmqMm39B3npW+WfX4Etu9ZroiWaQUEoIA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Arnd Bergmann , Julian Wiedmann , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 090/276] s390: qeth: address type mismatch warning Date: Wed, 29 May 2019 20:04:08 -0700 Message-Id: <20190530030531.850004089@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190530030523.133519668@linuxfoundation.org> References: <20190530030523.133519668@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 46b83629dede262315aa82179d105581f11763b6 ] clang produces a harmless warning for each use for the qeth_adp_supported macro: drivers/s390/net/qeth_l2_main.c:559:31: warning: implicit conversion from enumeration type 'enum qeth_ipa_setadp_cmd' to different enumeration type 'enum qeth_ipa_funcs' [-Wenum-conversion] if (qeth_adp_supported(card, IPA_SETADP_SET_PROMISC_MODE)) ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/s390/net/qeth_core.h:179:41: note: expanded from macro 'qeth_adp_supported' qeth_is_ipa_supported(&c->options.adp, f) ~~~~~~~~~~~~~~~~~~~~~ ^ Add a version of this macro that uses the correct types, and remove the unused qeth_adp_enabled() macro that has the same problem. Reviewed-by: Nathan Chancellor Signed-off-by: Arnd Bergmann Signed-off-by: Julian Wiedmann Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/s390/net/qeth_core.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index 2d1f6a583641b..b2657582cfcfd 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h @@ -201,6 +201,12 @@ struct qeth_vnicc_info { bool rx_bcast_enabled; }; +static inline int qeth_is_adp_supported(struct qeth_ipa_info *ipa, + enum qeth_ipa_setadp_cmd func) +{ + return (ipa->supported_funcs & func); +} + static inline int qeth_is_ipa_supported(struct qeth_ipa_info *ipa, enum qeth_ipa_funcs func) { @@ -214,9 +220,7 @@ static inline int qeth_is_ipa_enabled(struct qeth_ipa_info *ipa, } #define qeth_adp_supported(c, f) \ - qeth_is_ipa_supported(&c->options.adp, f) -#define qeth_adp_enabled(c, f) \ - qeth_is_ipa_enabled(&c->options.adp, f) + qeth_is_adp_supported(&c->options.adp, f) #define qeth_is_supported(c, f) \ qeth_is_ipa_supported(&c->options.ipa4, f) #define qeth_is_enabled(c, f) \ -- 2.20.1