Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755655AbcJUOTe (ORCPT ); Fri, 21 Oct 2016 10:19:34 -0400 Received: from mail.zhinst.com ([212.126.164.98]:43582 "EHLO mail.zhinst.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754956AbcJUOTc (ORCPT ); Fri, 21 Oct 2016 10:19:32 -0400 From: Tobias Klauser To: linux-kernel@vger.kernel.org Cc: Jens Axboe , Mika Westerberg Subject: [PATCH] block: Change extern inline to static inline Date: Fri, 21 Oct 2016 16:19:26 +0200 Message-Id: <20161021141926.7207-1-tklauser@distanz.ch> X-Mailer: git-send-email 2.9.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1491 Lines: 36 With compilers which follow the C99 standard (like modern versions of gcc and clang), "extern inline" does the opposite thing from older versions of gcc (emits code for an externally linkable version of the inline function). "static inline" does the intended behavior in all cases instead. Description taken from commit 6d91857d4826 ("staging, rtl8192e, LLVMLinux: Change extern inline to static inline"). This also fixes the following GCC warning when building with !PM: ./include/linux/blkdev.h:1143:20: warning: no previous prototype for 'blk_set_runtime_active' [-Wmissing-prototypes] Fixes: d07ab6d11477 ("block: Add blk_set_runtime_active()") Cc: Mika Westerberg Signed-off-by: Tobias Klauser --- include/linux/blkdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 34b80c9d295a..faec7923cf21 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1140,7 +1140,7 @@ static inline int blk_pre_runtime_suspend(struct request_queue *q) static inline void blk_post_runtime_suspend(struct request_queue *q, int err) {} static inline void blk_pre_runtime_resume(struct request_queue *q) {} static inline void blk_post_runtime_resume(struct request_queue *q, int err) {} -extern inline void blk_set_runtime_active(struct request_queue *q) {} +static inline void blk_set_runtime_active(struct request_queue *q) {} #endif /* -- 2.9.0