From patchwork Mon Oct 9 18:49:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9994063 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 95ECD60216 for ; Mon, 9 Oct 2017 18:50:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A41F28824 for ; Mon, 9 Oct 2017 18:50:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EF4E2882F; Mon, 9 Oct 2017 18:50:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 43DE828824 for ; Mon, 9 Oct 2017 18:50:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:To:Subject :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wmD+Imf9gMkj5r8dbyC/McxYLuEjRqSR3vBuEP1QRXA=; b=KAle2MO1h8LW15 2YUNroYzJWgU1BG8IRJjDZ/kJukfvI/W7MeBRTvOjN4GLMVhkIA+3oY+DGlWfWdZWcUjjUgl0A90H BhVbK6Z9W8GMctTJkeuDOpQI0YJmO5wRhipRbWnZufHSq22n7hR1EAqY5BHgG65nUsn/IGZFEVzYd OSmz4utiLiI+nO/nj4JRy+872Jrzr70ZDpPlRQru1jORLaqy+hNuQHvufneUHnGWrcfjc/sD/d/7T miQDl1nENuyq5ke0s/in1xVU7cWj7E+S1tmSpyf/t/2Db/juZnVUklktCcj5HMzvyvHAj5dsJw0vV cEcyGjaXZlIcXQ3uArAg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e1d8Y-0004tS-AB; Mon, 09 Oct 2017 18:50:46 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e1d8A-0003Pi-4o for linux-arm-kernel@lists.infradead.org; Mon, 09 Oct 2017 18:50:23 +0000 Received: by mail-wm0-x243.google.com with SMTP id u138so25025728wmu.5 for ; Mon, 09 Oct 2017 11:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=UVSb3WXRzsiCTgzGvd6PiRcCkioW2k5C8Mw6INP/zpk=; b=E1DcFhv3gJh831aOXvOk7JrRcbZ3qz3vmZs87pmIZ52fOqQfeE7W6HCWQo2zZu9UBL dp5ExDdkSsUhxM/TYdiy6mlgi7g/+8CmGe1S7WzUrdGwyozuPOfNIdX+lqRBSHsYtdaC tcwZLbR53u0DUgSjGS7dEuoy3wPnSgUsjQ0d0Ma5JEIzYOwWWnC6BonwONQZq6DuKO9g w1IduXzi+oxaVImZOA4MViuqbtQeRYnrPm9qebaXhP3BFHF7zKZ1y7yrJSOqRcbXfaky ctWL+NcTA4Yd+GMeC7tS6iuGi78qdN1XyFA5tWIcgHnolosYAN8TWAYgfEl8nTAQTKU9 o+wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=UVSb3WXRzsiCTgzGvd6PiRcCkioW2k5C8Mw6INP/zpk=; b=ZZEV0ruO6VPxIWM2Xg5RIClZoeSpYcJkVf4tWciXt/Rn32gc7gOeSzLvMqEVqxgAM5 389Q0CBoo+qtAHounlkm13w28y4q4TXZ859jPgVDFNdJgk4S9kDTUKhVWIZOJuDHyuxM rZlmMoT4azQfU9fazFNLWMuyis5KlifR1M5vURO9bUkHbMV6hVLeuckccWG175oG1fVs iCZB1oFwTvzDjF09ls7WVA/zV/y0DDoSDv/Avqi/DrVygxhUSZshpAl53G0q6GWot3Vx gPpx+HJvAh4lzCFSr4Bw+HAL22L1T0PNjwvxrCgZK8EelGNmsVsiXFThsuWyEVbe0+JL QOBg== X-Gm-Message-State: AMCzsaWse3viUGW/3BjYmfo3tUkXkyHildxDRDA7kVg+Dw1b1FmziG9i 5mRBV1+5h69lf+qd6r5CcKqO1g== X-Google-Smtp-Source: AOwi7QDvceJroPuY6pHwp6TclmbBa7BIn8tKiZO4DlSrg2w97/QbfWwda7swXauGF/YLGclRC4/BWA== X-Received: by 10.28.30.139 with SMTP id e133mr8345939wme.8.1507574999919; Mon, 09 Oct 2017 11:49:59 -0700 (PDT) Received: from ?IPv6:2003:ea:8bcb:c500:5da5:fcf2:90ed:66ad? (p200300EA8BCBC5005DA5FCF290ED66AD.dip0.t-ipconnect.de. [2003:ea:8bcb:c500:5da5:fcf2:90ed:66ad]) by smtp.googlemail.com with ESMTPSA id j17sm1679431wrc.10.2017.10.09.11.49.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Oct 2017 11:49:59 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH 1/3] firmware: arm_scpi: remove default for get_scpi_ops if not reachable To: Sudeep Holla , "linux-arm-kernel@lists.infradead.org" Message-ID: <8afb173f-1480-baf8-e15b-5c01ed033671@gmail.com> Date: Mon, 9 Oct 2017 20:49:44 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171009_115022_394536_86780135 X-CRM114-Status: UNSURE ( 8.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP All callers of get_scpi_ops() depend on the result and therefore have a Kconfig dependency on ARM_SCPI_PROTOCOL. Means that ARM_SCPI_PROTOCOL being a module and caller being built-in can't occur. Signed-off-by: Heiner Kallweit --- include/linux/scpi_protocol.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/linux/scpi_protocol.h b/include/linux/scpi_protocol.h index 327d6566..d5eba00d 100644 --- a/include/linux/scpi_protocol.h +++ b/include/linux/scpi_protocol.h @@ -77,8 +77,4 @@ struct scpi_ops { int (*device_set_power_state)(u16, u8); }; -#if IS_REACHABLE(CONFIG_ARM_SCPI_PROTOCOL) struct scpi_ops *get_scpi_ops(void); -#else -static inline struct scpi_ops *get_scpi_ops(void) { return NULL; } -#endif