Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8164754rwi; Tue, 25 Oct 2022 03:24:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tlJpkE5L+n8hRaayxFvHzZUaYdf3ZbR9EjIvB9gv0y+yVoEe2VfWd33PDpYWMRhwMzQta X-Received: by 2002:a17:902:9894:b0:186:a7d7:c56 with SMTP id s20-20020a170902989400b00186a7d70c56mr10164787plp.168.1666693441809; Tue, 25 Oct 2022 03:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666693441; cv=none; d=google.com; s=arc-20160816; b=do5X6G9LX5V3MFrimfIws8HFwpUVdA/xtsEIAjl6pW99Yvc28AQMqFeHOYEJtsLe9M T3d0bwpKTUii2JonskR4NnDfrMZMGOzgkVAMrRFS2OOIcMCT51rbnY4HqYH8XJEeZuSq sFjessAndiqFRuY6FeDu7wfE1+mDpxg4HaXzps8eKzM7w+xJffpGv8VDYIycz3tCanzk lyLr2wmLwLjg6BVE4xL7d5aI11MU4F3ApxHlMUf5iaMUhUqTd1fRoGtnjvgV4FHXk9tD Bze8riF9lI/oFSfodSD/YyF6p6AIu2pIa2npMpIyoOJPOsnEUiGWRE0+VLywqlpfJkxn X5Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=MG5G25+Z/7YEXV7zFsUcSf7xd/o+HLWmLVFA0GaxbYY=; b=qFlj0uXdLDMosUB+WgO0FfLhTZLyQoRKHOzv4JsNgt/RQH7s9CbL8SrHifS3KiyBeS 2P717dPExwwl/Rd10Qg0zbyK0fIYUcFGmfBcpmNgtJRnMk2RwBawvF8618G34ctMz+e8 czP6FKtgv/eCxSr9AbQeWm+2rtfKU9UpZEWtEmD3Rjn+U5qAWVOL0U9PwYJmX8xvEFxG blTa4wrwkYK7W/M5FoGEHAPpsI/jj2vwO6trTthME+2WdyE9NkxO8GoFyWqTJQWvnUB4 IhZKVzFLqQqavRdsw+jQnCQocQA2LcJWOlxzqUP4JD/nHhaJnXYVu9klyWwFQnCNs9U+ q2sQ== ARC-Authentication-Results: i=1; mx.google.com; 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=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a17090a930d00b0020940c79fc5si9516839pjo.51.2022.10.25.03.23.47; Tue, 25 Oct 2022 03:24:01 -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; 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=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232224AbiJYKGD convert rfc822-to-8bit (ORCPT + 99 others); Tue, 25 Oct 2022 06:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231484AbiJYKFf (ORCPT ); Tue, 25 Oct 2022 06:05:35 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4334517FD48 for ; Tue, 25 Oct 2022 02:59:56 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-221-ubkgpKyWN-GZuVIw3Ovb-w-1; Tue, 25 Oct 2022 10:59:44 +0100 X-MC-Unique: ubkgpKyWN-GZuVIw3Ovb-w-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 25 Oct 2022 10:59:16 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.042; Tue, 25 Oct 2022 10:59:16 +0100 From: David Laight To: "'Jason A. Donenfeld'" , "linux-kernel@vger.kernel.org" CC: Thomas Winischhofer , Greg Kroah-Hartman , Helge Deller , "linux-usb@vger.kernel.org" , "linux-fbdev@vger.kernel.org" , "dri-devel@lists.freedesktop.org" Subject: RE: [PATCH] video: fbdev: sis: use explicitly signed char Thread-Topic: [PATCH] video: fbdev: sis: use explicitly signed char Thread-Index: AQHY59GfTKHiiX1cE0qqKUXinyrVOK4e4PPg Date: Tue, 25 Oct 2022 09:59:16 +0000 Message-ID: <37a4d200e0b74c72854c018c02e18b50@AcuMS.aculab.com> References: <20221024162901.535972-1-Jason@zx2c4.com> In-Reply-To: <20221024162901.535972-1-Jason@zx2c4.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, 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 From: Jason A. Donenfeld > Sent: 24 October 2022 17:29 > To: linux-kernel@vger.kernel.org > > 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/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/misc/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; Isn't the correct fix to use u8 and s8 ? David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)