From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E467CC4363A for ; Mon, 26 Oct 2020 19:29:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 954D020878 for ; Mon, 26 Oct 2020 19:29:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1793031AbgJZT3j (ORCPT ); Mon, 26 Oct 2020 15:29:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:59910 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1793023AbgJZT3j (ORCPT ); Mon, 26 Oct 2020 15:29:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id E56F7AE2B; Mon, 26 Oct 2020 19:29:37 +0000 (UTC) Date: Mon, 26 Oct 2020 20:29:37 +0100 Message-ID: From: Takashi Iwai To: Arnd Bergmann Cc: Jaroslav Kysela , Takashi Iwai , "Gustavo A. R. Silva" , ALSA Development Mailing List , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ALSA: make snd_kcontrol_new name a normal string In-Reply-To: References: <20201026165715.3723704-1-arnd@kernel.org> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 26 Oct 2020 20:03:39 +0100, Arnd Bergmann wrote: > > On Mon, Oct 26, 2020 at 6:03 PM Takashi Iwai wrote: > > On Mon, 26 Oct 2020 17:52:18 +0100, > > Arnd Bergmann wrote: > > > > > > From: Arnd Bergmann > > > > > > When building with W=2, there are lots of warnings about the > > > snd_kcontrol_new name field being an array of 'unsigned char' > > > but initialized to a string: > > > > > > include/sound/soc.h:93:48: warning: pointer targets in initialization of 'const unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] > > > > > > Make it a regular 'char *' to avoid flooding the build log with this. > > > > > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > > > Signed-off-by: Arnd Bergmann > > > > I'm fine to apply this, but I thought we agreed to ignore pointer > > signedness intentionally? There are lots of such places and we were > > fed up in the past when gcc complained a lot about those... > > I'm only sending fixes for the ones in headers that get included in > a lot of places. There are good reasons for building being able to > build specific drivers or directories with W=2, but it's less helpful > if there are many identical warnings. OK, now I applied the patch. Thanks! Takashi