From patchwork Mon Jun 19 15:53:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prasad Sodagudi X-Patchwork-Id: 9796719 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BFECB6020B for ; Mon, 19 Jun 2017 16:20:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF00923B23 for ; Mon, 19 Jun 2017 16:20:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A384827165; Mon, 19 Jun 2017 16:20:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2EBDC23B23 for ; Mon, 19 Jun 2017 16:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=OSA8EHBE7S7yJ5XV82Kx1ijv0dAE+xMZRhzsJeClMA8=; b=SJq4wB0hNf10vwxXRHeQFhspDf 9y/3r108onDw1LLcoemSoomrrxaJgMgrHfcrqmszr9jifkY5t7PQX3VjOortM3uNEqkFe0A/nvct5 SCbJoT8gNgFIg41vD/+Ad5TJ+3hJTHeDe3wR2gsQDU8cNJocV+fCMs294uGkssd/2Y9vrmuMexvL6 C2rY/2Bl1lDucr1wldpRqBZMei8gWxl4k96WQ7kYSsm4pzSK4QA3rBTL1Pe9vxzq/+5XvFmggfS4N ihcE3cZcDoXDif1p1k9qOJWDcu9iBqJXwuy/RBjuFoRdEtKMcdT8XmGB9DBMHSQxwIE9ZWt0WPzMa f06o/4AA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dMzPg-0007QA-Nj; Mon, 19 Jun 2017 16:20:28 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dMyzy-0007cg-CV for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2017 15:54:04 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B56DA60A1A; Mon, 19 Jun 2017 15:53:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1497887612; bh=3H5N5MYozLbRnzNaZ8NnsGyZmH+vR5CFJ2rwn8cEDPQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nqhe2Vqiy+zbe+CV+g58OSRAa+BZgkFzenEuXLdm4XezfxzwCKMLcFZiCx48DiRW8 /g0JoSk7fuh7za6cbiQgjbPtzUAYXhaSaz0Sx68c+MVcahgz+N1ymv0Uf73lN4ZBpT A3LH+mCtqKkCm5tOYrjLSW5IPYdBjkXHy8kBwuAQ= Received: from psodagud-linux1.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: psodagud@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id F1B34605BD; Mon, 19 Jun 2017 15:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1497887612; bh=3H5N5MYozLbRnzNaZ8NnsGyZmH+vR5CFJ2rwn8cEDPQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nqhe2Vqiy+zbe+CV+g58OSRAa+BZgkFzenEuXLdm4XezfxzwCKMLcFZiCx48DiRW8 /g0JoSk7fuh7za6cbiQgjbPtzUAYXhaSaz0Sx68c+MVcahgz+N1ymv0Uf73lN4ZBpT A3LH+mCtqKkCm5tOYrjLSW5IPYdBjkXHy8kBwuAQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F1B34605BD Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=psodagud@codeaurora.org From: Prasad Sodagudi To: mark.rutland@arm.com, will.deacon@arm.com, catalin.marinas@arm.com, rientjes@google.com Subject: [PATCH] compiler, clang: Add always_inline attribute to inline Date: Mon, 19 Jun 2017 08:53:16 -0700 Message-Id: <1497887596-8731-1-git-send-email-psodagud@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20170615155440.GC26471@leverpostej> References: <20170615155440.GC26471@leverpostej> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170619_085354_695734_CC512DF3 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peterz@infradead.org, Prasad Sodagudi , mingo@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Commit abb2ea7dfd82 ("compiler, clang: suppress warning for unused static inline functions") re-defining the 'inline' macro but __attribute__((always_inline)) is missing. Some compilers may not honor inline hint if always_iniline attribute not there. So add always_inline attribute to inline as done by compiler-gcc.h file. Signed-off-by: Prasad Sodagudi --- include/linux/compiler-clang.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h index d614c5e..deb65b3 100644 --- a/include/linux/compiler-clang.h +++ b/include/linux/compiler-clang.h @@ -22,4 +22,9 @@ * directives. Suppress the warning in clang as well. */ #undef inline +#if !defined(CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING) || \ + !defined(CONFIG_OPTIMIZE_INLINING) +#define inline inline __attribute__((always_inline)) __attribute__((unused)) notrace +#else #define inline inline __attribute__((unused)) notrace +#endif