Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2320077rwd; Wed, 17 May 2023 08:29:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4G3YBoAtl0WMnrBiDED1DaBiuvu1txAVOc4rgUFsa6r26VtGqwVeOEQYmcztvYJwp79NPa X-Received: by 2002:a17:903:11cd:b0:1ab:94:1ee4 with SMTP id q13-20020a17090311cd00b001ab00941ee4mr51587234plh.2.1684337376837; Wed, 17 May 2023 08:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684337376; cv=none; d=google.com; s=arc-20160816; b=UTvKUjrRJUne87JKd8ij6Q35jhdnYh+PXitjfPk29W9qgv3+cBWS+67yQxhi8e/mxa B146Eh3Btfk4jMDTrUbo+i1mYLwpHacDprjJjtXEK5Al0IxS/erCEC2tEpQ6KD1N9WXH l4igZr+VkpYVkBNTO/7I+w49l5zOrhObQyRUQzkMrFX2rfwbpd1dfDm9kIM6/VHAXyfI reyf88rReM5WKAed1iBxMxzujoBDw1qlyYyKq7pcdA1AkE2iPyP1M6EQyj+NvfTX7l49 mKALDcBIyWcJR58Qi397F81CAct/0bWwIAH7/2PVjFj/JNt3S7Ugw+qcAkfuDPSiaSSl hkqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=E71tRNgYo9wMjc9GxHdRmyjqTqk11uH8BUJPLCb82MA=; b=sMrp+RTVW6oidgkvMYMJ0LrEgo154+KVGJkcDk7mPQhXYmh4+SBmZJEFZur1hFkqw6 UQKdqkpI5RVthHWKfc4Lbf2q2vbUrpK96dty1bgJNJ0Pyx97CDzFOTX7fG+IMB5rsk1U egjwz74umgSXy+jAqhbYKCXiZ77JuXPm5XQuk2F/qKIx3M9++VQdq4DtrZyeWEgjny0o 44JpMqBKxbrU8NVWiaYsajZetSQWqI7B3tms8yFZOUfxNkZoBzwbJ6fBNpjawo8FH33T vVHUZ6KyNtQAuNbPhcbAmFPolX0D+F7mlIvlhjNUm5ckxVcE/+MXfmjuz1yD65t66reB 1EsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aHt0gAQk; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t4-20020a170902b20400b001a8096ef2bfsi11882962plr.34.2023.05.17.08.29.22; Wed, 17 May 2023 08:29:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=aHt0gAQk; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232011AbjEQPES (ORCPT + 99 others); Wed, 17 May 2023 11:04:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231941AbjEQPED (ORCPT ); Wed, 17 May 2023 11:04:03 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AFF393E5 for ; Wed, 17 May 2023 08:03:47 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 9A4C61FE5E; Wed, 17 May 2023 15:02:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1684335735; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=E71tRNgYo9wMjc9GxHdRmyjqTqk11uH8BUJPLCb82MA=; b=aHt0gAQk5rsssO9bkSdcpnNUEmhtVZJqQS+o946e30oyvX+4LlPWOwBI/umWgJNH/mQF9s 0f5QAXeGwS8FDpBKePfykmo2+KuW3+nLDVkM80njz+2y0mChNtV6joJeaO/pX3zgkjJ5em y02ylcaCEMcYRZrjkFmhZBCSjwgLNcw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1684335735; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=E71tRNgYo9wMjc9GxHdRmyjqTqk11uH8BUJPLCb82MA=; b=IYIFp0x0PwaWN+jzKdJ6lfDwq6KGqJWuN2skWYP3ejZ7n4uQtfuH5QJnNYRvR/cHTuvFWc kiI8zedtMJyqkTCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D816113358; Wed, 17 May 2023 15:02:14 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id W+SWM3bsZGTvdwAAMHmgww (envelope-from ); Wed, 17 May 2023 15:02:14 +0000 Date: Wed, 17 May 2023 17:02:14 +0200 Message-ID: <87ednf0znt.wl-tiwai@suse.de> From: Takashi Iwai To: Min-Hua Chen Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: compat_ioctl: use correct snd_ctl_elem_type_t type In-Reply-To: <20230516223806.185683-1-minhuadotchen@gmail.com> References: <20230516223806.185683-1-minhuadotchen@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 May 2023 00:38:05 +0200, Min-Hua Chen wrote: > > SNDRV_CTL_ELEM_TYPE_* are type of snd_ctl_elem_type_t, we > have to __force cast them to int when comparing them with int > to fix the following sparse warnings. > > sound/core/control_compat.c:203:14: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer > sound/core/control_compat.c:205:14: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer > sound/core/control_compat.c:207:14: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer > sound/core/control_compat.c:209:14: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer > sound/core/control_compat.c:237:21: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer > sound/core/control_compat.c:238:21: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer > sound/core/control_compat.c:270:21: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer > sound/core/control_compat.c:271:21: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer > > Signed-off-by: Min-Hua Chen Thanks, applied. Takashi