Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3212906pxb; Mon, 9 Nov 2020 05:44:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQMXu9gM/VSpOMOSxJD6aG+R7/8ninb7LOYQvZ9LMB3ZllnNjALiSsRuJ0Rs90AaASdbZM X-Received: by 2002:a17:907:264d:: with SMTP id ar13mr14640822ejc.207.1604929486618; Mon, 09 Nov 2020 05:44:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604929486; cv=none; d=google.com; s=arc-20160816; b=Yr500aNkvprP3w456GZklkCUoCx7LJ2W6nQhhbMpib5dQOn9i25P4tU3pr45BCEJvg iUJs87D+a/2VE6rrUr37os8XXOBeQng4BKxyw7TG7NG+DdYmj587Mas1tfhwJSeKf4yw /nCexrg6ygo3EyF3xPJf1Yiv9k1vifpMp5GPFIYYYUAe+wxau5j1GCO25ydKQNHR21iQ flmgd0tMR5rTWOYISG2tufARJGuunWQy954Nohrra/ylhCZW8I3/A7sCJqbPtDO5HiUt biro9ZFicP88qxceSC2/9lk0xAQNgjT5HiP7n4wHzjJR4bQqTsuDsXB7U9M81qleJwvX Aqpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=c5YTfbV5MUFpWOXyFooWnBIAWREvqnR/csV6tA0zei0=; b=wq/rzJ762NHkHyaEfbB8QoHo/7ze3lG0IKHOYJmuaQXn+ECqcO/MivNjAF6CxiVt+j bL5evrjSpPbzGJ1TrXgEQ5x1DS/vUVJpebBXHk3PZQteuAMM9gCfd1rmOJqYclzL7jlC zPPZfO0FtTqBEvR0DJnPaj0dGtmZi0u4/IT7+z4gpJrAQ+aT+cGW3KZD4LyuioyfDz9R 8EfnvlPs+Atxep4uHO6o1YQhG8bgrFkbhD3/Ilk+4KqYWuQ2aVJZdPWxQ0z/dfwzcihR oL5uarjoAacvkeD65mz2R26HGp9ff2/hZy95vfAlUeODJtliXFednr+APo+PhIsiYsfa xklg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RSkmliki; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si7476849edu.457.2020.11.09.05.44.23; Mon, 09 Nov 2020 05:44:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RSkmliki; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387980AbgKINmv (ORCPT + 99 others); Mon, 9 Nov 2020 08:42:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:54698 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730507AbgKINAd (ORCPT ); Mon, 9 Nov 2020 08:00:33 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8A7B5221F9; Mon, 9 Nov 2020 13:00:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604926832; bh=3+iVDUeYUQtCG1b7ztjZJ6YpyRlZ9aI6xSrMEGpP3f8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RSkmlikiWs58l0640PBypqud7tvfuwyLNYfXFSJ8bwS0UcE5/BfnpCRtmqpgieMb2 2tU12Z6zNnD0fZ/m+a3ZQAxKfEQ9pqBsqffJ/JRun8VAjMfPDVeLKHjtBkUrIH5a5r GIpkR94QJlmHvqpRsk+FdiA04gdomvn/Z17TrCkU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mukesh Ojha , Vasant Hegde , Michael Ellerman , Kamal Mostafa Subject: [PATCH 4.9 003/117] powerpc/powernv/opal-dump : Use IRQ_HANDLED instead of numbers in interrupt handler Date: Mon, 9 Nov 2020 13:53:49 +0100 Message-Id: <20201109125025.792602108@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125025.630721781@linuxfoundation.org> References: <20201109125025.630721781@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mukesh Ojha commit b29336c0e1785a28bc40a9fd47c2321671e9792e upstream. Fixes: 8034f715f ("powernv/opal-dump: Convert to irq domain") Converts all the return explicit number to a more proper IRQ_HANDLED, which looks proper incase of interrupt handler returning case. Here, It also removes error message like "nobody cared" which was getting unveiled while returning -1 or 0 from handler. Signed-off-by: Mukesh Ojha Reviewed-by: Vasant Hegde Signed-off-by: Michael Ellerman Cc: Kamal Mostafa Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/platforms/powernv/opal-dump.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) --- a/arch/powerpc/platforms/powernv/opal-dump.c +++ b/arch/powerpc/platforms/powernv/opal-dump.c @@ -385,13 +385,12 @@ static irqreturn_t process_dump(int irq, { int rc; uint32_t dump_id, dump_size, dump_type; - struct dump_obj *dump; char name[22]; struct kobject *kobj; rc = dump_read_info(&dump_id, &dump_size, &dump_type); if (rc != OPAL_SUCCESS) - return rc; + return IRQ_HANDLED; sprintf(name, "0x%x-0x%x", dump_type, dump_id); @@ -403,12 +402,10 @@ static irqreturn_t process_dump(int irq, if (kobj) { /* Drop reference added by kset_find_obj() */ kobject_put(kobj); - return 0; + return IRQ_HANDLED; } - dump = create_dump_obj(dump_id, dump_size, dump_type); - if (!dump) - return -1; + create_dump_obj(dump_id, dump_size, dump_type); return IRQ_HANDLED; }