Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp25056pxh; Thu, 7 Apr 2022 12:53:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9+L1XUQw6IT/z9gzeUzbzq4aQIfrlEbJc0n4I+93QjeMVwVPR9kEjOz0+ardcmUpGKy+C X-Received: by 2002:a17:90b:38c9:b0:1c7:1ffb:533b with SMTP id nn9-20020a17090b38c900b001c71ffb533bmr17845311pjb.220.1649361195040; Thu, 07 Apr 2022 12:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649361195; cv=none; d=google.com; s=arc-20160816; b=wA82qbtnnTWw01xts4yUaMXRHdffW1HpbHVUmh1XxxQ07l17bZSy5Gt4wT4jJC/ZcZ IZep1laG9vcwsmgRcnjZ0BNqN6dJ7mB2bBEpOxicyNBlN6nX+YW/LbLHDIUGAzYvx2yy /9U4OW0WSMGccBT/fSutwTG048cUR2FJrQjZwfBSGkP/C9WaayNZ+wJ+I/CdPXj7NW6B NywJTbb6QQqgOwMs4CD13qNFmxKpTOWhU4fbXKhZQ4VTVqjNPRNLpHrnWv1s3CNc4Pvw 17Lh3RxXIBr2rkyYyW9JcYYHxjCYMpnNW2hdh+rOqLsFtnpjvzHQ6K+LU0PRzFySWhK2 9lNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=qiMMcbgbBUNCl5v74qCWUJz7Rx460O5aMRrz4d3d/Os=; b=u5KseB5COap5UVTXEOYLZKX8sP7kHZN00EzZooUnujJeUElH1fZQh6f5w3uhjlcNlm FkdALAEyhouC/VNiufnHQsDBDVcry3YpQvkF5zDzOjn3cjiilYmC84neVsulsi75qWx8 4FVMzR93lDM+Rx7TbZ14EYU1+VJDauzBc/2c6mdVx9CUJR4Qc7ITatUXBzycd8fRoHyb Ta7Xbzq75o8YCYlnkISGYs0QHedYd0amKy3qzu2p5PeNjyxkQ6zs7P4Qui8W6kf+FKOQ ZTT8QieYfyoCz/NwEI+GuPRIPo3pSjwZB1E2wJX7XXOLiMxJopno6LbNNIqp3MdtEgO4 9c9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QN+J2jes; dkim=neutral (no key) header.i=@suse.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o13-20020a635a0d000000b003816043efeesi19762508pgb.483.2022.04.07.12.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 12:53:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QN+J2jes; dkim=neutral (no key) header.i=@suse.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 25E87276FA4; Thu, 7 Apr 2022 12:24:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243009AbiDGIbX (ORCPT + 99 others); Thu, 7 Apr 2022 04:31:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242994AbiDGIbS (ORCPT ); Thu, 7 Apr 2022 04:31:18 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7353C4E13 for ; Thu, 7 Apr 2022 01:29:19 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 63AFA21117; Thu, 7 Apr 2022 08:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1649320158; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qiMMcbgbBUNCl5v74qCWUJz7Rx460O5aMRrz4d3d/Os=; b=QN+J2jesQwcpmA8WQ30ocJSLuwPomgNuIKm7afkyfyJuaSaCNgxfxbKJgFExCtjXOeIumK YFi7qP3HbWyzR7PF1RevbDhqW5fMXAVF5P10+zR1T9K+qbgWbpkHenLT9Dc6tNXmKv7KBK P0o1iOpTV/EXB5G1yPtzj5hYOOqWtEs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1649320158; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qiMMcbgbBUNCl5v74qCWUJz7Rx460O5aMRrz4d3d/Os=; b=yVktQ/JvhOMsUPyWxOKGdCvChgSlaAKm0Me/cywl+hfAKNMzomcG+gc2LetawRRUAqJujD uAzc6VVKBRp9eRDQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id ED8A0A3B96; Thu, 7 Apr 2022 08:29:13 +0000 (UTC) Date: Thu, 07 Apr 2022 10:29:18 +0200 Message-ID: From: Takashi Iwai To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Geert Uytterhoeven , kernel test robot , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org Subject: Re: [PATCH v3] sound/oss/dmasound: fix build when drivers are mixed =y/=m In-Reply-To: <20220405234118.24830-1-rdunlap@infradead.org> References: <20220405234118.24830-1-rdunlap@infradead.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On Wed, 06 Apr 2022 01:41:18 +0200, Randy Dunlap wrote: > > When CONFIG_DMASOUND_ATARI=m and CONFIG_DMASOUND_Q40=y (or vice versa), > dmasound_core.o can be built without dmasound_deinit() being defined, > causing a build error: > > ERROR: modpost: "dmasound_deinit" [sound/oss/dmasound/dmasound_atari.ko] undefined! > > Modify dmasound_core.c and dmasound.h so that dmasound_deinit() is > always available. > > The mixed modes (=y/=m) also mean that several variables and structs > have to be declared in all cases. > > Suggested-by: Arnd Bergmann > Suggested-by: Geert Uytterhoeven > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Link: lore.kernel.org/r/202204032138.EFT9qGEd-lkp@intel.com > Cc: Geert Uytterhoeven > Cc: Jaroslav Kysela > Cc: Takashi Iwai > Cc: alsa-devel@alsa-project.org Thanks, applied now. Takashi