Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1145191pxv; Fri, 9 Jul 2021 19:26:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwjpGAAXP6u1L6bScwsFr6UVRvKbFbKPoj8pQkbI8skY0yH7LlM+FT/V4xlnLX/kUl/EzD X-Received: by 2002:a17:906:5d1:: with SMTP id t17mr42839760ejt.320.1625884017321; Fri, 09 Jul 2021 19:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884017; cv=none; d=google.com; s=arc-20160816; b=mIJFwtu6vEtOoUK8XKlKkWZNDUUVxwHBILaZTvS5eDisGmTGOuJQLsixY/KBZaV6b2 zx492iJPfLp5y19YkiuyZkEyRAnoWRXEqluIa8gRDqHOX+Eh2ItkWRBdFpoFUx2uf6Tb nHBTLcCc7+1iWLzy5qyAm7ZEc7+sL7xO1EW3pbQ42cXlWtHnDO/jPn7Y9wixggxOw74P cPklvV3JP8u+owptUQblnlIc4iDopATFzj4daO66cQ17FX6QazTdyHooUCrOZA/N778E FZKLy/vpOuKPALH5cxF6ch8nme2Z0L8rpwiEwmZH+VAyPoXzzWHlMzEMo8EBNY0J58gX cNGw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gsIHzhXGjiEhjVCRIMae2UQ0LhlKp7Toa7f2l4LapCM=; b=TVXXU8q9WtvIzhRPTytZ3bF9EUwJBjjCyHFYMflpdOmPuwfARYBrsE8U/2oflSuWsP cV15JQs4yceomvOivrLjKTs1OXO4+IMXjtFVxlqurJSvMjhFs5EhWk2qia4vpAyLl1AM M4gcGjj5JefA+rQCDfZBf9YwRTMPNDbrCpsQ50lj67KBJS6GzQ8WSeuhYGttOwECHJER /31Q0WYfN5oOvpmZmi4p+ebvUwGO8dtEl1mgFMI147EEshNQ0uhqeL9cpMVAHx9vS2cy lD9TT3jo+30+Yom0M6IIwXbQ2n7lehxuxwAIZdXcofL9UU1+e4mTE5DVFV8Ln9+dkTlP 0+lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=deixQP7A; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 4si9418321ejm.546.2021.07.09.19.26.34; Fri, 09 Jul 2021 19:26:57 -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=@kernel.org header.s=k20201202 header.b=deixQP7A; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233932AbhGJC2A (ORCPT + 99 others); Fri, 9 Jul 2021 22:28:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:42628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233393AbhGJC0j (ORCPT ); Fri, 9 Jul 2021 22:26:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0829961400; Sat, 10 Jul 2021 02:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883830; bh=HhGH2nShtf085j9Q6EdZ9DG6ZWL1jEl8tbmBg7X1qpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=deixQP7An3FnDv7B3uWbqnPABMgBkchsgjq+mJej9kk2GfdPhtOUW5Osv+201yLRi rH4JOojnTmoWRZz7u1UInPQaf7qyIySJMNZJNjhDoniyltuoNA3g9EIN4DLKRFqWQ1 P1eE3L1QTarKoFZPYr9ozl1Z46YQdlrnJIQ0pfnUe6N2esRxhw0YGj+WrfVu7LZDhh WpxYWiEIT/mFD253aw25q6jBiAi3Ve30QyRyUCpbAiYQPj2HM9K/QwR04KfpvOTNjX TGK8DyqbB25JswVpHbnT4fkvLliCFK6iASBhqWwVqFDdIiDMt9iu00+Z+1dpu+PhVw 1Wr93yBvJ0W4A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Heiko Carstens , Vasily Gorbik , Sasha Levin , linux-s390@vger.kernel.org Subject: [PATCH AUTOSEL 5.12 078/104] s390/processor: always inline stap() and __load_psw_mask() Date: Fri, 9 Jul 2021 22:21:30 -0400 Message-Id: <20210710022156.3168825-78-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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