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=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham 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 04CDAC433DB for ; Fri, 12 Feb 2021 10:55:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CBA8264E6B for ; Fri, 12 Feb 2021 10:55:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230373AbhBLKzw (ORCPT ); Fri, 12 Feb 2021 05:55:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:57076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbhBLKzn (ORCPT ); Fri, 12 Feb 2021 05:55:43 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AA47D64E35; Fri, 12 Feb 2021 10:55:01 +0000 (UTC) Date: Fri, 12 Feb 2021 10:54:59 +0000 From: Catalin Marinas To: Vincenzo Frascino Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, Will Deacon , Andrey Konovalov , Andrew Morton Subject: Re: [PATCH v2] arm64: Fix warning in mte_get_random_tag() Message-ID: <20210212105458.GA7718@arm.com> References: <20210211152208.23811-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210211152208.23811-1-vincenzo.frascino@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2021 at 03:22:08PM +0000, Vincenzo Frascino wrote: > The simplification of mte_get_random_tag() caused the introduction of the > warning below: > > In file included from arch/arm64/include/asm/kasan.h:9, > from include/linux/kasan.h:16, > from mm/kasan/common.c:14: > mm/kasan/common.c: In function ‘mte_get_random_tag’: > arch/arm64/include/asm/mte-kasan.h:45:9: warning: ‘addr’ is used > uninitialized [-Wuninitialized] > 45 | asm(__MTE_PREAMBLE "irg %0, %0" > | > > Fix the warning using "=r" for the address in the asm inline. > > Fixes: c8f8de4c0887 ("arm64: kasan: simplify and inline MTE functions") > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Andrey Konovalov > Cc: Andrew Morton > Signed-off-by: Vincenzo Frascino Acked-by: Catalin Marinas