Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3883471pxv; Mon, 19 Jul 2021 11:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLlZZE2LW2yzellsMDo5h2lO6Bphks1q2BqwMRH9PPHJFfsXHPX3VJbZBeTafzK79w/yEQ X-Received: by 2002:a17:906:f8da:: with SMTP id lh26mr28152871ejb.203.1626717818576; Mon, 19 Jul 2021 11:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626717818; cv=none; d=google.com; s=arc-20160816; b=SEW50txxE4NMbbyOgJ/GpxDQArWP+9zIL6JC5jVwb20WFgAK8QoeTA4QjlEdREuw24 Ee707QAkdwCHqjWCZMvkraJVgD162ZIN4ReGtP64EdyQibNibs/LPgH0LYR1FBd3Ey+J L6YTyXWveD3+ZSqLRHtwyJMLKxcm+ulIoaU6FcN+5uCT+tpH017sl3PqJ1evEM5BF92k HaHUvi9N0HthixztA+M4p7aDHg8K5q0esJA1gt8sX7S6pF0igx5qecuxZOgc/19VQvLd iHpp9q+TFy5fEzmcb2xeJrU/WPTy/E0UJCoo+DQJ4xWYQitUz+kyB7U/38nq6+jTuXvi 0dzQ== 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=gsIHzhXGjiEhjVCRIMae2UQ0LhlKp7Toa7f2l4LapCM=; b=Cw5lJN2nR3lekXGZulhJpSn+m+Ex6XZVBaK2W1X+U/tzy2DULLFv3V8+bCL4/zSuVc FbhH1pabi4PqYtaRM8CF//dBCnjXBaYouyr6qmDjWNkxgFE5GEksmgHtaMBxLfDiH0Is 9ZqnkTDbqSjv3jDMMoRXsl6BrNR6I4sNu2bTLthacAAsivBctNbzrKFBdssE1AkPR/3M GoHOxljeAt+1lVC6phlh7YgYDEXuwEiiADS4313zDiFmsJoTuZ3Ylvbo7h3MtQUrmIEY BLqZvPCTkxSMfP5XQPb70cOvYBM8cVnWFJexZA0ZSAxB+AH8WL17OMZKopJH9uuvhgtg dy9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tUyU5l2+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp25si22334169ejc.266.2021.07.19.11.03.15; Mon, 19 Jul 2021 11:03:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tUyU5l2+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1354842AbhGSRUd (ORCPT + 99 others); Mon, 19 Jul 2021 13:20:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:43674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348353AbhGSPmp (ORCPT ); Mon, 19 Jul 2021 11:42:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CA55B61404; Mon, 19 Jul 2021 16:21:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626711717; bh=HhGH2nShtf085j9Q6EdZ9DG6ZWL1jEl8tbmBg7X1qpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tUyU5l2+QVzLZnRajUk6ixYHZoBrkuyRmtGDgutTQ5Vhn/WRUJL3A9/QEyilSYDM0 LFLiBym0xZsrnMjhRrAm4Ciu5b6Ld/q73fSQZL2yoh0SthYW85xv3AjURKrlqt40jj rZ288awys396GeqIbbLt3AFbH82H7uOuwE4pohQE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiko Carstens , Vasily Gorbik , Sasha Levin Subject: [PATCH 5.12 106/292] s390/processor: always inline stap() and __load_psw_mask() Date: Mon, 19 Jul 2021 16:52:48 +0200 Message-Id: <20210719144945.983944477@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144942.514164272@linuxfoundation.org> References: <20210719144942.514164272@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heiko Carstens [ Upstream commit 9c9a915afd90f7534c16a71d1cd44b58596fddf3 ] s390 is the only architecture which makes use of the __no_kasan_or_inline attribute for two functions. Given that both stap() and __load_psw_mask() are very small functions they can and should be always inlined anyway. Therefore get rid of __no_kasan_or_inline and always inline these functions. Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik Signed-off-by: Sasha Levin --- arch/s390/include/asm/processor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index 023a15dc25a3..dbd380d81133 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h @@ -207,7 +207,7 @@ static __always_inline unsigned long current_stack_pointer(void) return sp; } -static __no_kasan_or_inline unsigned short stap(void) +static __always_inline unsigned short stap(void) { unsigned short cpu_address; @@ -246,7 +246,7 @@ static inline void __load_psw(psw_t psw) * Set PSW mask to specified value, while leaving the * PSW addr pointing to the next instruction. */ -static __no_kasan_or_inline void __load_psw_mask(unsigned long mask) +static __always_inline void __load_psw_mask(unsigned long mask) { unsigned long addr; psw_t psw; -- 2.30.2