Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp2668590rwe; Sun, 16 Apr 2023 02:54:55 -0700 (PDT) X-Google-Smtp-Source: AKy350bJYEV2hRsLpYfZ6NVcPRf04AHIl0UPxAqIheeVjwaPgAeGaTTjSsTE+g7kZJnahb7xmR9S X-Received: by 2002:a05:6a20:33a8:b0:eb:b8:bdc8 with SMTP id f40-20020a056a2033a800b000eb00b8bdc8mr10121411pzd.57.1681638895356; Sun, 16 Apr 2023 02:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681638895; cv=none; d=google.com; s=arc-20160816; b=B/2WhSlb5/j1j3tRUoEVG5ft6W/Yhd7LOGGFGg6LdVbdqe3rnnNxYDwtJvJHZRqg3p rxNWDnPzTThqskMiB7UjZBYtUreXAgjkQB6t5uc60PvBhF6YXu9yNd02gBA2T/toE0Bk umICy9G+eTPQnq96ea5iykgdK5SKJk3mtG+TB4NUkZ20/BgTQbGQPkVZF4d9n/m6pSkp Ir+eyuA003PV00T9z4ywyr6ZaYR0V2fIk70yey9GRzaDbHgsuzAy84RKRxWAVXeNHOPb MCASLfn1EPkLjQ405UoRTsdZ0EVr16EanJckCASAmlIo5XyCtAXz9POXSf+qKr3UrExP ppqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=NNvtlG9nhsu+omE2rLjEau+nAdVqkU6hqx9zscMbvJg=; b=KS6zFPWWl2Zh6wt6+ljd3tgMavtPoYI7EN/u3aypUS0TI9SqGbWdUljabjg6Ex+Cez vGo1VG4X68enIlMzqPFfdMbucmT9Jub9Rz3KUVtHvzPsrCY3yaXLks3qEncKilD2mCKc uOQ4xN5ZGSqt9pCZ8PaHf2xRvjC2CWb9/YXH8N6I5mjNIft/eZBRV67SuLwQf/olF7Ka +HLVgout0uinVspkkQ7lEg/1bhCZ2v3A2X5RSqiWBxh/4J9K4X1Hb37X/mYLkgbCVqMT ebPoR4bP/hH75CgLN8lzD1OM8xVP061k4x4hZbZnxQ00Y5eSKjlWe/7fKJkWj7zjtYk/ EQPw== ARC-Authentication-Results: i=1; mx.google.com; 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 y17-20020aa79e11000000b005a9cfb6ee90si7137050pfq.84.2023.04.16.02.54.41; Sun, 16 Apr 2023 02:54:55 -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; 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 S230413AbjDPJxh convert rfc822-to-8bit (ORCPT + 99 others); Sun, 16 Apr 2023 05:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbjDPJxc (ORCPT ); Sun, 16 Apr 2023 05:53:32 -0400 Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 401241BDA; Sun, 16 Apr 2023 02:53:31 -0700 (PDT) Received: by mail-yb1-f180.google.com with SMTP id y16so7901146ybb.2; Sun, 16 Apr 2023 02:53:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681638810; x=1684230810; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Vy0goH1eR4IHNE8qypyyzP1OUcgfs+Sxeg1e6E0IW/k=; b=MNTIB/514fLN8+REJ+SUiqDm3FemzuDzeeOJM2+yltuLiDNRPQ8gHdpjHYYA/K34xr w317Cxd/lj/qoJlq4d7evz37RYQCqb8qgzOHAosmnDBlEYHqdTiG7PFIKYx/hDELbQvD JBdGWbLlxnDTadColGMxS5/9HONdGtgpaLm98KPOc1jcbhUNZLP4OrK4bAv8c86ZoTlN /RU57jg3JypA/7HVXjJ/ve1rncJpVx2X/kW3AYCj/9iwS1dzCjSUwOrrA8BK8eYLWqTi ulLOfMMJv+fe5YSkMDrQHHYFLNkxwSc5QceuKzCohL34dNeJizYk6kLLKyTRVYE7xeM6 Matw== X-Gm-Message-State: AAQBX9c31tXBZvW5CfPUZETIa18RWrmJY6auvelawfGLf9dA4+QDaP87 af6+R0Ep0GPmgbQ8s0X1mr5plT414XUaLA== X-Received: by 2002:a25:7388:0:b0:b92:5277:ebc2 with SMTP id o130-20020a257388000000b00b925277ebc2mr28742ybc.29.1681638810279; Sun, 16 Apr 2023 02:53:30 -0700 (PDT) Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com. [209.85.128.170]) by smtp.gmail.com with ESMTPSA id 126-20020a250a84000000b00b8f54571fc0sm785758ybk.5.2023.04.16.02.53.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Apr 2023 02:53:29 -0700 (PDT) Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-54fe3cd445aso86100027b3.5; Sun, 16 Apr 2023 02:53:29 -0700 (PDT) X-Received: by 2002:a81:e54b:0:b0:552:d6aa:80d9 with SMTP id c11-20020a81e54b000000b00552d6aa80d9mr275295ywm.4.1681638809536; Sun, 16 Apr 2023 02:53:29 -0700 (PDT) MIME-Version: 1.0 References: <202304150025.K0hczLR4-lkp@intel.com> <20230415125705.180426-1-akinobu.mita@gmail.com> In-Reply-To: <20230415125705.180426-1-akinobu.mita@gmail.com> From: Geert Uytterhoeven Date: Sun, 16 Apr 2023 11:53:18 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -block] fault-inject: fix build error when FAULT_INJECTION_CONFIGFS=y and CONFIGFS_FS=m To: Akinobu Mita Cc: lkp@intel.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, axboe@kernel.dk, oe-kbuild-all@lists.linux.dev, shinichiro.kawasaki@wdc.com, chaitanyak@nvidia.com, akpm@linux-foundation.org, hch@infradead.org, Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Mita-san, On Sat, Apr 15, 2023 at 3:09 PM Akinobu Mita wrote: > This fixes a build error when CONFIG_FAULT_INJECTION_CONFIGFS=y and > CONFIG_CONFIGFS_FS=m. > > Since the fault-injection library cannot built as a module, avoid building > configfs as a module. > > Reported-by: kernel test robot > Link: https://lore.kernel.org/oe-kbuild-all/202304150025.K0hczLR4-lkp@intel.com/ > Signed-off-by: Akinobu Mita Thanks for your patch! > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1979,7 +1979,8 @@ config FAIL_SUNRPC > > config FAULT_INJECTION_CONFIGFS > bool "Configfs interface for fault-injection capabilities" > - depends on FAULT_INJECTION && CONFIGFS_FS > + depends on FAULT_INJECTION > + select CONFIGFS_FS My first thought was "please do not select CONFIGFS_FS", but apparently this is what most users do, so I guess it's OK. Reviewed-by: Geert Uytterhoeven The alternative would be to do: - depends on FAULT_INJECTION && CONFIGFS_FS + depends on FAULT_INJECTION && (CONFIGFS_FS=y || CONFIGFS_FS=FAULT_INJECTION) > help > This option allows configfs-based drivers to dynamically configure > fault-injection via configfs. Each parameter for driver-specific Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds