Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp186004img; Thu, 21 Mar 2019 17:25:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnKuHRXVLzHGeiz+LkQ6pSWxQlU9zaN2PMJAqnvTnvIdqnYa/UcMxd1yz1x3HaNdeJ/xbL X-Received: by 2002:a17:902:bd90:: with SMTP id q16mr295723pls.162.1553214302057; Thu, 21 Mar 2019 17:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553214302; cv=none; d=google.com; s=arc-20160816; b=zwImkbw1vbvSDHxrbFoo8uhEDHqQ3dnZET+l9FLHloGSu381YoH08E6FX8iUIUzNWU UGeGjM6pkW3I1Zfzep8XwD0Ue0WpaGy2xu1TVZQf9+trXXofBsklW6Y1LiFpXHB2ueQq BApCKco/tb1GTkeey3QP/w9eaLKXRqxcIvCk576/5bCts3/yWJBIjYqxaMxr3+Btb5ZP 5nUF2Uiv9ZNBWoSQjiQcYUeIW9q3B3l2UH6fcEHu+Sv+XxmDCbr5ZlfxcAksy0nrjZl3 nPpRkr0u8SLmH5sgC9QTZp6t9PQw/8c/1NZ5FUTAZu9JQfEzYi331zMvhW0GHEnQTxoh WcVw== 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; bh=gmDZXesZ5+z2Gp52tgVQewSdHUpRe1DQglNKxNF+gHo=; b=M56rnqSanzlTci5E5SFxdGEEkI7f9VG0lef1MF7n7TBiewE8TvkAKvHGSN2Ldolusk 6JyMvp9yLbf3VAeujeBKdp5AUP5Ux7lLiYnyziL+rBl5T+BCzU+PvW9dpHBAFicJUNKe n0ULlMBvXSdQVC85B0XbQhG6TGZ+L3tAgtz+H6ml/qtXkxLFKdJ0jheXG6KAUmgKaCPN KB4m/YoK+d/ASfnFpUCuv/HBKGSYZdfSivqvGsA6x6euRmdtlCnJPfvWg5VODJgpdh/H FtJZToSYasGtd24jx1smsMXlWRIq0KHpI+/SDZnVB+xXY7yoaQ8BAE/do4fC8yw4jMY7 EcJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=GB8BOiVZ; 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=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4si5398877plt.215.2019.03.21.17.24.46; Thu, 21 Mar 2019 17:25:01 -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=@alliedtelesis.co.nz header.s=mail181024 header.b=GB8BOiVZ; 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=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727283AbfCVAXx (ORCPT + 99 others); Thu, 21 Mar 2019 20:23:53 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:33456 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbfCVAXw (ORCPT ); Thu, 21 Mar 2019 20:23:52 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 619C3891A9; Fri, 22 Mar 2019 13:23:48 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1553214228; bh=gmDZXesZ5+z2Gp52tgVQewSdHUpRe1DQglNKxNF+gHo=; h=From:To:Cc:Subject:Date; b=GB8BOiVZLlQos/aqL7SvedRITY5uuEpUeHpzTx+prAzXc9SGyVQkqDbA83UV9eCsx 3fsjWRjkt+lOM2gcJWbfcV9Zch7Lc2UB/b79fE2NmOZQ82awHHxETpu2nYcV0bCMkW WWh6Mbxot+zXKkMLyigGUUCJAeYy8g0EK7FPKRk5eJHLC9rhNbSKUw+zw5qXDGG8ce LaWtGzpsppypJurHcAitXD3CmmSEKyMIXGz/DI/onhVW00uoxPXiquyyIGc0g7ro2O 3fApAXjt0yEfRtaZj5Gu1GPObHEOuaPC3ZroKiFOwtYVrFwo6sQ7adm13xV53jgivL v2gBcVk/pyxuQ== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Fri, 22 Mar 2019 13:23:46 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by smtp (Postfix) with ESMTP id 5ACB013EC40; Fri, 22 Mar 2019 13:23:48 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 2A0B11E1DDF; Fri, 22 Mar 2019 13:23:48 +1300 (NZDT) From: Chris Packham To: robh+dt@kernel.org, frowand.list@gmail.com Cc: Hamish Martin , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH] of: use correct function prototype for of_overlay_fdt_apply() Date: Fri, 22 Mar 2019 13:23:41 +1300 Message-Id: <20190322002342.24831-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable x-atlnz-ls: pat Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_OF_OVERLAY is not enabled the fallback stub for of_overlay_fdt_apply() does not match the prototype for the case when CONFIG_OF_OVERLAY is enabled. Update the stub to use the correct function prototype. Fixes: commit 39a751a4cb7e ("of: change overlay apply input data from unf= lattened to FDT") Signed-off-by: Chris Packham --- include/linux/of.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/of.h b/include/linux/of.h index e240992e5cb6..28797e1a9982 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -1449,7 +1449,8 @@ int of_overlay_notifier_unregister(struct notifier_= block *nb); =20 #else =20 -static inline int of_overlay_fdt_apply(void *overlay_fdt, int *ovcs_id) +static inline int of_overlay_fdt_apply(void *overlay_fdt, u32 overlay_fd= t_size, + int *ovcs_id) { return -ENOTSUPP; } --=20 2.21.0