From patchwork Wed Oct 29 22:42:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 39801 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B262224046 for ; Wed, 29 Oct 2014 22:42:51 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id b6sf913768lbj.8 for ; Wed, 29 Oct 2014 15:42:49 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=aH9UtCDtOgNeclatPmgp7KfFunWaImxYcXyaAvPo0VI=; b=Gye8GGCzg320uErKp08/XdNLk3E933ANHaeaLKbHeQ0eiCizNu/oj+4vUsV1nR1Is5 RVUYCSyggCrxcEItYMaIOpemcYY6HdYEkwlXFqVw/3858/8N1x4mNMk2OEL7+IDVuxGa nCqWp6xZhbfxQbILzP8NjZVnx0NjrpH2R7r4BLmxDRSZq7D+D18PgF0prG4pzsTO5R1G aFa91SreEx3IQB2iZ+XgL3Pt2yVY4PWL7880LsyJyYUK3rZ7EbVZnMQmNIzLoWFR/Oq5 s4IUslleB981tmmkncG1ayT0z8mOafVcKWz84uaP0Dk/8t2xWijgtJ67pC3dLSnelOxm HCxA== X-Gm-Message-State: ALoCoQmBwHNwlVOSdQJyB373fevOQxWmGQzrIe39Wwk4mwgl/2aLGPvUnIvDo8gVotspao2D9Y1h X-Received: by 10.181.8.194 with SMTP id dm2mr6577052wid.2.1414622569879; Wed, 29 Oct 2014 15:42:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.229 with SMTP id h5ls285988lam.4.gmail; Wed, 29 Oct 2014 15:42:49 -0700 (PDT) X-Received: by 10.112.54.162 with SMTP id k2mr14451500lbp.63.1414622569691; Wed, 29 Oct 2014 15:42:49 -0700 (PDT) Received: from mail-lb0-x22f.google.com (mail-lb0-x22f.google.com. [2a00:1450:4010:c04::22f]) by mx.google.com with ESMTPS id l3si9240326laf.89.2014.10.29.15.42.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Oct 2014 15:42:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::22f as permitted sender) client-ip=2a00:1450:4010:c04::22f; Received: by mail-lb0-f175.google.com with SMTP id b6so3390850lbj.34 for ; Wed, 29 Oct 2014 15:42:49 -0700 (PDT) X-Received: by 10.153.8.164 with SMTP id dl4mr14562646lad.29.1414622569567; Wed, 29 Oct 2014 15:42:49 -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 c5csp744459lbz; Wed, 29 Oct 2014 15:42:48 -0700 (PDT) X-Received: by 10.68.164.65 with SMTP id yo1mr13110118pbb.126.1414622567945; Wed, 29 Oct 2014 15:42:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si4958677pdi.224.2014.10.29.15.42.47 for ; Wed, 29 Oct 2014 15:42:47 -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 S1757537AbaJ2Wmm (ORCPT + 26 others); Wed, 29 Oct 2014 18:42:42 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:55332 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757287AbaJ2Wmj (ORCPT ); Wed, 29 Oct 2014 18:42:39 -0400 Received: by mail-pa0-f43.google.com with SMTP id eu11so4095262pac.16 for ; Wed, 29 Oct 2014 15:42:39 -0700 (PDT) X-Received: by 10.66.253.164 with SMTP id ab4mr13058497pad.59.1414622559459; Wed, 29 Oct 2014 15:42:39 -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 lr4sm5274357pab.42.2014.10.29.15.42.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Oct 2014 15:42:37 -0700 (PDT) From: Behan Webster To: andriy.shevchenko@linux.intel.com, aysemelikeyurtoglu@gmail.com, matthias.schoepe@studium.uni-erlangen.de, mdcasey@chabloom.com, peter.senna@gmail.com, rashika.kheria@gmail.com, standby24x7@gmail.com Cc: behanw@converseincode.com, akpm@linux-foundation.org, andreas.frembs@studium.uni-erlangen.de, devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, mahati.chamarthy@gmail.com, peter.p.waskiewicz.jr@intel.com, quozl@laptop.org, valentina.manea.m@gmail.com, Arnd Bergmann Subject: [PATCH 1/4] staging, rtl8192e, LLVMLinux: Change extern inline to static inline Date: Wed, 29 Oct 2014 15:42:20 -0700 Message-Id: <1414622543-22969-2-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1414622543-22969-1-git-send-email-behanw@converseincode.com> References: <1414622543-22969-1-git-send-email-behanw@converseincode.com> 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:c04::22f 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 all cases instead. Signed-off-by: Behan Webster Suggested-by: Arnd Bergmann Cc: Arnd Bergmann --- drivers/staging/rtl8192e/rtllib.h | 4 ++-- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 2d82f89..33995ac 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -2944,12 +2944,12 @@ void rtllib_softmac_scan_syncro(struct rtllib_device *ieee, u8 is_mesh); extern const long rtllib_wlan_frequencies[]; -extern inline void rtllib_increment_scans(struct rtllib_device *ieee) +static inline void rtllib_increment_scans(struct rtllib_device *ieee) { ieee->scans++; } -extern inline int rtllib_get_scans(struct rtllib_device *ieee) +static inline int rtllib_get_scans(struct rtllib_device *ieee) { return ieee->scans; } diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index abb6729..067a45a 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -343,7 +343,7 @@ inline void softmac_ps_mgmt_xmit(struct sk_buff *skb, } } -inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee) +static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee) { unsigned int len, rate_len; u8 *tag;