From patchwork Wed Oct 29 22:38:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 39800 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B1EE724046 for ; Wed, 29 Oct 2014 22:39:17 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id e51sf2476932eek.10 for ; Wed, 29 Oct 2014 15:39:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=Q+aQW5s5FORbWrEfJHZrzAX+51e4i0T9+c7XeOs4ZxA=; b=BecIcE0CES6cFXDFxR3zzfY/52srn7D9SQ4A07G4Wib08ydlaR1fuy68xVM4tsSkLj Qqo+DOCW+BlXQ5ieRqbrrPLLjtBxnPeABc3vKoO9nfKZRTGH3nszVTHjBjtxS5PmW6gq X6kh2eobVqLttqRk79HxAnhMxsOKmZ/1NKu1F+pZKGOO7Y38n8UgFCVopE5+dDs9bEPd hR9HQUQRmc70y9yeXRsLCZAtfE+rkYWdKsRFMsgi2zXcyGl3UfdqTjVO+Y2tPDbMLeva 8RkeExJB454lKC2Gko4FZUnRuXurMnG4vl51uiWfTmHXi/HTcyurqATdkwk9slHgWHsi tFdw== X-Gm-Message-State: ALoCoQkkm7cZYMXyxkYrSJ+8dBWTFHesm2g3ReWiFhbO9LxRozhZR/M+tCcc+7jMuFxfMEpIDo9O X-Received: by 10.180.73.73 with SMTP id j9mr5442484wiv.3.1414622356842; Wed, 29 Oct 2014 15:39:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.134 with SMTP id s6ls223210las.27.gmail; Wed, 29 Oct 2014 15:39:16 -0700 (PDT) X-Received: by 10.152.216.200 with SMTP id os8mr14568417lac.85.1414622356655; Wed, 29 Oct 2014 15:39:16 -0700 (PDT) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com. [2a00:1450:4010:c03::232]) by mx.google.com with ESMTPS id ap1si9268754lac.54.2014.10.29.15.39.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Oct 2014 15:39:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::232 as permitted sender) client-ip=2a00:1450:4010:c03::232; Received: by mail-la0-f50.google.com with SMTP id hz20so853417lab.23 for ; Wed, 29 Oct 2014 15:39:16 -0700 (PDT) X-Received: by 10.112.12.35 with SMTP id v3mr14499995lbb.80.1414622356373; Wed, 29 Oct 2014 15:39:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp744085lbz; Wed, 29 Oct 2014 15:39:15 -0700 (PDT) X-Received: by 10.70.23.163 with SMTP id n3mr13545207pdf.0.1414622354846; Wed, 29 Oct 2014 15:39:14 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yp10si5094379pab.51.2014.10.29.15.39.14 for ; Wed, 29 Oct 2014 15:39:14 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757668AbaJ2WjK (ORCPT + 26 others); Wed, 29 Oct 2014 18:39:10 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:61429 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756987AbaJ2WjJ (ORCPT ); Wed, 29 Oct 2014 18:39:09 -0400 Received: by mail-pa0-f52.google.com with SMTP id fa1so4081232pad.39 for ; Wed, 29 Oct 2014 15:39:08 -0700 (PDT) X-Received: by 10.66.65.233 with SMTP id a9mr12807921pat.107.1414622348402; Wed, 29 Oct 2014 15:39:08 -0700 (PDT) Received: from galdor.websterwood.com (50-206-118-3-static.hfc.comcastbusiness.net. [50.206.118.3]) by mx.google.com with ESMTPSA id t11sm5227828pdj.89.2014.10.29.15.39.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Oct 2014 15:39:06 -0700 (PDT) From: Behan Webster To: micky_ching@realsil.com.cn Cc: behanw@converseincode.com, devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH] staging, rts5208, LLVMLinux: Change extern inline to static inline Date: Wed, 29 Oct 2014 15:38:42 -0700 Message-Id: <1414622322-19813-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: behanw@converseincode.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::232 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@ Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 both gcc and clang. Signed-off-by: Behan Webster Suggested-by: Arnd Bergmann Cc: Arnd Bergmann --- drivers/staging/rts5208/rtsx_transport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rts5208/rtsx_transport.h b/drivers/staging/rts5208/rtsx_transport.h index b4b1123..899bc20 100644 --- a/drivers/staging/rts5208/rtsx_transport.h +++ b/drivers/staging/rts5208/rtsx_transport.h @@ -46,7 +46,7 @@ void rtsx_add_cmd(struct rtsx_chip *chip, void rtsx_send_cmd_no_wait(struct rtsx_chip *chip); int rtsx_send_cmd(struct rtsx_chip *chip, u8 card, int timeout); -extern inline u8 *rtsx_get_cmd_data(struct rtsx_chip *chip) +static inline u8 *rtsx_get_cmd_data(struct rtsx_chip *chip) { #ifdef CMD_USING_SG return (u8 *)(chip->host_sg_tbl_ptr);