Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7378563rwi; Mon, 24 Oct 2022 13:49:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM48PvY2peBmj5+O72ejkcVdVGdhWw6kEai75E6qQdbn8WDkUg2Ebnr71Yt0rXKNMycsJ6/c X-Received: by 2002:a63:8a4b:0:b0:460:7c54:1b2b with SMTP id y72-20020a638a4b000000b004607c541b2bmr29516734pgd.499.1666644547725; Mon, 24 Oct 2022 13:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666644547; cv=none; d=google.com; s=arc-20160816; b=SUZHWEyyOsLIdvsXtNDtsfrc79pZau0ynyikKAf2PGqbOuWhp28WPF/A0E7ogTCmom yp4J202Svh9JZ4O6cHNDpF1ZFMzqlLHrKIkyu0zaH0sBmWeEaw6lUCQATTwp4JZhv5RW UDAMONV3qfSirCilintqOrXkAAYxLtBAyn1EdIORhRB3oISec8QR8EYIr64Pl9mCA7zu DegL3h+Uz10r85NPXuyWDU72E607kbeknwk5l3CkfkcNJIWSOvPjhzxfrJ0KJcLp0fiv yvbNZfD+c84OV9qpi5s1NhpY5FzBdO9fCjCA6Nkn+5+s0+qEyEgE/mIm8soPYTTGw+VA ME2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=VKI8dhRzZ47dl/1Fto1jOkZ81FEqvO2UYen4UvblmZI=; b=np+3y7IOg4cNH1n1QESEzhVqSDaDV2cfYmDVToPvb+XxVwuM1yMLw072Bq3VBgdQeU mJWQs7cq2Rblju+DL+zRac9xCvO9xuU/3QnT3jP+bTdkjBtJzelEff81Lu8IUqwPs0WN W+CnhNY9Ri+zf9nIC666t0ZPK/VnFyJfxMAllUwqQPHLVloIXMGFxLaSNADkSYgzSDTX Wl7ZZQHegGXpb/kCZsYA37sZF8OLKMnrgzImR+YQky74zzr6LDlpTiMm5qdfPAuMt/8Y HpczESViW9SwaPthIJfbDYnw11Ow7+AOPHvAp0P2QUB6zwtp6nu0p+XvTq/FnEk4rVsN toCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="Kkvqf/+t"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a056a00195600b0052eb81ff734si861966pfk.113.2022.10.24.13.48.52; Mon, 24 Oct 2022 13:49:07 -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=@gmx.net header.s=badeba3b8450 header.b="Kkvqf/+t"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233982AbiJXUNR (ORCPT + 99 others); Mon, 24 Oct 2022 16:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231607AbiJXUMn (ORCPT ); Mon, 24 Oct 2022 16:12:43 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 271C1183DBE; Mon, 24 Oct 2022 11:31:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666636167; bh=icVbzJtZ9pqflJ14jNdNOlB/DYImZ+gyK6fC/SDHPeo=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=Kkvqf/+txMBi7sxfZs0V/5+nqVslh0tnBxX4/FfBbX4K5PxEYxT5PP/zpCOkVp7bv AjdzA1IvFe+Vl83LXPdeQMLwEY5VuZuTJREUOnmXgB7DCslsdCKNZhD1ffx1GoVLqb rKyNNUqFB0P2skYG5FNKeRZ8QSxQWKQjW3JNG1LI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.136.30]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MIdiZ-1oqd7434DN-00EaCt; Mon, 24 Oct 2022 20:29:27 +0200 Message-ID: Date: Mon, 24 Oct 2022 20:29:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH] video: fbdev: sis: use explicitly signed char Content-Language: en-US To: "Jason A. Donenfeld" , linux-kernel@vger.kernel.org Cc: Thomas Winischhofer , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20221024162901.535972-1-Jason@zx2c4.com> From: Helge Deller In-Reply-To: <20221024162901.535972-1-Jason@zx2c4.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:fgln+OSb5Fs7l921QypIIY6GvbB8Dpo8NbcH6CX//FlDdIZKoPn HTH8weoBRqVlYnQaJOUuVnLRopE3hTyC0rQ7NFop1qJoWADAuwh/gwd/DNyU80Z/nBkvvlj xLpYb1wKKdGZeA8sSZnuNeBXV4k3vo2v4nRR1R3a5fNPt5ryrwPOPk8q//T+CrXTBvb8tGY ylAA2rLff9VDqREvNVy4Q== X-UI-Out-Filterresults: notjunk:1;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fk4omj8xfqBjsC2nI7ULK4ZNtwSNkL4RWX1lUChj6VQVFEHo5ptjBdt UYRiyhO9rWcu/rgcBPXb83TqbyZiBMwK61+QvZcn0+DacPRzUpqe9iHCYEohp87oJsMkDWf7g 5tWzTVkU2WEhcEoBQOaIM9TLnOhpui0xVHCt3i2ChLG+oBQnDCdeqVmhOuP3nugZ4AFSHjm5s 1Vj1RWF2rhVPMK22jsLg7C4VPdecfyXbhtdJXGBCMdC5/PesfYAfQcVD1YpLkNrA9PuFXEDXh RC9SkKW4N7S/kPU5B8dCwYXVWnbtCTZlsjLfNmRqDveBSnMo782+7qGudFzP/fPnD3AzOq2WG C4txTHKBUgDkTOOgru1dp0fjnM5oXhkcvzC4mApzEc+DFHwaxpAHbIp2ScSj95wpB6eVqAIlb sXZ20FkJ2MN+Mk7WiXrpUkwEEJdEn2cTKNP1vqFwpg4tR3vGSP7j4/hbYLpbli5f3N1phP2fq r6dpFpstHxDSUm+0+SFiELW5DZ+6atWpEcW35DAGYFASa X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 10/24/22 18:29, Jason A. Donenfeld wrote: > With char becoming unsigned by default, and with `char` alone being > ambiguous and based on architecture, signed chars need to be marked > explicitly as such. This fixes warnings like: > > drivers/video/fbdev/sis/init301.c:3549 SiS_GetCRT2Data301() warn: 'SiS_P= r->SiS_EModeIDTable[ModeIdIndex]->ROMMODEIDX661' is unsigned > > Cc: Thomas Winischhofer > Cc: Greg Kroah-Hartman > Cc: Helge Deller > Cc: linux-usb@vger.kernel.org > Cc: linux-fbdev@vger.kernel.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Jason A. Donenfeld Applied to linux-fbdev git tree. Thanks, Helge > --- > drivers/usb/misc/sisusbvga/sisusb_struct.h | 2 +- > drivers/video/fbdev/sis/vstruct.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/misc/sisusbvga/sisusb_struct.h b/drivers/usb/mi= sc/sisusbvga/sisusb_struct.h > index 3df64d2a9d43..a86032a26d36 100644 > --- a/drivers/usb/misc/sisusbvga/sisusb_struct.h > +++ b/drivers/usb/misc/sisusbvga/sisusb_struct.h > @@ -91,7 +91,7 @@ struct SiS_Ext { > unsigned char VB_ExtTVYFilterIndex; > unsigned char VB_ExtTVYFilterIndexROM661; > unsigned char REFindex; > - char ROMMODEIDX661; > + signed char ROMMODEIDX661; > }; > > struct SiS_Ext2 { > diff --git a/drivers/video/fbdev/sis/vstruct.h b/drivers/video/fbdev/sis= /vstruct.h > index ea94d214dcff..d7a14e63ba5a 100644 > --- a/drivers/video/fbdev/sis/vstruct.h > +++ b/drivers/video/fbdev/sis/vstruct.h > @@ -148,7 +148,7 @@ struct SiS_Ext { > unsigned char VB_ExtTVYFilterIndex; > unsigned char VB_ExtTVYFilterIndexROM661; > unsigned char REFindex; > - char ROMMODEIDX661; > + signed char ROMMODEIDX661; > }; > > struct SiS_Ext2 {