Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp120723lqk; Wed, 13 Mar 2024 19:26:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUMKcyB3WJO2TzLpL4va3U+LgsqOH5oGHTKhnxeADIW2SBrfVLfIqXrM95zq1UW92RZOphrCtH9ekHdX2vfZtk8A6C9EPhWnBv+56WgDg== X-Google-Smtp-Source: AGHT+IFiRWcZHiskebh5dGUdWvvrVCwK0UQQ3vYPtRc8azbCZ+2ECXnH2+yEjRilMwKW+S7SniAf X-Received: by 2002:a81:9306:0:b0:609:fb70:2a96 with SMTP id k6-20020a819306000000b00609fb702a96mr489346ywg.20.1710383215883; Wed, 13 Mar 2024 19:26:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710383215; cv=pass; d=google.com; s=arc-20160816; b=OozMDC2E4P/6Rcr+Wkg+2HFNbJpb10ZGtY8FpjV7wsMSGJsSgRRTsPtl8q+VC+EQpA voIb0ImIqupKJh8ct7sr98EE7GdviOrh/9bfH3BhsG21VA59/bgabeITdb1uS58fpVVC s1lkF1UCUxDL92na2wpBJdEtwQd612MHpq42Ez1ugXZlJiIDyTVd36MMfDpIuYF18WKL uNnTUB3OXKU9nieE2SqsAf1d941/uF1afXTdDHd4UNLe3B2EetCPqHx0/ZvXtirEDrYW sL60i6IymVP9JvipHw0bUDhFIoMkW19AYfkGmh1EqB/aRtjd3g3gy7KuZGL7IvWiTfKx h+LQ== 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=eMV7e7lAbcjQYLpgY4DZzqu1zuF0TbVmGk3y1VmZh4A=; fh=eG/NYzXTQvX/cNRpOji26sl1QJxOr68F8M9tjeGpJ7Q=; b=WPF4WFcnnlTP9BoEKeAra1bn2jhKwHeK60dFtnxxld2xQcvM0QeAPi7wlqLTKR7Xyb 1g6kSao1mHQQ7qJwUzLBNBDgBnNnWqFl8iT8xAvNugwrnzhNs57twdH2Eqe5o1j8CRqB uZ4ALGgPmpHNRr7hMTKnJyG5eYDfdwRJZ1WcMyl9pjMaE2J3T3bnUjIQhDyGdBx5FeOi Jp/KvX6tav0n0rAACcaOVNjU7sbITp4JxDsRpVC6q0Vyg44D52GQbWeZuILQ8dWpBrCk R90HjvSW2ly3R5fU+wyXa8rcQUxhmqWFSsHe5w1FPctRtZhqaIYxK2wN2fzZ0al6UK+4 oNMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KwDJ+9JZ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-102715-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e21-20020a05622a111500b0042ecc60c83fsi495891qty.371.2024.03.13.19.26.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 19:26:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102715-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=@intel.com header.s=Intel header.b=KwDJ+9JZ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-102715-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102715-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 894F71C2121F for ; Thu, 14 Mar 2024 02:26:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24E5A4A1B; Thu, 14 Mar 2024 02:26:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KwDJ+9JZ" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4E541C06 for ; Thu, 14 Mar 2024 02:26:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710383210; cv=none; b=LjkXGKhUxsSipnltA0GDmcc9ViZOYI6VxAZX7iSG/ddUr62huR0poocqxN47cf2ZpFk+N3wUuLBkPqDBECzz4e7dOw87l1DQlw0bu383au2KgaHbOGMeE8wSMQyKo0U4FwP9//Yof1fSImP8b/QuN6v8oKJth9tse/KyzmJzhBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710383210; c=relaxed/simple; bh=isznYQj6c1rnwEUqLiHaDxS2i6jtXknSZw3ne+WB6UA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YvLt3krmt2xi8IOA0+SXoXsLdPdZThY7CgSXP7N+fcqkV3PJkfjJ5NWj80+R9+3BZqbQLPOiJFHjj3RpIT/zrUOuF/rncNRFGgqtduD/SQsSKUDqIlMR3hMaSUt+qVxAhOPsZG3cobOwoB5O23WndEEz7t72QrU999gb9XVWm5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=KwDJ+9JZ; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710383208; x=1741919208; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=isznYQj6c1rnwEUqLiHaDxS2i6jtXknSZw3ne+WB6UA=; b=KwDJ+9JZ7wp4cJDgTEyEHXFvtjKKZR4n8LNteWaAXdGf0mm3l6iWpXJB wTTmm/jBMlpwufvSgU+JDjudzVvcWOT/OyuRz+fPDT9hLY5wt7qTTPTCB xpXoqrvcp4X3M7+3ec2dr1lbJ/ETRT8LdFJLatqpOjYKK+CTkV5aZ39xI SlibLwEsdaEK3vaToPme0vbAiUHBVfB6RU7HNjfnOlKM+krFpPxMu4jJN cmd0YFdK3A/RFX3DN6qVjbV3vLCM/n/JoTwcfA5WgKrS6H5+o7RobfLkm 5wrXyo4za5UQjAK51vdF3c6DGZ1eGyzIkTOWbJ+SEkiKqORpEp5ZQfr8y Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11012"; a="16341235" X-IronPort-AV: E=Sophos;i="6.07,124,1708416000"; d="scan'208";a="16341235" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2024 19:25:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,124,1708416000"; d="scan'208";a="12152202" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.209.86.131]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2024 19:25:49 -0700 Date: Wed, 13 Mar 2024 19:25:47 -0700 From: Alison Schofield To: Ayush Tiwari Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, outreachy@lists.linux.dev Subject: Re: [PATCH] staging: greybus: add const type to struct kobj_type gb_audio_module_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 Thu, Mar 14, 2024 at 12:32:57AM +0530, Ayush Tiwari wrote: > Add type qualifier const in struct kobj_type gb_audio_module_type to > address checkpatch warning and conform to the kernel coding style. Thanks for the patch. A couple of things you could address in a v2: 1) 'Constify' is not a real English word, or maybe it's made its way into an urban dictionary by now. Anyway, it's a common patch action and you can read more about and improve the 'why' in your description. Try: $ git log --pretty=oneline --abbrev-commit | grep Constify and you'll find many patch examples. I think you'll find a crisper 'why' for your patch description. Also, here's a former Outreachy Interns blog about the topic: https://medium.com/@bhumikagoyal/linux-kernel-const-annotation-8db591148e58 2) Now that you know about the work 'Constify' please use it in your commit message so that it doesn't cause line wrap (80 lines) when doing $ git log --pretty=oneline --abbrev-commit audio_manager_module.c See the First Patch Tutorial Section: Following the Driver commit style Alison > > Signed-off-by: Ayush Tiwari > --- > drivers/staging/greybus/audio_manager_module.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/greybus/audio_manager_module.c b/drivers/staging/greybus/audio_manager_module.c > index 5f9dcbdbc191..4a4dfb42f50f 100644 > --- a/drivers/staging/greybus/audio_manager_module.c > +++ b/drivers/staging/greybus/audio_manager_module.c > @@ -144,7 +144,7 @@ static struct attribute *gb_audio_module_default_attrs[] = { > }; > ATTRIBUTE_GROUPS(gb_audio_module_default); > > -static struct kobj_type gb_audio_module_type = { > +static const struct kobj_type gb_audio_module_type = { > .sysfs_ops = &gb_audio_module_sysfs_ops, > .release = gb_audio_module_release, > .default_groups = gb_audio_module_default_groups, > -- > 2.40.1 > >