Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp618367pxx; Mon, 26 Oct 2020 17:05:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrTVtvcMZ6Zdbz3xw10KTawWEAL+nbzdtXH9lPka2u0KyxTPEb/GCO56EpWUCjd39frM3B X-Received: by 2002:a17:906:e10e:: with SMTP id gj14mr19086317ejb.134.1603757101761; Mon, 26 Oct 2020 17:05:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603757101; cv=none; d=google.com; s=arc-20160816; b=CPR8Pn9yRY4v1uod7f6yEAbYB14JEHyoDwiG3Ds5oV76DfLQFK4a/hNvg7hs2nbvFO Ax3yeqdUI3qR4d/Nl80I8wbENmIwGoOqjC7977nI9c7mojFy/szWG7v4jv099BpXFWSg sSwGR4j5mLzP4kT6WQT4XmeO31qtH+Fm4KWClA/GiGWBKXbd3cIouJ8n1UlLo1tDzT7f NgiEjD37gIhhHgr4JA8YxATNPw5Ymgf1tXeY3oOhmIA+hz6L8s+xJ4CigCi6RYHok20i xTBykxW+MqQL02Y5NG0sMEb0DaBRSns6phf8uMzviEqPDdE7AURJTvTnrPhAS3yg+jWW G7Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lQpqS5fmKHhmnE1HNSEQzT1t5Io40K7OSDEfX259Bnc=; b=cOp3eniZf8viPOkyXr56UdGyMNlwzkItkJ4emg2eqduPgs8Ofqi/7fCqPxkO2bOQHs /B1TtGA6fQ20xKBGkDSM3Qsdq1aEWkKYe4dJ5a8YDOt1ex4ZKmsdfjr0w/Ro2naf4F09 S3MYGNnZtUc5QZ5rXW1ksO28or6xPCVsFCrK5/IHZVvMwgiqDeuXNo/UvNkkBRPcTIO9 +9yrcqrP+bbU858qvX+ULyFPRKndm/lE+qmt61/uI/GJcTPo+Sq9jM/2T/Ytc1Uh2F58 87dOoGUlVeu35I9QqgRNL5H+69THU9vj7k+dxVEdzBHrugUV3gHhgb80mT1IowmrFdzs SbBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ur+XPMXl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o25si8185062eja.475.2020.10.26.17.04.39; Mon, 26 Oct 2020 17:05:01 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ur+XPMXl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388660AbgJZVch (ORCPT + 99 others); Mon, 26 Oct 2020 17:32:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:44232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388551AbgJZVcg (ORCPT ); Mon, 26 Oct 2020 17:32:36 -0400 Received: from localhost.localdomain (unknown [192.30.34.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 28C88207C4; Mon, 26 Oct 2020 21:32:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603747956; bh=AYFF8wOTE/l1Y0U8+xS1E8od0GtWTnJ/ot3/H3wuly4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ur+XPMXlCWlMQZkQUXLiw5jwkWdNam2110mP+AJKo0ok08Joxkr8bwHgn0SaKEKPj VU3lnCzrHaAdi5MJdjLmqB+LL5tYL0cE3DVbBiIdG7puRQTeOKTzYhd4tQAaB62Wvk NnRNfFP04m2fzb5EWt0dT85M/v2NWETQdfw3QjXQ= From: Arnd Bergmann To: Inaky Perez-Gonzalez , linux-wimax@intel.com, "David S. Miller" , Jakub Kicinski Cc: Arnd Bergmann , Wang Hai , "Gustavo A. R. Silva" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 05/11] wimax/i2400m/control: fix enum warning Date: Mon, 26 Oct 2020 22:29:52 +0100 Message-Id: <20201026213040.3889546-5-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201026213040.3889546-1-arnd@kernel.org> References: <20201026213040.3889546-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann gcc -Wextra warns about mixing two enum types: drivers/net/wimax/i2400m/control.c: In function 'i2400m_get_device_info': drivers/net/wimax/i2400m/control.c:960:10: warning: implicit conversion from 'enum ' to 'enum i2400m_tlv' [-Wenum-conversion] Merge the anonymous enum into the global one that has all the other values. It's not clear why they were originally kept separate, but this appears to be the logical place for it. Fixes: 3a35a1d0bdf7 ("i2400m: various functions for device management") Signed-off-by: Arnd Bergmann --- drivers/net/wimax/i2400m/control.c | 7 ------- include/uapi/linux/wimax/i2400m.h | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/wimax/i2400m/control.c b/drivers/net/wimax/i2400m/control.c index 8df98757d901..180d5f417bdc 100644 --- a/drivers/net/wimax/i2400m/control.c +++ b/drivers/net/wimax/i2400m/control.c @@ -903,13 +903,6 @@ int i2400m_cmd_enter_powersave(struct i2400m *i2400m) EXPORT_SYMBOL_GPL(i2400m_cmd_enter_powersave); -/* - * Definitions for getting device information - */ -enum { - I2400M_TLV_DETAILED_DEVICE_INFO = 140 -}; - /** * i2400m_get_device_info - Query the device for detailed device information * diff --git a/include/uapi/linux/wimax/i2400m.h b/include/uapi/linux/wimax/i2400m.h index fd198bc24a3c..595ab3511d45 100644 --- a/include/uapi/linux/wimax/i2400m.h +++ b/include/uapi/linux/wimax/i2400m.h @@ -409,6 +409,7 @@ enum i2400m_ms { */ enum i2400m_tlv { I2400M_TLV_L4_MESSAGE_VERSIONS = 129, + I2400M_TLV_DETAILED_DEVICE_INFO = 140, I2400M_TLV_SYSTEM_STATE = 141, I2400M_TLV_MEDIA_STATUS = 161, I2400M_TLV_RF_OPERATION = 162, -- 2.27.0