Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2525401ybm; Thu, 23 May 2019 19:19:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC0YadpspqhCQiXdohtao+I+Qd8tbc6IsLS4hpAgSAURfpu1+kN1G6uloJsCfCJS8JPb0x X-Received: by 2002:a17:902:b184:: with SMTP id s4mr64880719plr.46.1558664395749; Thu, 23 May 2019 19:19:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558664395; cv=none; d=google.com; s=arc-20160816; b=cTxRCBpEd7Qf8PM6XquO/oOfHhAL3UbSGrVyRzLZZ2GQeccx8ewo3u7zEkspDbKXqe CWGasu3jnN2E7LjskZ3IZEcXbHmWa9r3f+F7pPlSTV/EULFzPP9Eddr4IrnUVznnb7Lk t1JQ9PN6t/39L9xcabWCQVP01CqnWvysz9DF+3RJWOBU/dufkX0X0lhTGD3/rYIUQIvw 1D8qg33kBCOarK5ZJ+WqNZ6uOOO3ZH/I33AseNkDkPaZnylCXQHbi7kPdTCUfOo5op3b 7Vk3bfKmg8FmP11un1p1hbDAu6tE4nfbkeGD5vEieCO4remN7D1wKn7G75j8rIwM0e3K elEg== 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; bh=t38voiF5qZSiTTNkyU6vwc2I1ToMIkA/Ez04EOKLL44=; b=im4sPF1JX4wOa1b5ej6rZPGSSJeW4Jxwwr8HleCy4MqY8SZNDjjpvwOJm/Ilng9kHJ foMC3jNE81/UnsxnOpbsW73dLnFjAJ0b2zp1yLmk1R7h98Zy1sb3VnXQlxHY+acLUsJH pA8E8xF1ckgH//ERmxmBxlSAOM0oGFfTkT90lO0gVdxbtuhVdCnEHr0jwwRgcfwbgKZr +ZRlMAmbJ5qpADsWOrd9ahhBbk75b16aCmWwNbmbfaCt9jzVLR3rlzRm06Z8UfeyVLpK r5UMwDnCq80hah7XqAkr8SgrBsZPn3T+pwefEv/gxvI53jomeomMnfDT0vJWi7+O0CLN amWA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si2061000pfh.261.2019.05.23.19.19.36; Thu, 23 May 2019 19:19:55 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388784AbfEXCP6 (ORCPT + 99 others); Thu, 23 May 2019 22:15:58 -0400 Received: from mga04.intel.com ([192.55.52.120]:21267 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387732AbfEXCP6 (ORCPT ); Thu, 23 May 2019 22:15:58 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 May 2019 19:15:56 -0700 X-ExtLoop1: 1 Received: from lftan-mobl.gar.corp.intel.com (HELO ubuntu) ([10.226.248.59]) by orsmga006.jf.intel.com with SMTP; 23 May 2019 19:15:53 -0700 Received: by ubuntu (sSMTP sendmail emulation); Fri, 24 May 2019 10:15:52 +0800 From: Ley Foon Tan To: Bjorn Helgaas , Lorenzo Pieralisi Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, lftan.linux@gmail.com, Ley Foon Tan Subject: [PATCH] PCI: altera: Fix no return warning for altera_pcie_irq_teardown() Date: Fri, 24 May 2019 10:15:51 +0800 Message-Id: <1558664151-2584-1-git-send-email-ley.foon.tan@intel.com> X-Mailer: git-send-email 2.7.4 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 Fix compilation warning caused by patch "PCI: altera: Allow building as module". drivers/pci/controller/pcie-altera.c: In function ‘altera_pcie_irq_teardown’: drivers/pci/controller/pcie-altera.c:723:1: warning: no return statement in function returning non-void [-Wreturn-type] } Signed-off-by: Ley Foon Tan --- drivers/pci/controller/pcie-altera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-altera.c b/drivers/pci/controller/pcie-altera.c index 6c86bc69ace8..27222071ace7 100644 --- a/drivers/pci/controller/pcie-altera.c +++ b/drivers/pci/controller/pcie-altera.c @@ -706,7 +706,7 @@ static int altera_pcie_init_irq_domain(struct altera_pcie *pcie) return 0; } -static int altera_pcie_irq_teardown(struct altera_pcie *pcie) +static void altera_pcie_irq_teardown(struct altera_pcie *pcie) { irq_set_chained_handler_and_data(pcie->irq, NULL, NULL); irq_domain_remove(pcie->irq_domain); -- 2.19.0