Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3566997rdg; Tue, 17 Oct 2023 21:37:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGg9Pc7OZzmqxnFhBzTsyZn1XYLKaDAiByMjqmwpXvoZ5EoJgg5AQByZvQkrk989Fwlj9TJ X-Received: by 2002:a17:903:11cc:b0:1bf:7d3b:4405 with SMTP id q12-20020a17090311cc00b001bf7d3b4405mr5134635plh.14.1697603853684; Tue, 17 Oct 2023 21:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697603853; cv=none; d=google.com; s=arc-20160816; b=OgYjAWpUAhwdqZ6vElFoZeqmTDxeNNh0b0Kep4mCGJKWy1tVJ7kCUuBxBoFXU9fIxv qkC8OLLADOIZstNX1cZcF0UTHSk+SQFqgTsYnlL1wLVPWrsPq0rReyb3fNRmmcmJsAby J1XqDz6jfB1cNee9uW4zsXUsuaviRT3Pmm+eIUQWs6vYbxWjb/j6tPzw06n/4SPgpTPN LmmApeABwVBOHwQLIwck6EVn1UjUXh0Nz8h3xR180V8NHyw4+QERBb+eNEDj1az0hvS0 as0HWeQfIB4jx67BkaI8gGkfTPn3+sMY1oTDcfEcWVaN3OlBxzc5/O+YzagebRiAJ60K oh6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GSddBUAe956x9GyHNcmiKlaDE7dW5RFLQMzOpH7UipA=; fh=Jr/ZUGwuqk8r3C0qciQ38igCbjoZjzbRVHKdCQpyGnA=; b=rtKAHTBVusx/wS651nGOXW5OYWRxRMGYtPSa3ghvKBHk82ANvhgXRHkyLI6d68Bv46 fUnMWx85gkGpHAJhiJDA6aiNOK3KDRnNoAluVkbgjuk5JnDvlGAnx5buHKwdpYycIh3x EbmEvQlsiZ3mnVb6Wtx/XgCFvo8+jeWMcHNGFVwPUpcgkFKCOfhSGGLI72zUf+S5RTcS kRB/yXYYpKtDT29Ijg6nEuNzjWmR2VpXmrsRaVbkLdmWmNs+eJ+e51lQtlTXOwPooJAS 4wlAIPSKjVXN5ytTGoIfcgC4pXWKPlrWFDCbPz++hoI0C31HdrBMn5RrnZerfvYIYcee 1VSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IEL+E+NL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id ij14-20020a170902ab4e00b001c9de48fc85si3261936plb.179.2023.10.17.21.37.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 21:37:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IEL+E+NL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id F229C80293C1; Tue, 17 Oct 2023 21:37:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229602AbjJREg7 (ORCPT + 99 others); Wed, 18 Oct 2023 00:36:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbjJREgw (ORCPT ); Wed, 18 Oct 2023 00:36:52 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BD3810B for ; Tue, 17 Oct 2023 21:36:49 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6bce254ba56so2681160b3a.1 for ; Tue, 17 Oct 2023 21:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697603808; x=1698208608; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GSddBUAe956x9GyHNcmiKlaDE7dW5RFLQMzOpH7UipA=; b=IEL+E+NLdS0EgThTg0TeqEgvdFKwJD+b4d7B52kP7+X2I9w7fcjWm4jSTqOw3zoFKG i/rlQ+reCqz8NDRgeIH9H0xdKJhex/nydYPlG7pSShvtODYMRpsJFHW0ugxfi4Nar7Cx bX5gdpqQDa378nukU+qMcJnKdtIcqYjeuGw3kHilazlNVsVX96f578KxyTuDnw3WpZUi w8FmQvgwGu6vzAGkbXHZIyjuxeXmDKlUyZDdERRGqFQgpqrYFoe61CiwPf0DEPdoSRvL teiMZL0C9DNX6/q6q80Hn9Ecrxi0xnI5iKnrn3OSpSt/HQPNmxGj7C+6cmroF6Bw2o3N bbPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697603808; x=1698208608; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GSddBUAe956x9GyHNcmiKlaDE7dW5RFLQMzOpH7UipA=; b=oAIwHrDOz5KYJdTwuGjw7y2UdgIyajbYKNuEEEHpuKXVJd3VYMzXqM5aj9VV2jX9G/ YphszUqwowV9ho/NbgFI4S0UkNPew1hW8QflzIpb59xpMVZbzV4Z/5CxCsvA11ov4eDX TDPCBeAYrdP/h4X4eW7Z6y1TPv7sil8yQA7MB1h8PhlBp1B2hM3E5eg0xTlhRtNBPNI8 oqckAbugPA7/+1oQAj//hPrEJo0OKto7DvthHX+GMFHfRva08BhRDXzWyUC/A7UOw/yJ IbMNeXmRN0UlAYAZVQnoReNuOmZ4wvzyoFV3cW8Zq6FuYmesVMWV6XfoE08Yy0TnPfHD R3DQ== X-Gm-Message-State: AOJu0YwWkORITMIbcqv5nZ5AcEhS4rYPtfTZHeDzu10dpuKJVq+FTwB9 uo7Wyy/cMCE9iLiLMLVifYQteSYJsOOxQQ== X-Received: by 2002:a05:6a20:7494:b0:161:2bed:6b3a with SMTP id p20-20020a056a20749400b001612bed6b3amr3987395pzd.17.1697603808486; Tue, 17 Oct 2023 21:36:48 -0700 (PDT) Received: from Negi ([68.181.16.134]) by smtp.gmail.com with ESMTPSA id q5-20020a170902788500b001ca222edc16sm2422852pll.135.2023.10.17.21.36.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 21:36:47 -0700 (PDT) From: Soumya Negi To: Martyn Welch , Manohar Vanga , Greg Kroah-Hartman Cc: outreachy@lists.linux.dev, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Soumya Negi Subject: [PATCH 2/2] staging: vme_user: Use __func__ instead of function name Date: Tue, 17 Oct 2023 21:36:33 -0700 Message-ID: X-Mailer: git-send-email 2.42.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 21:37:24 -0700 (PDT) Replace function names in message strings with __func__ to fix all checkpatch warnings like: WARNING: Prefer using '"%s...", __func__' to using 'vme_lm_get', this function's name, in a string Signed-off-by: Soumya Negi --- drivers/staging/vme_user/vme.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/vme_user/vme.c b/drivers/staging/vme_user/vme.c index e8c2c1e77b7d..11c1df12b657 100644 --- a/drivers/staging/vme_user/vme.c +++ b/drivers/staging/vme_user/vme.c @@ -422,7 +422,7 @@ int vme_slave_get(struct vme_resource *resource, int *enabled, image = list_entry(resource->entry, struct vme_slave_resource, list); if (!bridge->slave_get) { - dev_err(bridge->parent, "vme_slave_get not supported\n"); + dev_err(bridge->parent, "%s not supported\n", __func__); return -EINVAL; } @@ -572,7 +572,7 @@ int vme_master_set(struct vme_resource *resource, int enabled, image = list_entry(resource->entry, struct vme_master_resource, list); if (!bridge->master_set) { - dev_warn(bridge->parent, "vme_master_set not supported\n"); + dev_warn(bridge->parent, "%s not supported\n", __func__); return -EINVAL; } @@ -1565,7 +1565,7 @@ int vme_lm_set(struct vme_resource *resource, unsigned long long lm_base, lm = list_entry(resource->entry, struct vme_lm_resource, list); if (!bridge->lm_set) { - dev_err(bridge->parent, "vme_lm_set not supported\n"); + dev_err(bridge->parent, "%s not supported\n", __func__); return -EINVAL; } @@ -1601,7 +1601,7 @@ int vme_lm_get(struct vme_resource *resource, unsigned long long *lm_base, lm = list_entry(resource->entry, struct vme_lm_resource, list); if (!bridge->lm_get) { - dev_err(bridge->parent, "vme_lm_get not supported\n"); + dev_err(bridge->parent, "%s not supported\n", __func__); return -EINVAL; } @@ -1638,7 +1638,7 @@ int vme_lm_attach(struct vme_resource *resource, int monitor, lm = list_entry(resource->entry, struct vme_lm_resource, list); if (!bridge->lm_attach) { - dev_err(bridge->parent, "vme_lm_attach not supported\n"); + dev_err(bridge->parent, "%s not supported\n", __func__); return -EINVAL; } @@ -1671,7 +1671,7 @@ int vme_lm_detach(struct vme_resource *resource, int monitor) lm = list_entry(resource->entry, struct vme_lm_resource, list); if (!bridge->lm_detach) { - dev_err(bridge->parent, "vme_lm_detach not supported\n"); + dev_err(bridge->parent, "%s not supported\n", __func__); return -EINVAL; } @@ -1738,7 +1738,7 @@ int vme_slot_num(struct vme_dev *vdev) } if (!bridge->slot_get) { - dev_warn(bridge->parent, "vme_slot_num not supported\n"); + dev_warn(bridge->parent, "%s not supported\n", __func__); return -EINVAL; } -- 2.42.0