Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1297208imu; Wed, 16 Jan 2019 16:39:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN50BlSfstVgJHJLyAAML2x+CmeewCO+uDgKCW9z2yIxuSS9F33pXbubfLM0mJRS995/ceic X-Received: by 2002:aa7:8542:: with SMTP id y2mr12870800pfn.83.1547685566827; Wed, 16 Jan 2019 16:39:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547685566; cv=none; d=google.com; s=arc-20160816; b=FmsVgdLMiCVAo8Shn6FdkLVZWtiOkeaESKDWdpkOeATt/Wtnk7VM8JlUowlNPPfbBB ePMIo1wD1xtcWWcDyU9jTNnXBXrEe4xYBVkbWOcoGBmaPM6GdDBV6A66WIWTpDN+PsUU /R8oUR8xLjx0fwdP/9JH5MBKRSF13AcqtbwAGApyL8u4E5z6xishgSrZc6B+P89Gqj+B cv5UhZnJPcTPV3+HitlKnF4566sffZfU1qFLF8Dpccyn2thzgHdZcI6zzoNmB+KXgN45 nVu4LGFFtW68rJzQZdAjArXX9kOL4VwVOmuAgyZVh0txWRn484QtcpNQxeE96UO6NYx/ 2mNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dtys+NmIRT0opIiV30YuHca9dgjL9piQ9Ytb2fj5jxU=; b=1LOSxeiz+qQRYan3sNYSO7gt6Sl//Y7hd41kD29lRqfAWRqh7gcYFSxENJe60dETo9 pLWslEZdv2RK0CMgPivFmd1N9BisMWIcIqkm7BtbXXC+AahIcuyjaq4VnyAkzzL2bRsG wZ7tDbGrB+EZ49XLh9Ij4I/dzN6VFyeFmeYABiFX+2ha0OTkA5HJ4WYydU12kOaWDaSK 2haLiuw3VMe4ISfHvpDtwYy32sqZCz+37FCc4brxeWJ5LkMS+STg5GMCG/rAHxeE45Pz alu3mW1IAP8ID5Mfm0nUbnDHmDlNqJhxlFTv6HFmE1TgBWqR8hiduChlL+pjHZgaJI/m 7dyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Djjg6HJY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u30si7497280pgn.170.2019.01.16.16.39.11; Wed, 16 Jan 2019 16:39:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Djjg6HJY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730277AbfAPVbI (ORCPT + 99 others); Wed, 16 Jan 2019 16:31:08 -0500 Received: from mail.skyhub.de ([5.9.137.197]:34952 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729425AbfAPVbH (ORCPT ); Wed, 16 Jan 2019 16:31:07 -0500 Received: from zn.tnic (p200300EC2BC98A005C5A6BB989505731.dip0.t-ipconnect.de [IPv6:2003:ec:2bc9:8a00:5c5a:6bb9:8950:5731]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id AAC421EC0B59; Wed, 16 Jan 2019 22:31:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1547674265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=dtys+NmIRT0opIiV30YuHca9dgjL9piQ9Ytb2fj5jxU=; b=Djjg6HJYlOhSD+E3+wXrjolFDjvW5SAda1VvM2HOvi3ne3/H9lRclElLbz+p+uSMhqO/eP 7aId2l2yD8DEs0NYoWBhzbFijeTlyflPQcG+tgLYy8C041FyF4B/UB1sPw6XVklp6TxJfy sfpED6fu1Di+LMkbAQjdO38TYQXZ+68= Date: Wed, 16 Jan 2019 22:30:59 +0100 From: Borislav Petkov To: Stefan Schaeckeler Cc: robh+dt@kernel.org, mark.rutland@arm.com, joel@jms.id.au, andrew@aj.id.au, mchehab@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-edac@vger.kernel.org, sschaeck@cisco.com Subject: Re: [PATCH 1/2] EDAC: Add Aspeed AST2500 EDAC driver Message-ID: <20190116213059.GM15409@zn.tnic> References: <1545026517-64069-1-git-send-email-schaecsn@gmx.net> <1545026517-64069-2-git-send-email-schaecsn@gmx.net> <20190110095049.GB17621@zn.tnic> <20190115175749.01E3C6E85603@corona.crabdance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190115175749.01E3C6E85603@corona.crabdance.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 15, 2019 at 09:57:48AM -0800, Stefan Schaeckeler wrote: > That's interesting. I did a grep over all 16944 GPL licensed files with an SPDX > identifier. > > 785 of them have a license text while 16159 don't. Goes to show that we're still in the process of converting stuff to SPDX. > When stripping off aspeed_edac_, some static function names will become quite > "bare-bone": > > aspeed_edac_init(), aspeed_edac_exit(), aspeed_edac_probe(), > aspeed_edac_remove(), aspeed_edac_of_match(), aspeed_edac_isr(), > aspeed_edac_config_irq(). So namespaced function names we normally use for globally visible symbols and those are not but only driver-specific. So, for example, aspeed_edac_config_irq() is a mouthful, at least to me, and not needed. config_irq(), OTOH, is clear at a very quick glance. The others, aspeed_edac_init(), etc, you could call aspeed_init(), aspeed_exit() or so. But since you're going to be stare at that code, this was just a suggestion. Your call. :) > Does your suggestion also apply to static variables? E.g. aspeed_edac_regmap, > aspeed_edac_regmap_config, aspeed_edac_driver? Also, here some variable names > would become quite "bare-bone". Same as above. HTH. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.