Received: by 10.192.165.148 with SMTP id m20csp5356544imm; Wed, 9 May 2018 03:49:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZorDEIRnNVN3rsksMaSUuhiBr9bft4nHCsBsjoj5KoeYsd04z6w3Lln635Pmetei+f35Qkj X-Received: by 2002:a63:887:: with SMTP id 129-v6mr35008290pgi.17.1525862977551; Wed, 09 May 2018 03:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525862977; cv=none; d=google.com; s=arc-20160816; b=TcF9lrGpiPth06nKWA5ktGHoADXOQg6xA1byg/7pVNAcxkNdBFVpqcTZc9cF6slMUT CunClRtJRquiOimlqOJmpHCgUHKNxoijO+gQE9kXgNEzU4YHteW/gPVtbalzAjyI7G2/ Lp4oQw7q8UCFlTqOC3j93p3MVia1gLikHPKctBmHTfFMotKbonyunNghYveptoBX104T IJc0wmy3HVl+ZPCXZBUhTu+/PP3w/OXyD99vDtG+9fXc3gQ5phOANnV2WODatw+eY8XD K7gidX8ZSHR4emajR+onf/0FZPH0B04j5dyml/OFSDIP+ibS8bhYSoD8ILQl8ooN1p5u 7nUQ== 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 j5-v6si21428675pgn.117.2018.05.09.03.49.22; Wed, 09 May 2018 03:49:37 -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 S934687AbeEIKsu (ORCPT + 99 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(-) 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) -- 2.17.0