Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3017218rwb; Mon, 15 Aug 2022 16:13:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR6vG3Lv77Du1lS20XNTZoFEgP8nuHpX4mw6BSW5uH9Q1zGJ3WcQX/LiBYqY/M7RxEQuulFz X-Received: by 2002:a05:6402:156:b0:440:b458:93df with SMTP id s22-20020a056402015600b00440b45893dfmr16815110edu.337.1660605229679; Mon, 15 Aug 2022 16:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605229; cv=none; d=google.com; s=arc-20160816; b=i5HeBa6jAFWKej4KWsjMeZ8UxKB5iKtfjRwEbKLw+XH6eksr2h3uQ7Alm4YyT2N5oT lMfnT23eF1nx2qUPqVsvuQuo3ehQgiPlPYOi9vHLSinBUS9d+7tTb0QmVNTxcUKEr5yN tW9TDSXIMNXLmXpsYjSetZr0sym3SJsu2RvZ7bXUhMEldTKckHuGBnejthXzVB5w7RIf pY8mq1/hJ9FnOzPU6+iOA/Viae6W61N81/SJ2pFyF2jXkJnG+Fbfidl+x9isE55z43So oDA2kC1bUODtxkf7KjQ5QhaGtqK6Ivo3xIEibxhgqxia/8ae0HgiVpQ7DoBuiOxbMPQs SqqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=y9Wbys4ypPEc28qOlQNMeoSqtumfW57RXmjb1ILj+aU=; b=wBi3QTEvCYahfKSRjLp3GBChiKZIzj/gECUXHMIdChse4kzBY5jFmSdfCX4iZzHoms BxWP4TfpHQdde/RqBbSvY2r2twJkYcs3OndUdMqIACmTO0FV/O5RStIsNV3pYXxxK2sg +wkf3akaN5cWHFvEUW6pKWGLFsHueYRuEY2m1t36pH5QFxwUVGIWWyYJz3ueZPKO1+wE 7h3r9+zqnyy5dLfDw4sjLBxKpA5hQ3C4/raxOZJ7CssCS5DpPhhLV3+fJLlfz7fqAZFr w4TAGFlOwT6HkXSWG2cVew2nFKPj7Z+zQ0ok/N+4vaIevvcvm4Kcz5DX0Nvc2uAt6Lc3 3oCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Syj/4tbB"; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr22-20020a170907721600b0072b3ccd50dasi8220712ejc.905.2022.08.15.16.13.24; Mon, 15 Aug 2022 16:13:49 -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=@linuxfoundation.org header.s=korg header.b="Syj/4tbB"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348133AbiHOWZL (ORCPT + 99 others); Mon, 15 Aug 2022 18:25:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350801AbiHOWSf (ORCPT ); Mon, 15 Aug 2022 18:18:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4569465649; Mon, 15 Aug 2022 12:42:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 07A93B80EAB; Mon, 15 Aug 2022 19:42:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BE97C433D6; Mon, 15 Aug 2022 19:42:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592520; bh=xAgZioIB4x9uXAgmjXbNJvNDtCFdqwR8DK2FLyFyvU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Syj/4tbByufIJXlrPyQFaz/jDUTSXLVuPAsAJnxRK0v04sTVXYNF9lUJemfiSI4lr Ed/7wegdkY2at2b0mcndJT4zcM517UugYXoGNeEIiCyISQ8ZqL+jC7UwH4Dp/CZojL a5eqsPqMlH8lg3iRtiZ6m70OZxCCdryl3aON5snU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Alexander Lobakin , Andy Shevchenko , Yury Norov Subject: [PATCH 5.19 0124/1157] ia64, processor: fix -Wincompatible-pointer-types in ia64_get_irr() Date: Mon, 15 Aug 2022 19:51:20 +0200 Message-Id: <20220815180444.565236881@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: Alexander Lobakin commit e5a16a5c4602c119262f350274021f90465f479d upstream. test_bit(), as any other bitmap op, takes `unsigned long *` as a second argument (pointer to the actual bitmap), as any bitmap itself is an array of unsigned longs. However, the ia64_get_irr() code passes a ref to `u64` as a second argument. This works with the ia64 bitops implementation due to that they have `void *` as the second argument and then cast it later on. This works with the bitmap API itself due to that `unsigned long` has the same size on ia64 as `u64` (`unsigned long long`), but from the compiler PoV those two are different. Define @irr as `unsigned long` to fix that. That implies no functional changes. Has been hidden for 16 years! Fixes: a58786917ce2 ("[IA64] avoid broken SAL_CACHE_FLUSH implementations") Cc: stable@vger.kernel.org # 2.6.16+ Reported-by: kernel test robot Signed-off-by: Alexander Lobakin Reviewed-by: Andy Shevchenko Reviewed-by: Yury Norov Signed-off-by: Yury Norov Signed-off-by: Greg Kroah-Hartman --- arch/ia64/include/asm/processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/ia64/include/asm/processor.h +++ b/arch/ia64/include/asm/processor.h @@ -538,7 +538,7 @@ ia64_get_irr(unsigned int vector) { unsigned int reg = vector / 64; unsigned int bit = vector % 64; - u64 irr; + unsigned long irr; switch (reg) { case 0: irr = ia64_getreg(_IA64_REG_CR_IRR0); break;