Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp744112lqj; Sun, 2 Jun 2024 21:39:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWuFjhjngPLm4X/9XNx3G0vbFMJNN5l/QFpauZo4f4rdh288rXMY8i6URmSuv1qel34zWv+h4hXB86o60DoeDGUeUOC9/XoOu9cbFoMhw== X-Google-Smtp-Source: AGHT+IGgon9wd+HxIZdcPf7UCwGLt9dz5Xr6c7gpPo8FYwQY/wFyLtzueOwUdxhiFcEI0sLdazPt X-Received: by 2002:a05:6870:a2cf:b0:250:6e6c:b1f0 with SMTP id 586e51a60fabf-2508bfb10a9mr9910810fac.37.1717389592841; Sun, 02 Jun 2024 21:39:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717389592; cv=pass; d=google.com; s=arc-20160816; b=HUhbhXQQ0/q/Kr39bf66lmZ4b4gu9fcCLnJEDu5wfb8rsSkfCxpOIROlsSDV4wWbU1 VsVpHfiAyBrP2TKcL6Mj1XTc6wWlDdu4jpF3wUM1ASu4d1OfEe+C7EWp8htupMRFeP5z sSpkhZvlbu2lvMXa/FNtkh2E+HZTsuSP7fqdJA15iOwVMmWUdZHmbDZ3GqLhYATxMkv1 4nsmfYA9spYpFyt1jwuD75mnz4gkZ5HtNJ6nXBVMSu7HpB31Gg0VMY5aIokDCffyh1U8 8jNxnu+LnN/TtRxeG3qyWboif3vxzd5FARZfhRWg7TjS4iScrNZw+ta+GV4TT5+dzyHp YFmg== 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=qgYwcTir7m+MuZwhkrSFc35B5SCMgqECR3ujkTzudEY=; fh=Ujo94NA/AxAwrYIZx2W1py/e2Qsr7WlrQASYWIUl9YA=; b=dPvdPLNAP0M76urd8DLTnkfiIZUVce5oBy6Y9wjHx5rVT+Kst9u2Sld7WxiGBp1qRb jbSaj2/+/qTp87Cx/9Q4XA08wmQkvsBrEzNDLwuhskBoZb05IaCgGFUISLefZCX6QtvK W3MMdHCsmSsz+io+96gXjqaM4NfvO5HcdJP4zb90aRST9n3QG7BxPZAjzF/1Pvqxv0ka q1ifo6q5SD1fjTrAWc4C3tiOVoLEiSY3ULSfanluDTq4Nmdg18HMu4Mo1x2rjQzQxpXG e4sJCGc3aDz7LmbKedp8ox5I6D8COj4aiqiYFwvHz/H6e+ivoxfBV4NEp8iSidaUwoNq 0+uA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QZNg3ab0; 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-198597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198597-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242c2a497si5904577b3a.281.2024.06.02.21.39.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 21:39:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198597-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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QZNg3ab0; 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-198597-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198597-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A956AB217DB for ; Mon, 3 Jun 2024 04:39:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B76FC28382; Mon, 3 Jun 2024 04:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QZNg3ab0" Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) (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 86CA919BDC; Mon, 3 Jun 2024 04:38:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717389540; cv=none; b=F2RkE931LgMEJVvwV/dYgWflqpsj/3/lBG6bTp6+Socp83F39/V5kzMha1lmmUd7PcRHlxZT9yZByTdzKVyTw5/RAxE6aCw8Y7ILnZ5NhMU97HzExQ0AGLWj+EFJtThhVe150N/d/DvzlDUAGRVnBTYL8YwLnyAQf6z7oJO9nWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717389540; c=relaxed/simple; bh=8KdtnoLsEVr9UtKMZkzhWnd1toDgM5gQIylS8tYniJs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ce1e7/tMWlLBGnrMhNOMRNi9kjTFIHffVslS6LGS6NcRGTE5t+vgpDQfgCtGuQiX/q7SNFNW3dFKqeHVojFqafIN6kr1B2wwZAZ0gp0FvWrzrm+Sad/AIkZO7rL4JN59gzFjDxHaelb3OxVf8T5En2Yf1GngVNGCrslfunxhpKM= 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=QZNg3ab0; arc=none smtp.client-ip=209.85.167.172 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-oi1-f172.google.com with SMTP id 5614622812f47-3d1bf6d156cso2027918b6e.3; Sun, 02 Jun 2024 21:38:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717389538; x=1717994338; 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=qgYwcTir7m+MuZwhkrSFc35B5SCMgqECR3ujkTzudEY=; b=QZNg3ab08fa2lep5Fyt4z/Wrp03mafWA0wjS8tMHpoD/6ERGqNjpVjF5RnCvYbU1QK i7FUo3NOEMPnxij/DO95JELi5Gu6NmK022EzMPwqzh/7sHOz2seBggDLC4JpGiaca8BZ BjjE7sOmaL8MYMscMZiDbITxOocAJ4sGrYbSZ8sgJpNbKA+6jVfMS0GEz2N+WM2btWjt HISYKFOH6KGyCGjeUY/h+VekUAv5WQhLZ7JSQHgvctb9/SQth6sDLYmUopPzGaaZHtj3 bqugk3Vm424P6mK4VcygUU7Cxqx2xRvwJ2EdsGYc1QMCoDARBHbHG1+n1ydcxaTb2ULD jORQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717389538; x=1717994338; 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=qgYwcTir7m+MuZwhkrSFc35B5SCMgqECR3ujkTzudEY=; b=sbm5fUsdFyfcOzdCIjujC1TNDiMfxP5753urM4XdpJsRvn2wCt+IwxGG5q4y77qf9X I43nPMs43UJusyNNlFlCEmieWBWM2wH6PGfMFguPyiIyh0L2HfWntgwEH4osH9QnFO0i WKMSwtoTlarN29jRf0RIXG+rwQl6xrgQejiUe6Ukrv2AP331emRu7is/n3mG3NG86jqa 79S3bIAhali++/OHMSTHG/4fvvQmDhx+8fHzT4Ofdp3vD9CXcJjTbeqt3PurSke3XbiH NszRO2OCFtXlHj4Kb/l/pJB/AZdm1mbXZsloKf5SKrL6yTcvK2gKIEazlqr3jVNVRPfd 0qAQ== X-Forwarded-Encrypted: i=1; AJvYcCW21jg6itlrDoBsozN1FoHDrDVT/zO8d3rqeoNsraW9NSl0ie8uLp2BB1t6RBHggcolYW8chvwAnGQu7X6EQa+GoHZ/mqpAzNEeLWHAN27n5Q565Dnm9QolO0cSGhpGVO7foev4ZI6XxI6Q0GP429scYwUSUy9pCIohIgbwNSP/LhR8X85qk4zNQHk= X-Gm-Message-State: AOJu0YwqHOTXzwvYgcbawlWXubxhRUI2i16PdIUVfYQZ5F59fqqxYfgc C40IH4gSu295nk2ljbv/p43vM0QsRZ03CD992HQBCMLD/iu5R8oU X-Received: by 2002:a05:6808:1a88:b0:3d1:df3a:5770 with SMTP id 5614622812f47-3d1e34a1e4emr7612451b6e.31.1717389538520; Sun, 02 Jun 2024 21:38:58 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:17fd:ad4d:2690:4ce2]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70245aa1982sm4352629b3a.163.2024.06.02.21.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 21:38:57 -0700 (PDT) Date: Sun, 2 Jun 2024 21:38:55 -0700 From: Dmitry Torokhov To: Erick Archer Cc: Henk Vergonet , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Greg Kroah-Hartman , Duje =?utf-8?Q?Mihanovi=C4=87?= , ye xingchen , Arnd Bergmann , Javier Carrasco , Kees Cook , "Gustavo A. R. Silva" , Justin Stitt , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, usbb2k-api-dev@nongnu.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] input: misc: 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 Sun, Jun 02, 2024 at 06:32:58PM +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