Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp806668lqj; Mon, 3 Jun 2024 00:53:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLyUAimjpK17AKGT3oIE5VeJV0bL+oA9OUm1BHJFGm5NeMwS/5+wPix7n2npH+VRYuUrB5+rt2XfRQTRq8/XiqifZ4/rNU0LRJWFYHew== X-Google-Smtp-Source: AGHT+IHQiwli3FsxsJ68mmYPl6rQ7kujNRBytLH4uNQFhSqZAnidKCc+iuGPDkQUvFDG/SQVE2oN X-Received: by 2002:a05:620a:5313:b0:792:b8c8:8654 with SMTP id af79cd13be357-794f5c77cbfmr878238385a.17.1717401215018; Mon, 03 Jun 2024 00:53:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717401215; cv=pass; d=google.com; s=arc-20160816; b=Dj7zAWDilWlZ5buvK+3Yvqn1A492FoODMpS0qgnUfSOf5DyBb+dTUc3EwGkbqSsv0K vKBz/8hLhy3sxoUSaHTbTa7NHsp/EVGVCy488oXGQTod6VhK+3T2SDlJgEJnKwbxL6sI OOFuukjWvWmIfoCnD1/t6GrgwKEK7SBvg3AtLvhop1Xq9g7V9qG3BmSR69Ke8+RxHa8w S+nJZTtrrhLsUmNmt7VhI0tQNffgix01TP/XJke7p/jKahPQV+hbvzG00voQqzGxjcUD nPwtBbgNLXIMip6ZM1d2qDekNB/6Ko9xEbxMWCOu9ptu/h+wjAq5sXik8GyeqqXw9SvC rNoQ== 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=EXTaEr+raexc9QEG/NealCw1eG9smW9RzL5Ji2YA4JQ=; fh=+5GxH9xrYdwMtxVUu4JYw5uhw7lf4kgEJmKH55+UnDk=; b=bUYExZfyxC0JUwkYVnpw+GMQCdfHTfZdsFVuAVYOOwqvKfPzVOY+RfQMnpn7BAo4gK Sp81ik+CXXpyyvVqrOO1jRFUqFs9MioPc/pe0+faXmsjRjwcHNJHw8f+TRa8qKaky6Wh KPR9T02Js+GM13nz4JuJaFPHeMuuvqkFmZ3QT6fL+D61WBZkNTDX6qvfTaP2YqtJ+CRb RDpqNFKBNaDZzhyfjimn8uMFfXWE8/ZZf3NyRoEHpzb7H0HDuo1HKkdKlesannxT4HWE +wALupVcDug6nkMYXs1wideIX5/AuFXTsNBZFSaljxc+XHGWflm9DtrHUZHiC87OJ2Aw nDCQ==; 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-198745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198745-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-79505eba30asi308023085a.347.2024.06.03.00.53.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 00:53:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-198745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198745-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B85311C209F8 for ; Mon, 3 Jun 2024 07:53:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B059157880; Mon, 3 Jun 2024 07:53:14 +0000 (UTC) Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (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 72B7F57C9A; Mon, 3 Jun 2024 07:53:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717401194; cv=none; b=cL9VXZeL3/ZI7WdpRYKnyuUO0WN9cy1bcRUuVu/0yjeOvTt1/5ExZAK0b39x8IBa4wUSPcEIO0l/80td3masGTHPoYziVN7rJR6LZ4Pu8MJJz/t4fOiaMP2WW5IyxOf28FnkkpZbgibTcoDA6I3iXwnmEZnfgpvRoaGAiveoGok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717401194; c=relaxed/simple; bh=mclJXgOQjhez+p33D0A652N1g3VdqkIxJIxJkj78IXU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=RarrHzi4or5RjEadUHGVUac/UN4JGBEBtA3yHkquk64H3bhCRX7sA8bbjZPTARat0J199cRA3JyZS6Ts1sDK7zK3faBWLgtiBD3TSFThrQjv+Xv2i1rnsXCcj9wZJeBPlsmYbVSsmnCgSS4u1Ij3fOZnjS0NdFGTvqCnakw/Jpw= 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.182 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-f182.google.com with SMTP id 00721157ae682-62a2424ec50so41578697b3.3; Mon, 03 Jun 2024 00:53:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717401190; x=1718005990; 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=EXTaEr+raexc9QEG/NealCw1eG9smW9RzL5Ji2YA4JQ=; b=s6+byiYsum2Jy07uwQo74GVirhNoIzSZ534ZKcfXoZOUHCa8jkbdRjAcpg7um9FnOw +bjSq9FL+w/jSc9lN8LW7I2knsBAWPrIwRzZah6SHxQ0owTnv7TmLEvZLqyugeShqZyJ nX6n4JvcRljqBF6zAaaZm6Edg3HtkMTIkoMNLtamjglkCFI7PP9FiN9Vxd3wkMUFl/bX bSrz51TprnLqvYTf69VYp3Rov8Aw3i2WutuxokrCYhmkxsCevZ13gyinWTswlAnywklu TNAjXZ/gjwaIpKAwLGcHureYYaOI7UTPvM/NCBpMhQQn26KgLx+dGWp6WUi2+5taa9Tn o7Ww== X-Forwarded-Encrypted: i=1; AJvYcCW8xqjBYqe2il6PlW1PIaYs963z9TWAML6ilNnRQYAWdxjIMbt4Vu7Paq2BdvaLJWF7lZbE7cOSRiZpMvvhLV3WAuQZFVszexGNdOhUVileIwW8A5DttrpMf/tApm1hJSGV/aT/U+E9P6qel2Ef X-Gm-Message-State: AOJu0YwdGIOxbjLl9RKnCRZ4UGOPCktLj4U15s/Yzsy5g/QZGmGYQSS1 s83ZxIa5VgG4HlK5xO3dpwoDMba44suQZCnNJovWlQ1Y/Z/+PEj1kgGDIsAC X-Received: by 2002:a0d:e2c5:0:b0:627:df3b:74b7 with SMTP id 00721157ae682-62c79494b10mr81543947b3.0.1717401190214; Mon, 03 Jun 2024 00:53:10 -0700 (PDT) Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com. [209.85.219.174]) by smtp.gmail.com with ESMTPSA id 00721157ae682-62c765b924bsm12393037b3.11.2024.06.03.00.53.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Jun 2024 00:53:09 -0700 (PDT) Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-dfa7873bab2so2204727276.1; Mon, 03 Jun 2024 00:53:09 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXDz0TD+4A6QFtdJ/tbwsAfHaqAVA3SjvoFjbMuSWR5wBeclylaQcTBpjy/+EHsmErYLc5DlMRpya6J/XOfvN2iRVh25EusNmkrv5yJQtI5Qhhbgj2ff7tyxgrMAaQBxhCv+vkbKtH0ncX5PorI X-Received: by 2002:a25:ab4d:0:b0:deb:5f9b:76fc with SMTP id 3f1490d57ef6-dfa73c3863amr8567553276.38.1717401189552; Mon, 03 Jun 2024 00:53:09 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Mon, 3 Jun 2024 09:52:57 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] auxdisplay: Use sizeof(*pointer) instead of sizeof(type) To: Erick Archer Cc: Andy Shevchenko , Kees Cook , "Gustavo A. R. Silva" , Justin Stitt , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jun 2, 2024 at 10:49=E2=80=AFAM Erick Archer wrote: > It is preferred to use sizeof(*pointer) instead of sizeof(type) > due to the type of the variable can change and one needs not > change the former (unlike the latter). This patch has no effect > on runtime behavior. > > Signed-off-by: Erick Archer 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