Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3862803ima; Mon, 4 Feb 2019 06:28:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN51VZ/6ENemrST/LTd11IlBt3ZTRAiV0oyPBUCIrIXuyIf7e4T1F6Pq9u6EdMZ8iQLyhdDe X-Received: by 2002:a62:13c3:: with SMTP id 64mr51348190pft.93.1549290533848; Mon, 04 Feb 2019 06:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549290533; cv=none; d=google.com; s=arc-20160816; b=CmFsnx5C8jcp7NloTon5zY09TPkM2EC4N3iChVEPiLUWcubTzYf2gZxea7dMvRdwo4 bsH76WtCn6KeNw9nKlKXxeHn/J9ggz2VjWD9SDppixvk4z+13HUC6ox31oiYZ85A1rMM AmrOa7wK1zePuEUzog64ef+BUrEaRp3kh1/vat3yAm1rVINGU9bCUzgbg5K93Sz3d8fm IyCHAJinnA1nM0h3gjvBOfXeFn0fu4bZ2XWkyriOwI77Em+UlRw0AGRQhIk0ntsmGFpF Ocd9XDzEC5DF2iQGVJgHUoeok95fYd9O/nk2i2eV7TY/opVYTlWq1HjHXJ93nVxTyAYN WJxQ== 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=4XGjf/4n/g7by+tKFc+fyDkehnnu/w7heG4AKutSXqE=; b=tlw+yOFEWQnovmq6rsuMf0kLnLsBycWT4YuojLFhSMu9N0N732H37brPdRomvNVq74 DlOWmmhtALDWiP16bwxvXrhoITVUYVkihieCsBT/+Vy79stnxeM5XoBBncRnFMuv1gYa I4Z96tebLUu6R/KUN6gU6JXVEPOhDXEqtzZwl3hJhWgAcd7KzXQuN4prNSkAS65okimA dV3uXDFdxSIOjTZCucIqSNREKoi2N9mqJvMgF7C/4g6neY3O55LqyyvWEOtDVv2Dit1w t+7MUtlxfANpCKkRcYERDZaLNfIeTXi3DCrb2f8HuFPNyDtUJ67t88svGaxxI4XlPpC6 YBAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ib4mNsZM; 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 f95si203662plb.60.2019.02.04.06.28.37; Mon, 04 Feb 2019 06:28:53 -0800 (PST) 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=Ib4mNsZM; 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 S1731112AbfBDN3N (ORCPT + 99 others); Mon, 4 Feb 2019 08:29:13 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42660 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727697AbfBDN3M (ORCPT ); Mon, 4 Feb 2019 08:29:12 -0500 Received: by mail-lf1-f66.google.com with SMTP id l10so10324924lfh.9 for ; Mon, 04 Feb 2019 05:29:11 -0800 (PST) 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=4XGjf/4n/g7by+tKFc+fyDkehnnu/w7heG4AKutSXqE=; b=Ib4mNsZMtrqb9oI20M0ZlQ3ReAQY02BecRC1PDYBbdyi0Ia+B3BfGVLonOKcj4m6V+ a6ZxSlkexzd6g94hfsPd1bQm7px3T+MD73S4TbZ1inWLjOQTf4cQj3AlwpSF5iGbvgt5 EvC+l/mzqWCJRocYiH87484GvM5gubltkpapo= 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=4XGjf/4n/g7by+tKFc+fyDkehnnu/w7heG4AKutSXqE=; b=Ij+R10gv2Mp3CM8EUUtX6cP8aGDt//ReaJfJTg/CnQlnfMjFSYKJz0en0n73E7BqWD m4ccwm8LksY6w7hia79wiDv6Spe3aqABZsQH79wAKleoXgTXD/svmZp4ixnWZoHZ+Qte TbqYddFE9kX/QqqR5ozDEkYSE735LftE8gZhdw2Br2Wf6kawG4lZbd7JPV6cNz5ZZkdY gsobqeP46czLcWGGS6bt1VWV18g1fCUWdwshH7eDNxPLRyzjsmxAkXqmgLPDSJhPo43y xspwWtIwsvnD+xYKQgSg0aukGqPWZKsQKm2Kf058Jp8fWYBZaXNYp/JjH4VTcj88J0sY hSrw== X-Gm-Message-State: AJcUukchmwqR9BvbzXI1DQdlERU1NuFW4ZwuGb9EbLIxdM/jAkQaNfi/ V2Z0ikhELv4/bxtY0LHBZk1Nig== X-Received: by 2002:a19:a9d2:: with SMTP id s201mr34794845lfe.154.1549286950276; Mon, 04 Feb 2019 05:29:10 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id w9sm3124861lfc.66.2019.02.04.05.29.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Feb 2019 05:29:09 -0800 (PST) From: Anders Roxell To: ard.biesheuvel@linaro.org Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] firmware: efi: arm-runtime: fix build error void value not ignored Date: Mon, 4 Feb 2019 14:29:04 +0100 Message-Id: <20190204132904.9288-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 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 Commit e2a2e56e4082 ("arm64: dump: no need to check return value of debugfs_create functions") changed the return value from 'int' to 'void'. ../drivers/firmware/efi/arm-runtime.c: In function ‘ptdump_init’: ../drivers/firmware/efi/arm-runtime.c:52:9: error: void value not ignored as it ought to be return ptdump_debugfs_register(&efi_ptdump_info, "efi_page_tables"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/firmware/efi/arm-runtime.c:53:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Rework so that function 'ptdump_init' doesn't 'return ptdump_debug_fs_register(...' since the function can work or not, but the code logic should never do something different based on this. Signed-off-by: Anders Roxell --- drivers/firmware/efi/arm-runtime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/efi/arm-runtime.c b/drivers/firmware/efi/arm-runtime.c index 352bd2473162..b9ae798192d6 100644 --- a/drivers/firmware/efi/arm-runtime.c +++ b/drivers/firmware/efi/arm-runtime.c @@ -49,7 +49,8 @@ static int __init ptdump_init(void) if (!efi_enabled(EFI_RUNTIME_SERVICES)) return 0; - return ptdump_debugfs_register(&efi_ptdump_info, "efi_page_tables"); + ptdump_debugfs_register(&efi_ptdump_info, "efi_page_tables"); + return 0; } device_initcall(ptdump_init); -- 2.20.1