Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp627805lqs; Fri, 14 Jun 2024 00:06:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPjkb4YhTcHFgXAaNefPtEpV1fKeRf4sgmD5jwdda1K5kWFgDvA3J7maVRLNZwYc2fTsSC85LZ/SUuwO+LtQO8HN28tI87xmGGm2IYcQ== X-Google-Smtp-Source: AGHT+IFImnzPqswBoPwLQIZDql344sonTmcLR/aVBMArwb2HDp8cpMVypo5NMf5H2j0IbzJHEcVu X-Received: by 2002:a17:903:22d0:b0:1f6:e20f:86ab with SMTP id d9443c01a7336-1f8627da93amr23084945ad.40.1718348765087; Fri, 14 Jun 2024 00:06:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718348765; cv=pass; d=google.com; s=arc-20160816; b=N1g+E99jvOxB4j5AQSQqFtlarI9R+7FiNJqzdVCZf3dPvauTzW2u1NNtEEenE5b9Qd pk73u9ka584I6sV5zaVF2rOjvbdv2qJUIm/NmkUOIWGG3zFRFDMcNz6u6aoJvXu7bP8A aag1E/j2CNgFXEvd8xQRt7cgzLsfOw4bHrgm7E13O4TwQo5X77uVYiGp2/aZLzbJhzHK /b6DbsdBcHKSc1jWJeYvSUhK9ClIZdCbR9lnRr+zmq1RoHmofFJa+aEI3uSsQyM0ANxQ 4VvHm6QeghhfHxJcJUFxHsrnCkm1KBma6xR+ggeV01ho8/MKV3zCBwPQM5GcIhGjA3Jx aNTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=ocVyg2V3e0HzMdfCsFB/9doeEeEqC8oyUzYXLqjfcnA=; fh=csN9QZXblLprScbgs+hV6pGyZd5rcot0xPX4hozZHF0=; b=j/zZJaWduYERf2gEOfTFbBDr0mfGtZjotkg02qgVpCWrlC9rWKuoNmQnIBvZvOPnlB gjzY02ePxilgp17U6zB38MM9noSV48634c0ENv80M1KkYLgCUhGhCJBKjdbhDSMRlEmm 9WgY/pN9A1lH7vdjcvx2k3xdUXyUr+Q9dXfBaN5DsVRAlaRuoACKXejyYCSlaJbC5OHR rIXK+nuGRRcmrqHBXEITDzv5gwGqt3a9pE3M8QlZH8WBVi6ag3KXtVo7AhXRO+QG3SMH dmWXu764h5BmqogKQhOTDYknCLs3EAisRe5f3nO6iCYfLVT0+HSo0MEVKrPJkxvbHwEl vICQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-214418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214418-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f855ef8e31si28907175ad.440.2024.06.14.00.06.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:06:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-214418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214418-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CBCD1B212D2 for ; Fri, 14 Jun 2024 07:02:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A495B1487DA; Fri, 14 Jun 2024 07:02:30 +0000 (UTC) Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8491B17C72 for ; Fri, 14 Jun 2024 07:02:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718348550; cv=none; b=a7mKqD+1oZUama8qdYn4N8ODCqZKinUw7hqzba1ATFVDnUwLsL4vGxBkHfeKXF4JPDpWz0YtFiJDK8QBw5SKZLLBGTKXLUjjb9MO7LHjgQbD2j/F4p9whTv1tFRJ10Za/ZT5EMiEyashN/YusgKCRMqaGGvdrCuNEcgdz8DtlCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718348550; c=relaxed/simple; bh=UFvYcOWtqBhQmd0pRfoVeLky4JvY5AEr/8VDTEL9BZY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=S+8MbXY/aKz2wUHq5sifbY+ge0/uzxk92uLRMtuEowXgCr4w+Q6AoC+tlSED+Tjud6WC8YpA671ZLiXRnBzDzRSWVzfZkqrv/+Pp23X9pZa4Ls0zF+nZraUslx/TdyLi3kML/YUc5S6jqM+D8K7uSJUvN3XlZmxdGbxfIrg0kL8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-627ebbefd85so21879817b3.3 for ; Fri, 14 Jun 2024 00:02:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718348546; x=1718953346; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ocVyg2V3e0HzMdfCsFB/9doeEeEqC8oyUzYXLqjfcnA=; b=fk3ItoWSave4XiDtbVn483yIu1MfbdcRzh1BdlZG/wWbj6nwlUGXeiktIjBV+erOCq laGFewiQEyMcQ25WDOIY2f/+Q+R4suHbCKB5g7cNWyKfL+VR1fdq4SfyEoAQqL31SkJw INrOpkImKZYoEi8ZD6t0GHxlVEWc4agvSyOlPD/qPWfKYqcPibIaLQAkLgJbIYFGXf8i vjk8WQA1iIl5FYzDnmPL0RfmwTUvdwHzYi5Lps5r0XBd3QIDSiGmHTIc8ca0uRfLGcwp t9naTxFJ4ymHCofbdfrGgqv5lRp+TGqqjAo3NjzgmOUXw4IFzYNVBQduDC6BtDJaQt+L CbjQ== X-Forwarded-Encrypted: i=1; AJvYcCWHMmOano6ro1ZqxGp7QyYBstUCkgdCN4XRMnuCF0lUCFcWmJMNvwRN36KA/oZhmYoUvkC0C+r7euyksQDUml5017QpBBtRHirj1cVp X-Gm-Message-State: AOJu0YzB+nnzQ5GrK4GXTkk8c+DxQGlSIst0XcdrFtR7qpTQ7XdXpZdl goR4DU/v9607kUmVwiBt3354DfFL3V3BVXrcDJa699qGLYgEb3ZOul/1EyEq X-Received: by 2002:a05:690c:385:b0:62f:aaaa:187a with SMTP id 00721157ae682-63222856cfbmr16349527b3.14.1718348545660; Fri, 14 Jun 2024 00:02:25 -0700 (PDT) Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com. [209.85.128.177]) by smtp.gmail.com with ESMTPSA id 00721157ae682-631189a783fsm4003947b3.35.2024.06.14.00.02.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jun 2024 00:02:25 -0700 (PDT) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-6312dc52078so17746577b3.1 for ; Fri, 14 Jun 2024 00:02:25 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXmXhGQlTdLgad89tbgsC7J1UeT0WP95v0wUgaBcoVPi2A9b4LinBmQbocAkBFtOmubitS2YuVyyHdRDfixViI3yry0W1sdtQu8N14U X-Received: by 2002:a05:690c:fc5:b0:62c:c660:72af with SMTP id 00721157ae682-63222e599efmr22276357b3.24.1718348544784; Fri, 14 Jun 2024 00:02:24 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <3d1e308d45cddf67749522ca42d83f5b4f0b9634.1718311756.git.u.kleine-koenig@baylibre.com> In-Reply-To: <3d1e308d45cddf67749522ca42d83f5b4f0b9634.1718311756.git.u.kleine-koenig@baylibre.com> From: Geert Uytterhoeven Date: Fri, 14 Jun 2024 09:02:12 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] driver core: Make dev_err_probe() silent for -ENOMEM To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Greg Kroah-Hartman , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , "Rafael J. Wysocki" , Petr Mladek , Andy Shevchenko , Xiubo Li , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 13, 2024 at 11:24=E2=80=AFPM Uwe Kleine-K=C3=B6nig wrote: > From: Uwe Kleine-K=C3=B6nig > > For an out-of-memory error there should be no additional output. Adapt > dev_err_probe() to not emit the error message when err is -ENOMEM. > This simplifies handling errors that might among others be -ENOMEM. > > Signed-off-by: Uwe Kleine-K=C3=B6nig Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert --=20 Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= .org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds