Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4072222imm; Mon, 18 Jun 2018 08:42:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIqmZJqxkrd6K9G7ZtHNymJz+6IPwm+o8BWrANL84Bdxn6QQKMkMkvMfyf9u/5jJDpo79Wx X-Received: by 2002:a17:902:6b84:: with SMTP id p4-v6mr14667106plk.272.1529336532618; Mon, 18 Jun 2018 08:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529336532; cv=none; d=google.com; s=arc-20160816; b=W1PCZPJDXO62JOu2S+AYogGMmy3NpHFJL8/DfEyHwzuRioism+VBLtGbKhuqq8jvck UZE3GPZgGVX5/amv67r4i1YuPv5kP/zzRBC0fPoviwXxjyE7wrd1VSwXxQKO3rmA0VXC 1levPvB0lDhGkbMQwGCSSNc3jYLlhvumrkxBoURnQ1B7/cZqtjJpqjbpA1dSy/LVp34t q9PTdz+ONgfHGME2PtDP7HuaqQ7J2/Ctg77M6nFqfroWNA3Klds0PQQxnBJn8JmCgQex B82jsrvFfIXcnxnlkvC55wKTXeb5+75QhZk3SIK6Qn3kDPD69Dl8OBzxvflltCcjgr+t 78TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=xektqa5c7B0muVAH4SJlid7AOpy+cgodKWaOXIB3fns=; b=WQ7u0epSYwoAk5N6qwtt6cvanzjfMbVIFktXPQkhmlhMJdFOWgMoRX2jSEmlQHdwUk hvMHZBjLQ2KMaemSkEMGuicnskDNMM/8ZXwodJHwld+XKQzpZxG/m5wq/X2gS+U8f85x aS+dwKyFzQAtKrwj1/vXs24sNGtqkr2qsDaCGtgxWVBJnt5xyLJQPq4gYoUywQ+QhL7w Jb2ggsxTSBi9vnIJWrt7SZc+Ai92i1Yrgr/Wf/xtuWz37osZPQ5+iLbALJ7pEzuKycUG O7Obx+1XmQSL5RPdC3fIQgd9jG2Zvat0Dl8cZvqhHMTMQPzu8PqQHs8ICQULeFLp6Rqz Xpiw== ARC-Authentication-Results: i=1; mx.google.com; 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 j12-v6si12333775pgq.312.2018.06.18.08.41.58; Mon, 18 Jun 2018 08:42:12 -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; 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 S934465AbeFRPkv (ORCPT + 99 others); Mon, 18 Jun 2018 11:40:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:47825 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932442AbeFRPkt (ORCPT ); Mon, 18 Jun 2018 11:40:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id AFCC9AD73; Mon, 18 Jun 2018 15:40:48 +0000 (UTC) Date: Mon, 18 Jun 2018 17:40:48 +0200 Message-ID: From: Takashi Iwai To: "Stefan Agner" Cc: "Jaroslav Kysela" , , Subject: Re: [PATCH] ALSA: ctxfi: use enum type CT_SUM_CTL where appropriate In-Reply-To: <20180617134652.1638-1-stefan@agner.ch> References: <20180617134652.1638-1-stefan@agner.ch> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 17 Jun 2018 15:46:49 +0200, Stefan Agner wrote: > > Currently a variable of type enum CT_AMIXER_CTL is used for enum > CT_SUM_CTL values. This leads to warnings when using clang: > sound/pci/ctxfi/ctmixer.c:945:32: warning: implicit conversion from enumeration type > 'enum CT_SUM_CTL' to different enumeration type 'enum CT_AMIXER_CTL' > [-Wenum-conversion] > for (i = AMIXER_MASTER_F, j = SUM_IN_F; > ~ ^~~~~~~~ > sound/pci/ctxfi/ctmixer.c:975:29: warning: implicit conversion from enumeration type > 'enum CT_SUM_CTL' to different enumeration type 'enum CT_AMIXER_CTL' > [-Wenum-conversion] > for (i = AMIXER_PCM_F, j = SUM_IN_F; i <= AMIXER_PCM_S; i++, j++) { > ~ ^~~~~~~~ > > Introduce enum CT_SUM_CTL k and it instead. > > Signed-off-by: Stefan Agner Applied, thanks. Takashi