Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp743861lqj; Sun, 2 Jun 2024 21:38:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfOQZ+X5kqgbVzrgnVRBMK7CPmrk7N6WguBujcbpWceF5YtcZs4YL/rzjMq8pvyjDDSJVMYKiTThqxZqh3LfP98nsJxj7aGY6ZfopMBA== X-Google-Smtp-Source: AGHT+IFyjmcUBwTv8KYhUrrHS1SS9Z9EHvS3z4gOenRNpBUZbrMhFHnkvZXSwnCDXNxt8jRynBOF X-Received: by 2002:a05:622a:1ba2:b0:436:4d7c:8a9b with SMTP id d75a77b69052e-43ff54fa8b5mr103545371cf.46.1717389536263; Sun, 02 Jun 2024 21:38:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717389536; cv=pass; d=google.com; s=arc-20160816; b=tS0lubj1uI4mqTmBIM47vl8zbQnYP+Ys4HpvKsIbXg0J0rT3/3gDXqw9Ocah3tfIdF g5xPZgLjTd/lV3HsJzcmvcxLRkKR5SIrZCkoUc2JpeYJKffEgfqxFSwX/tUEYhfSpWQN NC84XeNgh+0wFjYxP/YJIw5Kx62+IjnzvBWvYoqEEhPvxVDw48BP/HYZguat2xvAWOmz 4JkU9TC8ZfoH/RreLU/cI5M7ByCA7bOfIJGCM85wKpQX6HpiQREIYgt1BaNSN7qFH4CW YNbQbDUfzNXxsOGhBIWcoOBtLSf84PKMnIwhgG3TIB3jkDOg3K5WhHUGmjp011KJ6kQ5 IizQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XvuvtcETf9wf1Z8H7wWDONoJS84x1D9R4lXsvqsdFCE=; fh=C2vwuC0fyhkVMWo2UEyY8xKplEa9PNkN2KvTjfkAzQc=; b=MXzL1JAnBWIASDIABYhRSsVRHXtAp1wwLjVXfieShk0q01GjBrz5Fu2NPlRKUrFECO Gn9yOJTBA9wEvOMZVTdNAdN5iFvKUu94Aquv0MNuMs0mzBbN4uu7zCD4TooBLeRZDLbd XaZTxDOS+NDOvXG7QcPXomugqn1hhwY7Z+NKw7B4Kxq86/Dzh2MU/EMqhplkO5LwvdzU r1FApy/YIIeomfRGnQPfhrOyggiACd3qtJnvpx5lPijEnmetOGrjTJAg0gNmX/v1lwD8 MkHBl/lj0n3q87d4h96StYJRiZw5WTvybLuAFx7z88YPW1tMQbg4aH61unYmFjh2G6T4 RgPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VjdyH52g; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-198595-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198595-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff257f0dcsi78922421cf.531.2024.06.02.21.38.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 21:38:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198595-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VjdyH52g; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-198595-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198595-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 F330A1C216C6 for ; Mon, 3 Jun 2024 04:38:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB9961A286; Mon, 3 Jun 2024 04:38:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VjdyH52g" Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.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 C335217C; Mon, 3 Jun 2024 04:38:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717389526; cv=none; b=fmcEDsqQqDUDY1FxxFN3Bqm41UxsdIw0M5Mk741b2i2pZgF3hxLL9uR8fY0QxKh3P943o7/UpTJJqotX4kurDKx526BfNDLuqNUREfdVZ0or/zMBhlGBzwn7EeLCyG0eMbHnG0swSyVu7+UQpbHr4A1H0xn1fHG2ylgfUM1GrIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717389526; c=relaxed/simple; bh=B/4OC2TXLls4NoANvnfEtjfSypBpELae+Ph2qt/PRPA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uZiwErrdHWsGwwju0Q39bdd9QzarmteDIVFXdRX7c02rrT1OW4fE6xTVEnQr/6EgO0HYqf72El4h+PTpWES/zHAonm4+5c6m+d+wiRCVydpz5JGKaKKyPZxvm9XiLEsn6fqijsG8k1jy1oQq6xCoD3DFZLAAnb8O+FHHXmwFKpY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VjdyH52g; arc=none smtp.client-ip=209.85.215.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-656d8b346d2so2782184a12.2; Sun, 02 Jun 2024 21:38:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717389524; x=1717994324; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XvuvtcETf9wf1Z8H7wWDONoJS84x1D9R4lXsvqsdFCE=; b=VjdyH52gSWls1ahY/R5oQs008m7ZlWD1JbqtpIWMKbj4vZsh/3qWdzxsJrlOHT+eWT EqGC1Prey7N6oSPJyuql+hXf90IYBX8/ieLWkuopcglpRxlR7OxQVGMWSh7vBP0AfJM7 ho342MWpIozMyFueOzMl1lV4dpQA5hIa5BJPOPsaXSAPDI7qdQTboiG4U3hbr04/YTfe E/XJuyNsdy4k1qrXvdPCCc6KcWRxsr8BkkAIEx6e+K2hqEQt2+EeaWUEU6AmmSrzJXU0 HXxPciMaktbL2wtXNBIuyzMYV3yv4+rs9FVdlB71w9zMJV8enwTwh5GC9iZcSPb445KA 88hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717389524; x=1717994324; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XvuvtcETf9wf1Z8H7wWDONoJS84x1D9R4lXsvqsdFCE=; b=kHG8s+610bddyNr3CbP0/4tciiD3f2vANZjj4hb+zEPESaZiVf5UdTqGQqOXjjPf+O il+Ue05bk1xIspoQTMWc7YLet/qRlHInfebNb0ZPzKXhCtoDfP59KGUUPZNuPNVqbkyc BSMhzm2hWLa5IWVkf4qUMQl2XfgtvfBW6nnCzDd9new5iduZtVxYXIx+BI8RzkmBGtu8 uZZhSh1ALwaUyJa9AGtKtoiiJeBNFwVnCvsPwZcrsiM6i1MD4BCRf4U+txCal16A4Y+J OwlE/++rc/bUulAG0XCxaQ4F6f+HOGo1IYSS5pD5ol7SjRorF9HVevFCsGUmSiFE5Lsi 2tsQ== X-Forwarded-Encrypted: i=1; AJvYcCWWrq9eeenME4YNNsgXtkniGvfjPIBCdo+6nHsqM0sPnC1TNH8B+Dzpu35Uh8KfCUcmCth1HmbFgQLjEEYK7Mr/oMJUsruj22JRzgt83ODJajyZU0qI/yf7vmLRgAg40UNmIsqDJxFvUIf/Uc1d4mvqy3ySCBEsR4z4apw8mQXAHScDIIvl+ICvA+g= X-Gm-Message-State: AOJu0YztfOjqzmKsveJKlJeg7XYbsuTISELnWhuHk7mCmMF8FVcUZuf1 xuGktKMIPTcGmuumGDSQsgLbr3vA1SzNAcvSWKFK7Ac9bwZLEcBS X-Received: by 2002:a17:90a:f495:b0:2ae:6cc7:23d8 with SMTP id 98e67ed59e1d1-2c1dc5cd0e3mr6376226a91.41.1717389523920; Sun, 02 Jun 2024 21:38:43 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:17fd:ad4d:2690:4ce2]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c1a77bb500sm7408093a91.49.2024.06.02.21.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 21:38:42 -0700 (PDT) Date: Sun, 2 Jun 2024 21:38:40 -0700 From: Dmitry Torokhov To: Erick Archer Cc: Hans de Goede , Kees Cook , "Gustavo A. R. Silva" , Justin Stitt , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] Input: keyboard - use sizeof(*pointer) instead of sizeof(type) Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, May 24, 2024 at 07:33:08PM +0200, 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 Applied, thank you. -- Dmitry