Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp830624imm; Thu, 31 May 2018 10:06:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKQ0zAj/eK5aDFY/1p0Kuu0gHCPntDSAS1lCmp5m/nJjt4/lfta77HREPaYxKXAnVlIi/e+ X-Received: by 2002:a17:902:26a:: with SMTP id 97-v6mr7840142plc.367.1527786378336; Thu, 31 May 2018 10:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527786378; cv=none; d=google.com; s=arc-20160816; b=yIqBUXsqIOaTz1+dPS6CaoLYo1KvbAtzw7pjmWn1wK419uY1LxdCB13zsoIAoKVtpo /kBOiR475+YE8Xzw+xFnpTDD++XHSGq+OiEIk0/FKHewHlap5EN5ef5MBg9hdwZgtd/A rsoCvKonMO+bnxoO51HPK/MW0rttcwGtjwaZfq7LF7YGIIa8Wh3wW8OsqO8iSW29NSJf bkfUHLaJMRGlMoH1kgKaYZTe6J9VmRS7ssQtgnBhA7uWsNkNUyT5XBbo/fd1yab7KA5g A3HiDf0CXTI5VPhVcG7PcB/G1JWz7O2ft7LKYYSIsiHybB/4kWZrB1E0ZGmDh6QOS5u3 o7vw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=68DEvHhJBF8ffNa80za+pu6vUAxD96z2mixD3+iqyJM=; b=sldtsHp8ytJGZ7g6Wg056wAw4f2mB3QfWfnJa/BZMSVBqt1FWxqSFkZ8WUFdhkWQLk udocnP0UeOALfrMgrdRbBSEMJbm2FltGPu6tVbLf3WOqp4azrV5ps4qyADBy3/+WYG+m rYBC4G1SQsjqNti+TxBHR90ZQIRJ6mZw5d3L5OlCvBMbCoZAD6b93bp//jYhG5DofX7g HGJyj2gf3KrRt+VvpMifI+EPT/tFmt/loePJenptgv3CXENzUCN5XmykCIVNiuGwmyBG vRXhj2wPdUTwhOyiT6iGy/SqeCcbFb4lkVJvIibABm3mmq7BHZPr0Mv95CM1Ah6kAOLB P5og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=GaAa3dWy; dkim=pass header.i=@codeaurora.org header.s=default header.b=PfhjgVcG; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7-v6si29615196pgq.507.2018.05.31.10.06.03; Thu, 31 May 2018 10:06:18 -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=@codeaurora.org header.s=default header.b=GaAa3dWy; dkim=pass header.i=@codeaurora.org header.s=default header.b=PfhjgVcG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755739AbeEaRFh (ORCPT + 99 others); Thu, 31 May 2018 13:05:37 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:39598 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755600AbeEaRFd (ORCPT ); Thu, 31 May 2018 13:05:33 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2F1516063F; Thu, 31 May 2018 17:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527786333; bh=KPlGPlhZH1NvBffy7HYt2yXUaNbMWs6JI/KwAUq96xY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=GaAa3dWypHIw54WDMR5V6FTpZ8WjmMGsi3k75R0Z0gSKc+9fhiaLFH1W0hG+7TL6I mlgMtuYsmgH3DuowcQGGP8cuetLvTLav8sTdWisRpjSYZhzxiVtz9nMKeKNZRPD0DW /Tq4+2gY/xp7I4NIbpLoEoBsDW9qbLz39HJuVeno= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.226.60.124] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: austinwc@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 618EA60591; Thu, 31 May 2018 17:05:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527786331; bh=KPlGPlhZH1NvBffy7HYt2yXUaNbMWs6JI/KwAUq96xY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=PfhjgVcGtlZ1YEv7UVzI1HkSMRNRwAku4jqmcOkRSRKVagCjk0IPmbDEY9qqDRXTQ 8PdUnczhwQqbNITSR/d7QeRdnPmDTAsEgZCWUc2t3Hf8H02teLYgad6Nr4n+9sH2B3 /tfgREm8GG+M/YbPOGSGFVGEy8UKzE5I8YdoIxjQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 618EA60591 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=austinwc@codeaurora.org Subject: Re: [PATCH] i2c: qup: fix building without CONFIG_ACPI To: Arnd Bergmann , Wolfram Sang Cc: Andy Gross , David Brown , Abhishek Sahu , Sricharan R , Bhumika Goyal , Peter Rosin , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180530213201.550467-1-arnd@arndb.de> From: "Christ, Austin" Message-ID: Date: Thu, 31 May 2018 11:05:29 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180530213201.550467-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/30/2018 3:31 PM, Arnd Bergmann wrote: > The added Centriq support broke compilation with CONFIG_ACPI disabled: > > drivers/i2c/busses/i2c-qup.c: In function 'qup_i2c_probe': > drivers/i2c/busses/i2c-qup.c:1707:25: error: 'qup_i2c_acpi_match' undeclared (first use in this function); did you mean 'qup_i2c_recv_data'? > > This fixes it by removing the extraneous #ifdef. All ACPI specific > code will be dropped implicitly when that option is disabled, but > the compiler first needs to see it. > > Fixes: 902a91a02bdf ("i2c: qup: add probe path for Centriq ACPI devices") > Signed-off-by: Arnd Bergmann > --- > drivers/i2c/busses/i2c-qup.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c > index 4f793b5d0c3b..9cfcc0473227 100644 > --- a/drivers/i2c/busses/i2c-qup.c > +++ b/drivers/i2c/busses/i2c-qup.c > @@ -1657,13 +1657,11 @@ static void qup_i2c_disable_clocks(struct qup_i2c_dev *qup) > clk_disable_unprepare(qup->pclk); > } > > -#if IS_ENABLED(CONFIG_ACPI) > static const struct acpi_device_id qup_i2c_acpi_match[] = { > { "QCOM8010"}, > { }, > }; > MODULE_DEVICE_TABLE(acpi, qup_i2c_acpi_match); > -#endif > > static int qup_i2c_probe(struct platform_device *pdev) > { > Yeah this is correct. Reviewed-by: Austin Christ -- Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.