From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0D27C432BE for ; Thu, 2 Sep 2021 12:35:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A2C6460F4B for ; Thu, 2 Sep 2021 12:35:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344583AbhIBMgy (ORCPT ); Thu, 2 Sep 2021 08:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344538AbhIBMgs (ORCPT ); Thu, 2 Sep 2021 08:36:48 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFF4FC061760 for ; Thu, 2 Sep 2021 05:35:50 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id x5so1606721ill.3 for ; Thu, 02 Sep 2021 05:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=osIJkBvwdWWjGM2Xczs+xKtVAwutZFKbM96ppuoJRyU=; b=SeGdgT925WAlK2GMS4zGWccKacFbYhyrkmazsxC9O1vOB/ssBzdUnp8HXCyYYSxsPk W/FVlCBJ/dpx4j3bfMgS3S+Xmtqr8SpioPKN5TfV+WSj+SoPDcvAdKCOomlwfavV6Dvq y+dq0VrD5HFx9YeYh0gZhsgpfolQ0OOQTFfnr44Xtw8XNSDFb4CQlAqkMkrLWUeg7n04 nm0Ant2regqGEcoLFmpa5WELYe1uYZlQBVMQJ+DfQp5DOpWXtXaKGOx1m9xIsj0mM9tw HlHJT2WVOj/n2jUFXQGg4WVoEc+BS0PXLVr4bgjQNOxVG+3a2JMmrqjsI/xX3GxeS3yc qagw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=osIJkBvwdWWjGM2Xczs+xKtVAwutZFKbM96ppuoJRyU=; b=hFpndaq8iOVekbwPLmQ32E0g6lteEAZbHrBlI9GL4Xidm3OEgNL+hfDx5WM2KgXcLo K0U0A0lPdhE6sI8+IGlkvZekErDKnq881QExITcnWmDBh4I4kelOjDrUFS1vEbOxBL4V fvtYYzORCGAhgNCvl/hM+Dbf9jql86wNkZQbiJupLmnThuzj99ewirTFo9/R9zYYA+bl /lG0xlFqyTfPer52pyeGAIUiz+xZVEXqkq+qP5+DVXvxuzDKPmpSvgpNqkacngm9mFZi VBlFCIsTlpPvJQNhLSl3uG6pFsYg0v0YLzF/wSsAWGzkH+OrE6QngfgAylcLOd9AeRZb 0hmA== X-Gm-Message-State: AOAM533bt53H7cQy6x1GBLdv0Yx1I9K+AbfNgiVuXc0pOGLS4DHQkPfy CaMeIJIYotCPPZR+QLWd8naWqYmp0s/GJw== X-Google-Smtp-Source: ABdhPJycVzqLDgXQPl9SzoElPgyfW00LsbFQh6H9OTQHYK2VLCDcaBceG4aBh+ri2HwoqJR01g7tQQ== X-Received: by 2002:a05:6e02:1bc8:: with SMTP id x8mr2145533ilv.138.1630586149849; Thu, 02 Sep 2021 05:35:49 -0700 (PDT) Received: from [192.168.1.116] ([66.219.217.159]) by smtp.gmail.com with ESMTPSA id j5sm875526ilu.11.2021.09.02.05.35.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Sep 2021 05:35:49 -0700 (PDT) Subject: Re: [PATCH] block/mq-deadline: Move dd_queued() to fix defined but not used warning To: Geert Uytterhoeven Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210830091128.1854266-1-geert@linux-m68k.org> From: Jens Axboe Message-ID: Date: Thu, 2 Sep 2021 06:35:47 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210830091128.1854266-1-geert@linux-m68k.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/30/21 3:11 AM, Geert Uytterhoeven wrote: > If CONFIG_BLK_DEBUG_FS=n: > > block/mq-deadline.c:274:12: warning: ‘dd_queued’ defined but not used [-Wunused-function] > 274 | static u32 dd_queued(struct deadline_data *dd, enum dd_prio prio) > | ^~~~~~~~~ > > Fix this by moving dd_queued() just before the sole function that calls > it. Applied, thanks. -- Jens Axboe