Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1923125rwl; Thu, 30 Mar 2023 03:32:45 -0700 (PDT) X-Google-Smtp-Source: AKy350aNNLwyAG2U/TxMtz9SNdB0I+QQrAglW55WSx72ChrQ2524bIlGuRFiwI4iAqNzl2/qat3U X-Received: by 2002:a17:90a:eb12:b0:23b:4bce:97de with SMTP id j18-20020a17090aeb1200b0023b4bce97demr1808045pjz.4.1680172364936; Thu, 30 Mar 2023 03:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680172364; cv=none; d=google.com; s=arc-20160816; b=wFFrorX1JZrH01Vxaxo4vcWkZbCGwN51uXEH2KHYBRv/VyIqnHTeTREeHRAvgDX7Qb KlaWEP9DMPCrqi53sxq/A5JkDR+Xi0i8mpyEBDI1ccQXWpe5MTT+MxJEJAEVFpC7QxQk f3/Wq10r612JOSHWSkWVuhjafHNcqM9540Km9Wmdb+rPvZeApSedPuCZjVGWJ+gy+H6k moY7BErBQHHgx7AO6CM9vjWHPzQ8M/aMqBg4b6qNFc3Q+FkgJsFhj3I1g2TJ6XZd2+CI sIwXJZgdoeazhUAzRIiG5M8zCmQ9TkxM2jaxhxvEYj+y/pi6Ts7G/w2sVQ7WNjtQMStw bOfw== 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=MxuugpcQ76BXjko3+ER6Q6ni4tgUxDBWpukRzkNP/mE=; b=hn51bIfSlDVbVj8KvJISo3l5rVp7pI9V5+ovu0y+rz9jGMdTuwobNyyXJoY0/HfKOf AijVunehHz3HWAEVSU9sipZKURM4myS0UlnEPD50slTTi0BNdJq3O8eH43L6EzpTOQCS x1zHJhME4PR7HTHB11Mogh/QYKir3X49IkIZEId7hwZlSWWOrdqLYd7B/vZBREv/28Ky JdjO+HKf8Aemrdp2k8K/+sj++gNQi7Dnmpyt2Lu1bEnTe9Gcx/xpanuLmXUhM6tT77Zz 3oPtM+35v3B+KYkFVzMUxKxduvB6D1Ht4AeyYUriUnotWKNGB4Wx5DVByi/f/CKW+YdD DHkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linbit-com.20210112.gappssmtp.com header.s=20210112 header.b=7oMlBfhk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a63e113000000b0050fa5891fc5si2632481pgh.397.2023.03.30.03.32.32; Thu, 30 Mar 2023 03:32:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linbit-com.20210112.gappssmtp.com header.s=20210112 header.b=7oMlBfhk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231355AbjC3K16 (ORCPT + 99 others); Thu, 30 Mar 2023 06:27:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231288AbjC3K1v (ORCPT ); Thu, 30 Mar 2023 06:27:51 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2595D72A7 for ; Thu, 30 Mar 2023 03:27:50 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id l27so18538801wrb.2 for ; Thu, 30 Mar 2023 03:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linbit-com.20210112.gappssmtp.com; s=20210112; t=1680172068; 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=MxuugpcQ76BXjko3+ER6Q6ni4tgUxDBWpukRzkNP/mE=; b=7oMlBfhkg3pXtjNkNKYK6xQ5A2jpHJggTmkgMODtT7kSBNGVCxmeCyo3f8bPkJOPn4 0PXmt7Nn2UD3UwmgD8kZExkVBgJmLw9oTCueb6virrw+Uo6A4SmCbAP9tZRdahLOn87m egOdqioJ5oC3ulBwib1UMyYTtdGcbR31ydt3Ck+hVsuvTwdajoJH02gNY34f6NLHVNNC c6T/5JrRMykYICRQLEHdj+Q2fxG1k8lxg9K+KHeh4uxgrpJgdnwzwh8oCBRUdhtO/Qca TCZxFaEaqvNeFDwrcs48ZxSGos0pKgSFF791YP5ZBgnkfkiVMyUoU62gpy9hpg25dbN2 GFYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680172068; 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=MxuugpcQ76BXjko3+ER6Q6ni4tgUxDBWpukRzkNP/mE=; b=zIOQEf5fPUUT177kKl2LIpHRXlt26I4MFRfZRk4MbZpuK2Tk8uK1edJtVNWW6xL3M3 aXmiaUZqLQTg1AX7iMX5gHTJOafmdmHYfOBy2ZWp3uiUR5HLRj1hHsrM/gT1ha90+1HP BExC3GTSnliceeO+VWxXQhmliZoDqrE7BXjibg6KoE7DbTZYhOqeQd+EQ0jHSXcdFwJO lWEF4iFz/3ZFhFEE70u4VX2eN2zwD1KQ45Kq5m4inuuBJaYYryZe/JFXd8v8k7QLMSoq T4jbP7b0uiv7M+Mx42v4wYNq5+rM6TWciVg4mRRHzuyM8FVqctglTPZUApwzvN0bcq01 SVBQ== X-Gm-Message-State: AAQBX9fsmcFZB8QDXP+oirNDlrEC7eYdsLWtk4SOW0Fi3DxhtZ0wa3nk x1knCG77W72vHSsIo6mUhDIFTg== X-Received: by 2002:a5d:4688:0:b0:2c8:b9cb:885e with SMTP id u8-20020a5d4688000000b002c8b9cb885emr16950780wrq.24.1680172068590; Thu, 30 Mar 2023 03:27:48 -0700 (PDT) Received: from localhost.localdomain (h082218028181.host.wavenet.at. [82.218.28.181]) by smtp.gmail.com with ESMTPSA id s11-20020adff80b000000b002d6f285c0a2sm26352514wrp.42.2023.03.30.03.27.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 03:27:48 -0700 (PDT) From: =?UTF-8?q?Christoph=20B=C3=B6hmwalder?= To: Jens Axboe Cc: drbd-dev@lists.linbit.com, linux-kernel@vger.kernel.org, Lars Ellenberg , Philipp Reisner , linux-block@vger.kernel.org, =?UTF-8?q?Christoph=20B=C3=B6hmwalder?= Subject: [PATCH v3 1/7] genetlink: make _genl_cmd_to_str static Date: Thu, 30 Mar 2023 12:27:38 +0200 Message-Id: <20230330102744.2128122-2-christoph.boehmwalder@linbit.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230330102744.2128122-1-christoph.boehmwalder@linbit.com> References: <20230330102744.2128122-1-christoph.boehmwalder@linbit.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Primarily to silence warnings like: warning: no previous prototype for 'xxx_genl_cmd_to_str' [-Wmissing-prototypes] Signed-off-by: Christoph Böhmwalder --- include/linux/genl_magic_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/genl_magic_func.h b/include/linux/genl_magic_func.h index 4a4b387181ad..2984b0cb24b1 100644 --- a/include/linux/genl_magic_func.h +++ b/include/linux/genl_magic_func.h @@ -209,7 +209,7 @@ static int s_name ## _from_attrs_for_change(struct s_name *s, \ * Magic: define op number to op name mapping {{{1 * {{{2 */ -const char *CONCAT_(GENL_MAGIC_FAMILY, _genl_cmd_to_str)(__u8 cmd) +static const char *CONCAT_(GENL_MAGIC_FAMILY, _genl_cmd_to_str)(__u8 cmd) { switch (cmd) { #undef GENL_op -- 2.39.2