Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2903123ybd; Mon, 24 Jun 2019 15:04:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsKcx4LGPYPk4YvCQTyMDBgW8igSH/6LwB8vbh5eJ5WGsuhMQ1NB4dCEGKAYqnPkEL/lDJ X-Received: by 2002:a63:56:: with SMTP id 83mr35836151pga.145.1561413862476; Mon, 24 Jun 2019 15:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561413862; cv=none; d=google.com; s=arc-20160816; b=IqdB6x95h1kHMP85osOnYqD+1dTQ6qsvIybsIG8DdvC2gceZaq+1F5DQdWdxhYDVdy xejkjbeqzwo6Gqscr1xoixG4m94wEGpsZtc0jgzYmGpc8Nw0db7xm18MVm+Wym1OlSlu +x4tqVw8AzfUvdPn9Q3o046yjYGpF21+P9yUg91BeeUjt0xSFrZOL1HxKEM0LhLgX2Pw M7tv2o8rIT9tVK1sgHpNIcGDHyuXWyHut+XdfsDwo7F7XZp48LEBsV3gkX5rFBma/B7g UXZlAquo7eT3EF/Ev9skpJyeMM5WXJ081l8AGgfxHQ18pAodcETM/6nnXnrpbWhQC9bk E2oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/pFtRCsJEtfmt8X2G2CYNb7EpopYifScoMTYMx+nds4=; b=piw4rbtLW9bxeuuM1mzPB0qS+vQ9dO04/fZ3Mrwnl1tw2wVtaR01fTeNsJ8OXzqRXL 62wNqkw5T73dlnwiYDE9q0D2Hb/BcDwwhsVwrkv4hcT0GmIbsm0nu/raery6E6cdrnyB K2mEosgW4tilxKk0GZR/4E9hPizWYSuDiHSlk3UAvVzFsngLw/6Y9B2Vb7EFCZSCPGJg HPKxC5pynQv7W8dNEiyDVr1+moUaZevB3/1HGXiaptQIWDU3pF0EdMmOOd5/BCAZpyqH 2tnYRlxZXwjaKwqKfc6Q5heg+3zwxsK761B7uV4FiaRFaVUNOSWMgyIwxuLULmSepDSy GfXQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r73si9255728pgr.553.2019.06.24.15.04.06; Mon, 24 Jun 2019 15:04:22 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732181AbfFXU6R (ORCPT + 99 others); Mon, 24 Jun 2019 16:58:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46934 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbfFXU6Q (ORCPT ); Mon, 24 Jun 2019 16:58:16 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 729B030917AC; Mon, 24 Jun 2019 20:58:16 +0000 (UTC) Received: from redhat.com (ovpn-118-11.phx2.redhat.com [10.3.118.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E61465D717; Mon, 24 Jun 2019 20:58:15 +0000 (UTC) Received: from fche by redhat.com with local (Exim 4.92) (envelope-from ) id 1hfW2U-0003ow-Ba; Mon, 24 Jun 2019 16:58:10 -0400 Date: Mon, 24 Jun 2019 16:58:10 -0400 From: "Frank Ch. Eigler" To: Mathieu Desnoyers Cc: Peter Zijlstra , Jessica Yu , linux-kernel , Josh Poimboeuf , jikos@kernel.org, mbenes@suse.cz, Petr Mladek , Alexei Starovoitov , Daniel Borkmann , Andrew Morton , Robert Richter , rostedt , Ingo Molnar , Martin KaFai Lau , Song Liu , Yonghong Song , paulmck , "Joel Fernandes, Google" , Ard Biesheuvel , Thomas Gleixner , oprofile-list@lists.sf.net, netdev , bpf@vger.kernel.org Subject: Re: [PATCH 2/3] module: Fix up module_notifier return values. Message-ID: <20190624205810.GD26422@redhat.com> References: <20190624091843.859714294@infradead.org> <20190624092109.805742823@infradead.org> <320564860.243.1561384864186.JavaMail.zimbra@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <320564860.243.1561384864186.JavaMail.zimbra@efficios.com> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Mon, 24 Jun 2019 20:58:16 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi - > > While auditing all module notifiers I noticed a whole bunch of fail > > wrt the return value. Notifiers have a 'special' return semantics. From peterz's comments, the patches, it's not obvious to me how one is to choose between 0 (NOTIFY_DONE) and 1 (NOTIFY_OK) in the case of a routine success. > [...] > I have a similar erroneous module notifier return value pattern > in lttng-modules as well. I'll go fix it right away. CCing > Frank Eigler from SystemTAP which AFAIK use a copy of > lttng-tracepoint.c in their project, which should be fixed > as well. I'm pasting the lttng-modules fix below. Sure, following suit. Thanks. - FChE