Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7906149rwp; Wed, 19 Jul 2023 02:04:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlEEWzw5yr3pc7S2QGWvOPxKWYq0qnUyWY0sCSuLMNmO3u9Zl5lptCz7PeUxe05HgzmFhhI3 X-Received: by 2002:a17:902:a70a:b0:1b5:694:b1a9 with SMTP id w10-20020a170902a70a00b001b50694b1a9mr1940606plq.32.1689757450576; Wed, 19 Jul 2023 02:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689757450; cv=none; d=google.com; s=arc-20160816; b=Z2dIQs1pnKF9dQhwQrDEwR0H94bpztxGlnFqCibc0IhmW0C+2eEUI4g9TgM1G337oP pavy6cAotFLMldBNfcgFK76Fwg7xSeivZgYsg/XOviMLZg2lXfgAeU+PLJ4i/4AwITk6 qZMFTBy4CkChdJy+3p4F+pj6rghhDZwLv8YGuPyeMFtZ+GljpGspIbWVpE6nqT8umOFV Kvgv+G2IWh9yIwOxQUDHHqDY+kGSXHEZuttNZrhu6gjzFp4TzpM3szbS2cLHoZ/b1wZE STANlUOBiNWk4TRMK7ej2Jb8tLEMfxLXacaQe+4hmn1Ukupexa6fgno9YsPWXIDcsmL6 h0xg== 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=E+CQXQd4tGU0Rb1TJbXaF+hjYbX5FufdygyuyB/rfN0=; fh=T0uNtRxqvL9ENVXZTX/SU0F/f4TZyTczr5tRiRzTnVg=; b=zG6K9Nygs6EAwEcWFlcBEqT00IYIAfCpynjlFms/BDtO27OnIDnfTYzcx8YS/QZV19 cXKDt/m3RGlCu9MGTW/v42IT6pv3uaqzBByKL7FymM/BzudO+mAv0q8whk/i0Rr0U+vi C4FqmJ5DIMd1pL0XvO3SIOzhCMPC/RHBfCSHH7WSdzeFJeGMoNR5J6hd6su7wruVjdDP O6Z/izQOFyvomZozvRlG+JspVoO+HZjraXFbg+ujYHTzgwpufDGKoUI5nZXlTgOy93NP W+4tCz4x7uCfhfG02xyWes5scJNPSXw4EpyQocyZ7kTCtn6h69SoCrxyE+7uynSRVZ5W TtJA== 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 jx6-20020a170903138600b001b54cd227c0si3070244plb.115.2023.07.19.02.03.55; Wed, 19 Jul 2023 02:04:10 -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 S229561AbjGSI5j convert rfc822-to-8bit (ORCPT + 99 others); Wed, 19 Jul 2023 04:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjGSI5h (ORCPT ); Wed, 19 Jul 2023 04:57:37 -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 46A2919F for ; Wed, 19 Jul 2023 01:57:36 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-199-JcrrCbdbNSik7gdKJemqkQ-1; Wed, 19 Jul 2023 09:57:33 +0100 X-MC-Unique: JcrrCbdbNSik7gdKJemqkQ-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.48; Wed, 19 Jul 2023 09:57:32 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Wed, 19 Jul 2023 09:57:32 +0100 From: David Laight To: 'Tejun Heo' , Carlos Bilbao CC: "josef@toxicpanda.com" , "axboe@kernel.dk" , "cgroups@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , amd Subject: RE: [PATCH] blk-iocost: fix seq_printf compile type mismatch error Thread-Topic: [PATCH] blk-iocost: fix seq_printf compile type mismatch error Thread-Index: AQHZuN9gMxBfo8Y4UkeL32HKckyYqK/Ay+LQ Date: Wed, 19 Jul 2023 08:57:32 +0000 Message-ID: <2b4540aadc3c4449a192aeed6211f232@AcuMS.aculab.com> References: <20230717141852.153965-1-carlos.bilbao@amd.com> In-Reply-To: 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=-0.9 required=5.0 tests=BAYES_00,PDS_BAD_THREAD_QP_64, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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: Tejun Heo > Sent: 17 July 2023 19:49 > > On Mon, Jul 17, 2023 at 09:18:52AM -0500, Carlos Bilbao wrote: > > From: amd > > > > Fix two type mismatch errors encountered while compiling blk-iocost.c with > > GCC version 13.1.1 that involved constant operator WEIGHT_ONE. Cast the > > result of the division operation to (unsigned int) to match the expected > > format specifier %u in two seq_printf invocations. > > Can you detail the warnings? Was that on 32bit compiles? The problem is caused by gcc 13 changing the types of the constants inside an enum to be all the same. The best fix is (probably) to replace all the enum used to define unrelated constants with #defines. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)