From patchwork Wed May 9 10:48:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 135248 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5475669lji; Wed, 9 May 2018 03:48:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqbNQr4ytu/c7B54XjN9xFInhZYT1BuhjFOvmiLFIaa2K07apxgTjq8TdeB27zZMGeVpcor X-Received: by 2002:a17:902:7443:: with SMTP id e3-v6mr30750493plt.169.1525862933122; Wed, 09 May 2018 03:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525862933; cv=none; d=google.com; s=arc-20160816; b=EQ4ruzIKXl4HH1udzsGDpY1GYLoq2jgd82EjdRnxT5vhTMeAT0HiqnQuhXBoaOtJUa le4XpoVi7t4xOtw0hXeuyejlbhrlet2Jjdtvq349oOKzhZrtSozpIR6BlSAHlJDVd/c4 FX1mFjBoX8YJOTKwuYcldw7HZoGzNnRb6DUfy2/0P4RaaCW8LN/314QBsDWyTNdXOLE9 /Sud96IVr5dwt8aOUBRmiWJpQAZk1kyTm3KL8HINV6RVVrmx+ScC1/cPO/VVTbNrJynB pDYbFT+Ut+UzJ1fAKpEG6uwZeqGYXaN0VoRpwLh1zBZUsYH96nBTVE2dWoY+ajocZtWU AZng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=h/2VdcSAGkKuX3hEwksuXin5cHbMKKXF1UCq0j+tFGk=; b=XDdQrOEfi/wKxEN3kqyqEZqANvF1n2MGZ9NCjjVfkum6+J7/ncB2fzMBy8GBOoBaXV pue4iMFDBkGJ05JTBW2g+UXOaNsHBj+FwYC1nLfgRJ7CJkmoKQzpzMrvmqPpC5CrW7iQ 2pczKxOX77xPMw+p/YMs5XRbwTLlon6UdwM1dGwkz/byNM4D82txM/71uGL31tR+zjzq NmgbsHS2iAIwnyCxlvzhwky8G/rmltZasAG20MskqpLwx3l1Ra+7XxfIlT93ANEZTN02 2QSmCMHCibA465Z28/Hw8cwMEN5FCo/aTcOkY0TrJOUtlhw4Al+Q6sV8Uo2Mt/g3PyPZ QPSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W/PAhnUV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12-v6si11469991plt.233.2018.05.09.03.48.52; Wed, 09 May 2018 03:48:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W/PAhnUV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934691AbeEIKsu (ORCPT + 29 others); Wed, 9 May 2018 06:48:50 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:41198 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934458AbeEIKss (ORCPT ); Wed, 9 May 2018 06:48:48 -0400 Received: by mail-lf0-f67.google.com with SMTP id o123-v6so50265066lfe.8 for ; Wed, 09 May 2018 03:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=h/2VdcSAGkKuX3hEwksuXin5cHbMKKXF1UCq0j+tFGk=; b=W/PAhnUV7eFXOCFlDnTaqstoY39JVqHo+MFibvBn778LgaR4pBE2Al+AnBlwOLlHT7 WT1f6a/9LnfpL2XoIUp90e9F65bm1qqDWd8huuXpqTflHACUH6vQ1OC9dmcwRJSITYYD YoORSusQMLPy21jy5a6jLswzETbkcNzhQjlQc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=h/2VdcSAGkKuX3hEwksuXin5cHbMKKXF1UCq0j+tFGk=; b=o3mrVBb993xIhlL5vNEmrrMh7LgPfPWncBC1z2NZ0K27KoQXqA8XuuOYma6tGTFOyW JrOA8KR3fGmPnWncwwABTJQuwABzcOIXRB3SHr3MHMwmYEC4lXvPPOZzTi1txpACs+Pg QGqh+LddcXryNmJZ/c1CYokubbHN6kM3YJRJjSALyFD31FE7c4xptkSEXyUBNZAXyPxu cXDElg0FQDtWuodPMhchvd0ey1O4yNkFJONHo3BrM77MbYypSQnVhDUcJOwO1SRd/gDV zPeJHJy29As6ruekP2qd24w3vN7RAMdF5SZtsrcJ6zMethSWGtCkW4jvRv4G3omGQCOa zZgg== X-Gm-Message-State: ALQs6tAIjM9yoDDmEmTvx7EkJNP5RmW2XoV5Df54YeetZcc0WUjbE+sX SvZoEf8TmnZMosD4z3x/GqBDRHo/Dn8= X-Received: by 2002:a2e:944d:: with SMTP id o13-v6mr12890076ljh.65.1525862927339; Wed, 09 May 2018 03:48:47 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id l24-v6sm3741735ljg.19.2018.05.09.03.48.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 May 2018 03:48:46 -0700 (PDT) From: Anders Roxell To: mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] media: lgdt330x: add inline to lgdt330x_attach function Date: Wed, 9 May 2018 12:48:42 +0200 Message-Id: <20180509104842.7621-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_DVB_LGDT330X is disabled, we get a build warning: In file included from drivers/media/common/b2c2/flexcop-fe-tuner.c:21:0: drivers/media/dvb-frontends/lgdt330x.h:61:22: warning: ‘lgdt330x_attach’ defined but not used [-Wunused-function] struct dvb_frontend *lgdt330x_attach(const struct lgdt330x_config *config, ^~~~~~~~~~~~~~~ The affected function should be "static inline" and not only static since the function is in a .h file. Fixes: 23ba635d45f5 ("media: lgdt330x: convert it to the new I2C binding way") Signed-off-by: Anders Roxell --- drivers/media/dvb-frontends/lgdt330x.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 diff --git a/drivers/media/dvb-frontends/lgdt330x.h b/drivers/media/dvb-frontends/lgdt330x.h index 94cc09d15ece..8ab6b39d02a8 100644 --- a/drivers/media/dvb-frontends/lgdt330x.h +++ b/drivers/media/dvb-frontends/lgdt330x.h @@ -57,7 +57,7 @@ struct dvb_frontend *lgdt330x_attach(const struct lgdt330x_config *config, u8 demod_address, struct i2c_adapter *i2c); #else -static +static inline struct dvb_frontend *lgdt330x_attach(const struct lgdt330x_config *config, u8 demod_address, struct i2c_adapter *i2c)