Received: by 2002:a05:6a10:8a47:0:0:0:0 with SMTP id dn7csp267046pxb; Mon, 8 Nov 2021 08:47:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEOeru2IL9BBC59vWTPeZvmb8hu/YI3082jwy6QVhRhGVlfD1yvZCEIU1WFniWNXKcm5yE X-Received: by 2002:aa7:d4d4:: with SMTP id t20mr639875edr.374.1636390043454; Mon, 08 Nov 2021 08:47:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636390043; cv=none; d=google.com; s=arc-20160816; b=ZT90G4Zh8HSyfi4qHHFbD5N0FmRjY54kEux6CWmooNE+Fyqbx3Q+jlt0AQekGZe2aR 887P7t3W5S14NXh/2StsOq9jLL4bE3IkV3KhT8X0KLm86SVmAE6/DbdrTqE/D8ux0mTU AU/tWJ4gZZj4SqsOw1Jdfv+2bJwVx+YqAkThyGTCM6mfRV4E0jzIlm/Ql7gP0sCFo4Bt nqverKl4vss5GS8BL6Oo5XKxPdwTPFy4klGflq903qzsswCQNQJPtx31w5ri0yOkDw2O cepGmkr+0hMRS1Apeximdund+CdRj4Kdsvx2byM63r0LPhl9THTBlS9L3Um6Pl7FGC7t mtQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=3vEIzZ1S/bu9Zd8ER6jvDbqdstuSaVNrpeM6s9ASoIo=; b=FAwavZyEjmRNesXmKQYucaOEMP7fK5Q9zXukmFVLULq9Ros4cpMzD1QJYQXyCu6x+c ZVPs0mNbqcJHyERoxNUEVpva3QLLXnJGMG17Am2VqSMMwb2LNWRAQ136U03atLgtXOoG k1O/5NurU82PIOIyegrZ93IFZDjuyfgZMmVcft6ALrcbWE4XCChXWmliTxKIZx+8oBZL hvYz6TAOaRmuzO/TNWO670ZK0Dn8Owuqpi/0aECcK8SxRva4OToi1TNoi6jFNVEPw6px PvNIAFz/uhN+VtwcsDXibm7VYt/qCbOSLUyAd2BVc3hbthkOtyv1XR/2x3jR4Bu22naM MgPA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sh31si35499981ejc.253.2021.11.08.08.46.58; Mon, 08 Nov 2021 08:47:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235325AbhKHOGG (ORCPT + 99 others); Mon, 8 Nov 2021 09:06:06 -0500 Received: from mail-ua1-f53.google.com ([209.85.222.53]:41657 "EHLO mail-ua1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240177AbhKHOGF (ORCPT ); Mon, 8 Nov 2021 09:06:05 -0500 Received: by mail-ua1-f53.google.com with SMTP id p37so30538457uae.8; Mon, 08 Nov 2021 06:03:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3vEIzZ1S/bu9Zd8ER6jvDbqdstuSaVNrpeM6s9ASoIo=; b=C997UAu4rid2A+xQiaEfpgxtvU2YrTUyRsX9KIl0r2C47ds6lE7G0yu3BGZIq1Tvsd N6pBTg+gplv9cQln976Ii1P09zna0/T5tBezgmmQodZTG/m+/4bH5MVmlL8QOzbulrVq kL+N4YJsfdFeeGEIBhQFJlm9QvKCcCfLknbQFQUn/j8TrdpO9UKbc0H3seU1Z0Igjiq+ HSLvTLAv/pp/Oaub50mceL1gLwXDMKkOJnSvXYjctjnoFwl7ppNiw3oV+Boq/0JbZY+w 5tDaOsE68SAqMpvIpVJuDYgkSudtmytp/Q7TilSYIO4drfD7WxfBDyrS/BdMmmeTr+VP gxTg== X-Gm-Message-State: AOAM532U/6Jvy7iChHgcp/AIBWJ4YWibH/HkekywmuVjdh8McitTFI/n GQqSh4WSAzcSanoqQYp+js+Fr0rYtuOQGg== X-Received: by 2002:a67:ec8f:: with SMTP id h15mr95467403vsp.42.1636380200463; Mon, 08 Nov 2021 06:03:20 -0800 (PST) Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com. [209.85.221.179]) by smtp.gmail.com with ESMTPSA id 66sm3213728vsh.34.2021.11.08.06.03.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Nov 2021 06:03:19 -0800 (PST) Received: by mail-vk1-f179.google.com with SMTP id n201so8250608vkn.12; Mon, 08 Nov 2021 06:03:19 -0800 (PST) X-Received: by 2002:a05:6122:20a7:: with SMTP id i39mr32672729vkd.15.1636380199367; Mon, 08 Nov 2021 06:03:19 -0800 (PST) MIME-Version: 1.0 References: <20211108101157.15189-1-bp@alien8.de> <20211108101157.15189-36-bp@alien8.de> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 8 Nov 2021 15:03:08 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v0 35/42] sh: Check notifier registration return value To: Borislav Petkov Cc: LKML , Linux-sh list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Borislav, On Mon, Nov 8, 2021 at 2:49 PM Borislav Petkov wrote: > On Mon, Nov 08, 2021 at 02:31:41PM +0100, Geert Uytterhoeven wrote: > > Do you think these can actually fail? > > Hmm, maybe you missed the 0th message. Does this explain it: > > https://lore.kernel.org/r/20211108101924.15759-1-bp@alien8.de > > ? Thanks, but that still doesn't explain why we need to add the check, for something that IMHO cannot fail, in a caller that cannot do anything in the very unlikely event that he call would ever start to fail? The clue is the addition of __must_check in "[PATCH v0 42/42] notifier: Return an error when callback is already registered" (https://lore.kernel.org/all/20211108101157.15189-43-bp@alien8.de/). I'll reply to that one... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds