Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp862724ybh; Wed, 11 Mar 2020 12:19:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtVa0/9VXu53YgijGPRrc66VwHSua4ipALpU6cRehLEUqKX1jlbFfrVYQ0ED4e/m3iJCZws X-Received: by 2002:a05:6830:14d7:: with SMTP id t23mr3452547otq.80.1583954392775; Wed, 11 Mar 2020 12:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583954392; cv=none; d=google.com; s=arc-20160816; b=khBEMuvFJ9Nqu/R0Nprvd+5IlSox6+IcLyMedvsdRbeMZh4UROGZ0VXhvcwiRI4mRB 0anBmRF2NzVC2M/fD624ubQXJVLFrWq9RcbzwbHYTM+34WfWDyrZnWs5K27R/qbyMT9I weNQBs9KDEfJmbb6bj5p+M7zanS6bsNBxWZ6eSqBiYYLT8tQeNS/Zk9pBMUApnlY92+U OVMn7lveoUAI0tEr3mnw7MVWDG6e7fhQIAvuQsawden2PnNsGRqjMWgo0RcL4IU4jbqS ydUjgkpJqjnBko8xQjimBy7oqTBAnWVOouyoC4GJ2ThExgwd4jSPaOzZQaZA0vwjIyNj HWMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=AgA8NXVVreTrbc68nE5t9RxNm/CfbmPdVBm+V/xZGZA=; b=eZMd/O+qyzusTlCA0DKoEk6uJOko1ieHSiF98I6AeiIOO/a5snR+vK7loBg/Ow6fAk mTI22dpt0zXgL2NLoFKw5rWr/k4jnDkn5GdEtWvYuLmqlXbknmS91Yiwwz6urN5AkdF0 B8bKRU5o8CDDXQuBvSROR6FOYr+sbLG9zOzMWc29FendculC+SF/LaQQA9hS68BdnVQi 9FQ5z0FddzxISzk7RfGipKAxyyqwaN+RvB/svE9yxkdWM9ElSv+bVgQE3s/rSDJcVtsD dvghZ4ZhQRB7Sh72oJe8YiE4a4QwgbgcGctcqJQGCEdkt0rPPH8brkyrVmk77cqrQ+Qu h9Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Ra5czn0c; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 45si1615347otu.264.2020.03.11.12.19.40; Wed, 11 Mar 2020 12:19:52 -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=fail header.i=@gmail.com header.s=20161025 header.b=Ra5czn0c; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731075AbgCKTTP (ORCPT + 99 others); Wed, 11 Mar 2020 15:19:15 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:37138 "EHLO mail-pl1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730807AbgCKTTP (ORCPT ); Wed, 11 Mar 2020 15:19:15 -0400 Received: by mail-pl1-f181.google.com with SMTP id f16so1543028plj.4; Wed, 11 Mar 2020 12:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AgA8NXVVreTrbc68nE5t9RxNm/CfbmPdVBm+V/xZGZA=; b=Ra5czn0cz8MQvrnhNDEap6qccGc/050Ie9lY8KvZSJx8DwxM1ldR4EKQSh5WEqaxyS xYF9hUZqIDIQT3/lMwdgozbCBLLtUHRKYiEbi4jw4duvuwQOtElG9/7wO44JP0eczHRM Dxsp6Bk+7yOQH4ZtBE0QVZM9RTqDk8Mwsn7lKwTiMqig9txszVT9Cf8hOh6jehBZkYGr 1/1bZjX/DLPSpaaBK7DGubvYsRwUorTmARB3R/VM7r9hyt9bspIR8HkN3kcvc/DTY7Hr RBopIs3D719sXwKTDQ7EnjBQ3Skg3Sg35c8707QLuftGu777U7MWzc+ZUFUKozNZmMHR EkyQ== 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=AgA8NXVVreTrbc68nE5t9RxNm/CfbmPdVBm+V/xZGZA=; b=OfEI5tVw70NbNwDWTNgzMKnxkresNMK6QtkayJQ2zwo3cMn8YdrIMBpr/CLCwcvki9 vDfFQpG5KN8Nx1zhE+SVTvNHwxz9++VH7jnpOoqaIk+vF8aYU3jGFeVXlwb4uM8yYa6q CEIxtKCe9I4QdMRM4Uwy0qMjhaO5vZ+Gor6NUGYBBSVvJko9+jXN0QZXAdn1GXKW1A7c UXPInVDDJAmlpJcmoa/+gu5HixFK17/jsDZ8fOi/Xl1KTDtTj0OiIndtGWPiz7smPYSo TNSAF8Gy5EV6VxBQK5dTbv1i/txaIwfKAN20kO3v9JqNnYOoMTzqIgnmeObCfUwlaAkc p7gQ== X-Gm-Message-State: ANhLgQ1ObXuP0kGb+m7TwprnAYsVamYHDdMGhgPSHYEwONbjm2/Eqndk RiKrCzVP+Slz2+iZU0HlOZM= X-Received: by 2002:a17:902:b10c:: with SMTP id q12mr4569032plr.303.1583954354047; Wed, 11 Mar 2020 12:19:14 -0700 (PDT) Received: from localhost.localdomain ([103.46.201.94]) by smtp.gmail.com with ESMTPSA id z17sm3792673pff.12.2020.03.11.12.19.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 12:19:13 -0700 (PDT) From: Aman Sharma Cc: amanharitsh123@gmail.com, Thomas Petazzoni , Lorenzo Pieralisi , Andrew Murray , Bjorn Helgaas , Linus Walleij , Ryder Lee , Karthikeyan Mitran , Hou Zhiqiang , Marc Gonzalez , Mans Rullgard , Matthias Brugger , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 0/5] Handled return value of platform_get_irq correctly Date: Thu, 12 Mar 2020 00:49:01 +0530 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As mentioned by Bjorn Helgaas in a private mail, the return value of platform_get_irq must be checked against the conditon of strictly smaller than 0 and if check must return the value recieved from platform_get_irq rather than any other macro like -ENODEV. Aman Sharma (5): pci: handled return value of platform_get_irq correctly pci: added check for return value of platform_get_irq pci: handled return value of platform_get_irq correctly pci: handled return value of platform_get_irq correctly pci: added check for return value of platform_get_irq drivers/pci/controller/pci-aardvark.c | 3 +++ drivers/pci/controller/pci-v3-semi.c | 4 ++-- drivers/pci/controller/pcie-mediatek.c | 3 +++ drivers/pci/controller/pcie-mobiveil.c | 4 ++-- drivers/pci/controller/pcie-tango.c | 4 ++-- 5 files changed, 12 insertions(+), 6 deletions(-) -- 2.20.1