Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5832993yba; Thu, 11 Apr 2019 06:44:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyn1yGPalwd3mbEtToazVcbSc6Il7dlV7B46NCXrOj8SV9c7VLs2dz/7Y57+r/u4CTCfae4 X-Received: by 2002:aa7:8019:: with SMTP id j25mr50900761pfi.77.1554990292867; Thu, 11 Apr 2019 06:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554990292; cv=none; d=google.com; s=arc-20160816; b=RHLB5bdi02it/JqmfggELLGWZtQwb0CxBhNumS/M+CWYDUEe9oCRdp0TA+8cj6pwcm tZxiyk6GoCiRtBdRy59Tp0ypipbfYfZjrEJ/lUa7W+jChivY90inxs2fV/gPRww2Mukg vzVChlQ2BYK+0wS6O2TwjI3RCOHtYv76lh/jtBMr09dj+UZ/6wihKczwpQ5XdeKpCWCo 1Kbksz4TdCNCEaJzX5llVm0eNnrYEI4Gon0ZPlayTK6VKT/Mvc68vnPkIaificxbhJs5 XrL0z0hyrb0hNXTy9/JO08Nur1rKSR0MDVV2UJxiJL4CX9/NzadQNDgJHxo8CvKY+V3v GrcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qiz8phefZFmKlnnYWEqdA3Wt/jQaZnTjvp73GqMgfKY=; b=rvF+pDo08ObHKe991c0KWFmPCZoJDaorSqBiIajmEa+l7STaoEgYu7DwarjwDoVrum odRxbYquiYSIv2WmHJT7rZJXlhwviDqV1aVsIgDgS0r5Ys75fuVYZNu6S4Lazq7AOoRD qNXFGpf40OuVbOMU7pqI+DSGKeI8q5t9GN2TV2Fw+kPbGFTKpVWaGFDg8aKwE99+Ip1P rFp8drgH18AAWu6QRQUBzwVXBtmY05OoEtXPv2J76FrAfDNCGOosAU9FrJsMQeCKGSGY K5XfXA2PNKbShd9iCVJs3+nTpi9wOPhEPihDbq8V/GCRRVVCi1BhmSAVlQ8LtKVH3qP4 2Txg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M9SrL7yF; 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 c14si27105751pls.106.2019.04.11.06.44.36; Thu, 11 Apr 2019 06:44:52 -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=M9SrL7yF; 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 S1726689AbfDKNnq (ORCPT + 99 others); Thu, 11 Apr 2019 09:43:46 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:36116 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726264AbfDKNnq (ORCPT ); Thu, 11 Apr 2019 09:43:46 -0400 Received: by mail-lf1-f66.google.com with SMTP id u17so4765903lfi.3 for ; Thu, 11 Apr 2019 06:43:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qiz8phefZFmKlnnYWEqdA3Wt/jQaZnTjvp73GqMgfKY=; b=M9SrL7yFslmZUI4Tccz9uheIZfcTjlZztvIyTrABlTLFWOVFrvc4s3gvWjdo3GcKwy CeUxqtiUpIBbbxL5U5N/XARGnFc8VYH5hE8SQ28BZTgP/1ChyBBk/I9kzeFnIiHnymNr +JTGZgHheFk5ZFZouYTAG5D10iLhC22adgVB8OeXm1B+/NkNGzyl8E0BFsdMqLq2MTsH +JlaA34juZX64dlNZcj60r5fOwiNdTb9yzxSa5j9Je3DC/U3ko8TW/PBumQygvgkTSMf bLgRNBt7URw816SHA23yHsWH5GFqtbROCQE5xaBNdfGRfZhJ8+6Sky1mn+ajxxivRhk0 6uPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qiz8phefZFmKlnnYWEqdA3Wt/jQaZnTjvp73GqMgfKY=; b=JbAEQt/8dPVGopP0XdtApvMEZF6TFjNXRl1BPurU+uumI23EbpgH1urvTWQEwQ4lP5 iYUkmoPllGxhlLEbGxTTtCLt9O9PwewPtEYpwqFJYsPuyzcqzA/qsAqpfly/zDXEpYh8 jVWUHQRBmOBPQRegFW5mWswtW3G7TSEG2ZJEYo1MQ1tvi4zBwT71RmsOY99ZQnfgO3vz cOlBCZenkVw9UkD9pqfHx7FNzhBNMtjvzRf9/RcyUK5l35cgePx2Xb3Gna4hv02QowBP dXaCInrpYxUfAGNSwsU00HwJ5Edo1Bo+/+1VgdhM6yMKmKVTuQ+ERg/rVzZQ5XPvAKnu fmZw== X-Gm-Message-State: APjAAAVn4RpNfDW/cN0Tq348k7QIyg3DYJyebdB7z1hsvp88zH2q8F9b 6OOj1hZPYZM9Zo31hb1gpCvWOVREiG+1mKvCfj81gQ== X-Received: by 2002:ac2:546c:: with SMTP id e12mr15610628lfn.121.1554990224289; Thu, 11 Apr 2019 06:43:44 -0700 (PDT) MIME-Version: 1.0 References: <20190410084558.35160-1-yuehaibing@huawei.com> In-Reply-To: <20190410084558.35160-1-yuehaibing@huawei.com> From: Linus Walleij Date: Thu, 11 Apr 2019 15:43:32 +0200 Message-ID: Subject: Re: [PATCH] iio: adc: ti-ads7950: Fix build error without CONFIG_GPIOLIB To: Yue Haibing Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald , Stefan Popa , Mark Brown , Justin Chen , Jonathan Cameron , "linux-kernel@vger.kernel.org" , linux-iio@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 10, 2019 at 10:47 AM Yue Haibing wrote: > From: YueHaibing > > When building with CONFIG_GPIOLIB is not set > gcc warns this: > > drivers/iio/adc/ti-ads7950.c:75:19: error: field chip has incomplete type > struct gpio_chip chip; > ^~~~ > drivers/iio/adc/ti-ads7950.c: In function ti_ads7950_set: > drivers/iio/adc/ti-ads7950.c:409:32: error: implicit declaration of function gpiochip_get_data; did you mean acpi_get_data? [-Werror=implicit-function-declaration] > struct ti_ads7950_state *st = gpiochip_get_data(chip); > ^~~~~~~~~~~~~~~~~ > acpi_get_data > > Reported-by: Hulk Robot > Fixes: c97dce792dc8 ("iio: adc: ti-ads7950: add GPIO support") > Signed-off-by: YueHaibing Reviewed-by: Linus Walleij Yours, Linus Walleij