From patchwork Thu Oct 10 20:30:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 175872 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2814826ill; Thu, 10 Oct 2019 13:49:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrFpsInztbkXU/RHH53oUoT7SE+jhQME617+trWYFt5lCQ/qFDD+h019hD4mWQiKeowFuA X-Received: by 2002:a17:906:6ad7:: with SMTP id q23mr9837620ejs.214.1570740572131; Thu, 10 Oct 2019 13:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570740572; cv=none; d=google.com; s=arc-20160816; b=sXypEBuLS1WKEMFfy0bN7cmYAkvTef9iZn2SJ/e5dpe/kAmE1OvqBNq1QMfvQ1aMLV nRT4JUJpY7JZ7tlA+LRORP2kgdgMS7+KeqFxRD1aqgkZ1uJ7rIZPoz3QvxLHeBEjWpeZ Lpi4om0y1gUCdU6+AMc7adNd3Og0HIJ4zTW8jSpNih+3rL/SO/MXlFmCWQyB8XO3B4Zu uvnJD83DhzD/JxoKseOFEbUJOUa522qrgG0KGZYmo+XWevl1Tls355En0ULAeFBC/LYn Y0sNXA9iy4FcDLIIi3Bq6Ol0TAIFOfSVGZVN+LxiqJjwfaLMApYOVIlsR1ROwTd6DIUm 6lfQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ZaalCiJgciFGO2Y5gfgKQ/qw4cwv06Ydo9Tki/q2e2Q=; b=brbUrpaeUT83V4OuEKp1AuJJQWh2YU9UvD6cSV3GYOZrfbLyGkQbqO1WgRf8IR2G6d sUownJsW/kQLNAKE4M2yBr+7Yy5g9QJe87Oadc948voGIVBaQcAiiOsokHYo//zSl6Ju 5Vxomen5pHWIs3CTaBMUb3Au271bvOsdlHrArmsNWHKqCEyAQLwyP7iwT24Hz0HnK3Mo zI2QE63/qzLzR5pCKGyB0sJZjZeiTH+7TyCjlrg7Sb8nrIAa/j6M9+2bNdLexMxvtVMQ B4QrM8HKbvI+ib22XJ1+pJ84xqiYpNcdZU0DdH9aW/V4dAPnQkZTdV0ykGv1Px2RE1Zy 7I9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si3808071ejp.326.2019.10.10.13.49.31; Thu, 10 Oct 2019 13:49:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726076AbfJJUtb (ORCPT + 3 others); Thu, 10 Oct 2019 16:49:31 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:50649 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbfJJUtb (ORCPT ); Thu, 10 Oct 2019 16:49:31 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1M4384-1iIfNB2MVs-0001v8; Thu, 10 Oct 2019 22:49:21 +0200 From: Arnd Bergmann To: Kukjin Kim , Krzysztof Kozlowski Cc: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linus.walleij@linaro.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 26/36] ARM: s3c: bast: avoid irq_desc array usage Date: Thu, 10 Oct 2019 22:30:10 +0200 Message-Id: <20191010203043.1241612-26-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191010203043.1241612-1-arnd@arndb.de> References: <20191010202802.1132272-1-arnd@arndb.de> <20191010203043.1241612-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:wHjpWj5ZU3LsTJEShbn6OIxxBJLNZ6bxgFqjSskTwAPhMhycOBQ zKGRravzyP5344Fi58tfwlJ0a/J2oSdtvQedzmSKzig/5K7I3mD7RJOw7etEuUeXsi5FujS Q6eBl2YRK4cMFIDyK5PmFNLy3BcKqcQhCAicUiwU4niAlE9XHqaM+NSq5uBy6+DBQUsoDSS wPs6E+FLc98tt/2ohXJkw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:2BwSOkcaa5U=:FaBTcKC8FkOGwluHd57eCZ 6kznSKLyXayamvx1d+QnhVPhUiTCg7shvUXniM4JYmmnboJ8v/Bxuy7VnkfP+Xe8TEJ8QkatD SnPTfWpzSzzxVoTOLb2SYTbwYzFY1eDXmtKwJeX/JaQxGWWQPeRPEwRTMfGyYPEcPC5CKiBXn VLEfI/lZYGEKqbUrlc2DJ9/xTPq0uwUlJfhFoffJfNu+zTVjzuQQ8UODovE7Y3v2qRK2LgYnd sqtkLlHg73tM4qyOJ9TV1q+I8b5aglfG4gj+EreFw5WSJuXUNkLq03manPvcIUZiDHA/my5ic RGSdDfmuGE4PuPlP/r5MZuw0xVwgpl/BfVZQy+ypCehGaU+wCOpk+Kvr+y9BFELSefilctwqX HVEaEbbu9kmM2LnKOt/a4BiGIUmE9JgNQszW/W9mBsEFvTAa2BHj7PbfpBS7etjM/KTmGzakX xumtw8IQCSy//t8TUIPlSOSptEx3ebOrpQThSTKLd+ZcqA8Si5ZTF1qSV5gAwTQ9UeE9Yndg9 Gt/6vSA9qG4QmrXITlUHd0f6d/jMr3AwmBZ1NgcKufu0BLldzPWoXtC5seXsyHa+OAPx2e5ks cxO5AIw3o+/McG75t3UCBjdgG0xsTU5Zx23A6Cnr38YJhbjGPBDI254NqeF1wdmN76FckaTFG aOnxybQh1wPka3AwPAVNiXcTqo7mYC7M0H2vG/tXkWieaXYYjMOSyHwlx83ZGo9LY34YLZyhi oyaoV/vedy7Mnd5p750f+HZg3r/gDbIjV/U5uV+MyaDcBJFq8sgvb6Z0i1OldXc/PIgEK25Pw 6bojOwOpWFqk+XkVLsuVyQP+jHxD1+J2lKRnkolW4n2v7DJCN4B98FJaLCefmx+Ak6pPxT7J0 /3B6K1uS27i9BZnfyYqA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Once we move to sparse irqs, the irq_desc[] array is no longer accessible, so replace the two uses in bast-irq.c. The first one can use irq_to_desc(), the second one seems completely unneeded as we already have a pointer to the correct descriptor. Signed-off-by: Arnd Bergmann --- arch/arm/mach-s3c24xx/bast-irq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.20.0 diff --git a/arch/arm/mach-s3c24xx/bast-irq.c b/arch/arm/mach-s3c24xx/bast-irq.c index 4cec084ae443..b3083ee3ab33 100644 --- a/arch/arm/mach-s3c24xx/bast-irq.c +++ b/arch/arm/mach-s3c24xx/bast-irq.c @@ -63,7 +63,7 @@ bast_pc104_mask(struct irq_data *data) static void bast_pc104_maskack(struct irq_data *data) { - struct irq_desc *desc = irq_desc + BAST_IRQ_ISA; + struct irq_desc *desc = irq_to_desc(BAST_IRQ_ISA); bast_pc104_mask(data); desc->irq_data.chip->irq_ack(&desc->irq_data); @@ -95,8 +95,6 @@ static void bast_irq_pc104_demux(struct irq_desc *desc) if (unlikely(stat == 0)) { /* ack if we get an irq with nothing (ie, startup) */ - - desc = irq_desc + BAST_IRQ_ISA; desc->irq_data.chip->irq_ack(&desc->irq_data); } else { /* handle the IRQ */