Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4184230rwl; Mon, 3 Apr 2023 00:49:09 -0700 (PDT) X-Google-Smtp-Source: AKy350aCYaWjdcpCjHutaYkDfY+vBh21pnweeFy2vTu04+l7kjtKmKU4q/05R/3nhAtsa/r3h6nu X-Received: by 2002:a17:902:da85:b0:1a2:769b:3d61 with SMTP id j5-20020a170902da8500b001a2769b3d61mr18022093plx.6.1680508149355; Mon, 03 Apr 2023 00:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680508149; cv=none; d=google.com; s=arc-20160816; b=lWclcKedxtEdF6O6ZM//ccJogEa2fKA3/Vr5fMeS8DIdltgxaMi1YNimyWjkwRCxYX bK0pP8OeODwol0iPPA0+5JWrzOuq21UjCaiqNkDIvEqYkaOD6H0cpp3ZAhHPmtqyPv4U 5JAuN5Oyc4028itMY3BjF+lcbPyklTNuWYAdOfTwNcv20fz6ehYFVyeWs6LTdsg4vGSf BO06/RuqckbnGxg1eqQhPDh2lL+//A7W0Yjd8oZ2g26NmUmMHWCb0TSEnNZtsJjHa1Lm SkW+bW/Z1fen5NJKtSfAFBRQCwA+iqaBE8NXFvU2cZkREBjuyOENuC+YZ0Gkj6yWyTlJ Tyyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=62PFBzTAbCHQ27xTG3FHTQGUUw7V1yR47W54EAWFvj4=; b=ZS2PqBsth2XfqPCDEXQ/d1i6oU0YtCULB4xnvPUZzOEM2AB6LIc7a2zBUTYnW1UKkA R/ji/c0loJRe5KIJVU8sClaZ7O0u9l9wHQF1QjV2WvxEf5hTmtF9BK9B3L9V3EINuXsw EgCDn2HNhwVYZ7rNn9tMf/FcZVYiEp/Uk9wEAQk+OkJdNUx2xc12O4ARSEv5cA28QuKq R2cLw9zxujFJFaQo6zWP8IUC+quj3h5m0A3yjgAcEzUbwi9fYlT9dZrfcNFPzoh6FrvU zqbTJGA2L0kZ7Gv2o8Jrd/v/PVCL1Jhq8pfGlEKBp0P9dv0wXH70jNR52f9cLlZWAGtu Kh0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a170902c94700b001a1be59802csi8037142pla.30.2023.04.03.00.48.57; Mon, 03 Apr 2023 00:49:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231389AbjDCHq2 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 3 Apr 2023 03:46:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjDCHq1 (ORCPT ); Mon, 3 Apr 2023 03:46:27 -0400 Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D836F10B; Mon, 3 Apr 2023 00:46:25 -0700 (PDT) Received: by mail-lj1-f177.google.com with SMTP id a11so29327803lji.6; Mon, 03 Apr 2023 00:46:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680507983; 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=XZqsSeG92QJB+FkeLdPRDqSn7lcMPGjoOntxd0P/7FA=; b=y/pfF2WOcs3dACT2+fn0lyql63awEFKhgvhHAvZrL1r64oKJwGk8B67u33ZVW/yxst 0MuI/0od3fv8m6l9VK7jMO7ftJ0BrRZ8PQnC3AAXO1b89twBsgBHDZ7qalk3qDDjzV4J Gq9hCGlfCRM126toP6Hs82B8IpF3dMgbGHCno9OXB0+n2TF8Z7dqbUiku5VtmiqNCkQc i+jaho/S094cJySfSnCMM+QYq7eGMusKydL+fuX8g+Xbo3+sG+xsEJC7IAjBWkHSf83F dQLE1A5japnEK6w6csJFI4Me9/CGJD5luwvXKfCMD73DLWWglX34UuNhxDGJRPLhxXhM d9qw== X-Gm-Message-State: AAQBX9cSGxCMFyBbUqEEM5SUizNIhVo4FqsOYSLvuIaVZWQCBzG9VXko o04RD0THT4ZWYxPQPMDcOPfzafjnjwrMxw== X-Received: by 2002:a2e:ba09:0:b0:295:b10f:7c9a with SMTP id p9-20020a2eba09000000b00295b10f7c9amr5133016lja.4.1680507983257; Mon, 03 Apr 2023 00:46:23 -0700 (PDT) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com. [209.85.208.171]) by smtp.gmail.com with ESMTPSA id 18-20020a05651c00d200b0029bfcbeac09sm1625009ljr.41.2023.04.03.00.46.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Apr 2023 00:46:23 -0700 (PDT) Received: by mail-lj1-f171.google.com with SMTP id 20so29366006lju.0; Mon, 03 Apr 2023 00:46:23 -0700 (PDT) X-Received: by 2002:a2e:86d8:0:b0:299:ac1c:d8b3 with SMTP id n24-20020a2e86d8000000b00299ac1cd8b3mr10752173ljj.9.1680507983008; Mon, 03 Apr 2023 00:46:23 -0700 (PDT) MIME-Version: 1.0 References: <20230331095545.31823-1-lidaxian@hust.edu.cn> <302d88ca-7d28-4450-8e60-d0bb40f4174d@kili.mountain> In-Reply-To: <302d88ca-7d28-4450-8e60-d0bb40f4174d@kili.mountain> From: Geert Uytterhoeven Date: Mon, 3 Apr 2023 09:46:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] soc: renesas: renesas-soc: release 'chipid' from ioremap() To: Dan Carpenter Cc: Li Yang , Magnus Damm , Lad Prabhakar , Biju Das , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=0.5 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dan, On Mon, Apr 3, 2023 at 9:34 AM Dan Carpenter wrote: > On Mon, Apr 03, 2023 at 09:12:55AM +0200, Geert Uytterhoeven wrote: > > Perhaps we need a different mechanism to annotate error handling code > > that cannot ever happen in a real product, so it can be thrown away by > > the compiler, while still pleasing the static checkers? All these > > checks and error handling code do affect kernel size. There are > > Linux products running on SoCs with 8 MiB of internal SRAM. > > People sometimes call BUG_ON(!soc_dev_attr). It's sort of rare these BUG_ON() is also not cheap, space-wise (except if CONFIG_BUG=n). > days. It would be easy to make a function which silences Smatch... > > __system_is_dead(); 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