* [PATCH v2 0/7] ALSA: Remove redundant open helper return checks
@ 2026-07-02 8:44 phucduc.bui
2026-07-02 8:44 ` [PATCH v2 1/7] ALSA: control: Drop redundant stream_open() return check phucduc.bui
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: phucduc.bui @ 2026-07-02 8:44 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: cassiogabrielcontato, Cezary Rojewski, Kees Cook, Ziqing Chen,
HariKrishna Sagala, Dan Carpenter, Cen Zhang, Len Bao, HanQuan,
Kyle Zeng, Dewei Meng, Maoyi Xie, Mehul Rao,
Sebastian Andrzej Siewior, Nathan Chancellor, linux-sound,
linux-kernel, bui duc phuc
From: bui duc phuc <phucduc.bui@gmail.com>
Hi all,
This series removes redundant error checks after calls to
nonseekable_open() and stream_open() in the ALSA core.
nonseekable_open() always returns 0, so checking its return value is
unnecessary.
Several users were later converted from nonseekable_open() to
stream_open(), but the original error checks were retained.
Since stream_open() also always returns 0, those checks are likewise
unnecessary.
As a result, all patches simply remove dead error handling paths with no
functional change.
Change in v2 :
- Drop the unnecessary assignment of the return value from
nonseekable_open()/stream_open(), as suggested by Takashi.
- Merge the individual patches into a single patch series.
Best regards,
Phuc
bui duc phuc (7):
ALSA: control: Drop redundant stream_open() return check
ALSA: mixer: oss: Drop redundant nonseekable_open() return check
ALSA: pcm: oss: Drop redundant nonseekable_open() return check
ALSA: pcm: Drop redundant nonseekable_open() return check
ALSA: rawmidi: Drop redundant stream_open() return check
ALSA: seq: Drop redundant stream_open() return check
ALSA: timer: Drop redundant stream_open() return check
sound/core/control.c | 4 +---
sound/core/oss/mixer_oss.c | 4 +---
sound/core/oss/pcm_oss.c | 4 +---
sound/core/pcm_native.c | 14 ++++++++------
sound/core/rawmidi.c | 4 +---
sound/core/seq/seq_clientmgr.c | 5 +----
sound/core/timer.c | 5 +----
7 files changed, 14 insertions(+), 26 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v2 1/7] ALSA: control: Drop redundant stream_open() return check
2026-07-02 8:44 [PATCH v2 0/7] ALSA: Remove redundant open helper return checks phucduc.bui
@ 2026-07-02 8:44 ` phucduc.bui
2026-07-02 8:44 ` [PATCH v2 2/7] ALSA: mixer: oss: Drop redundant nonseekable_open() " phucduc.bui
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: phucduc.bui @ 2026-07-02 8:44 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: cassiogabrielcontato, Cezary Rojewski, Kees Cook, Ziqing Chen,
HariKrishna Sagala, Dan Carpenter, Cen Zhang, Len Bao, HanQuan,
Kyle Zeng, Dewei Meng, Maoyi Xie, Mehul Rao,
Sebastian Andrzej Siewior, Nathan Chancellor, linux-sound,
linux-kernel, bui duc phuc
From: bui duc phuc <phucduc.bui@gmail.com>
The previous conversion from nonseekable_open() to stream_open() retained
the existing error check.
Since stream_open() always returns 0, remove the dead error handling path.
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
sound/core/control.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/core/control.c b/sound/core/control.c
index 7a8dc506221e..037e455bb11b 100644
--- a/sound/core/control.c
+++ b/sound/core/control.c
@@ -55,9 +55,7 @@ static int snd_ctl_open(struct inode *inode, struct file *file)
struct snd_ctl_file *ctl;
int i, err;
- err = stream_open(inode, file);
- if (err < 0)
- return err;
+ stream_open(inode, file);
card = snd_lookup_minor_data(iminor(inode), SNDRV_DEVICE_TYPE_CONTROL);
if (!card) {
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 2/7] ALSA: mixer: oss: Drop redundant nonseekable_open() return check
2026-07-02 8:44 [PATCH v2 0/7] ALSA: Remove redundant open helper return checks phucduc.bui
2026-07-02 8:44 ` [PATCH v2 1/7] ALSA: control: Drop redundant stream_open() return check phucduc.bui
@ 2026-07-02 8:44 ` phucduc.bui
2026-07-02 8:44 ` [PATCH v2 3/7] ALSA: pcm: " phucduc.bui
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: phucduc.bui @ 2026-07-02 8:44 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: cassiogabrielcontato, Cezary Rojewski, Kees Cook, Ziqing Chen,
HariKrishna Sagala, Dan Carpenter, Cen Zhang, Len Bao, HanQuan,
Kyle Zeng, Dewei Meng, Maoyi Xie, Mehul Rao,
Sebastian Andrzej Siewior, Nathan Chancellor, linux-sound,
linux-kernel, bui duc phuc
From: bui duc phuc <phucduc.bui@gmail.com>
nonseekable_open() always returns 0, so the error check is unnecessary.
Remove the dead error handling path.
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
sound/core/oss/mixer_oss.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/core/oss/mixer_oss.c b/sound/core/oss/mixer_oss.c
index 591cff800329..f5bcc7896542 100644
--- a/sound/core/oss/mixer_oss.c
+++ b/sound/core/oss/mixer_oss.c
@@ -30,9 +30,7 @@ static int snd_mixer_oss_open(struct inode *inode, struct file *file)
struct snd_mixer_oss_file *fmixer;
int err;
- err = nonseekable_open(inode, file);
- if (err < 0)
- return err;
+ nonseekable_open(inode, file);
card = snd_lookup_oss_minor_data(iminor(inode),
SNDRV_OSS_DEVICE_TYPE_MIXER);
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 3/7] ALSA: pcm: oss: Drop redundant nonseekable_open() return check
2026-07-02 8:44 [PATCH v2 0/7] ALSA: Remove redundant open helper return checks phucduc.bui
2026-07-02 8:44 ` [PATCH v2 1/7] ALSA: control: Drop redundant stream_open() return check phucduc.bui
2026-07-02 8:44 ` [PATCH v2 2/7] ALSA: mixer: oss: Drop redundant nonseekable_open() " phucduc.bui
@ 2026-07-02 8:44 ` phucduc.bui
2026-07-02 8:44 ` [PATCH v2 4/7] ALSA: pcm: " phucduc.bui
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: phucduc.bui @ 2026-07-02 8:44 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: cassiogabrielcontato, Cezary Rojewski, Kees Cook, Ziqing Chen,
HariKrishna Sagala, Dan Carpenter, Cen Zhang, Len Bao, HanQuan,
Kyle Zeng, Dewei Meng, Maoyi Xie, Mehul Rao,
Sebastian Andrzej Siewior, Nathan Chancellor, linux-sound,
linux-kernel, bui duc phuc
From: bui duc phuc <phucduc.bui@gmail.com>
nonseekable_open() always returns 0, so the error check is unnecessary.
Remove the dead error handling path.
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
sound/core/oss/pcm_oss.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c
index 9826d9a0be6d..0d7818eb3e14 100644
--- a/sound/core/oss/pcm_oss.c
+++ b/sound/core/oss/pcm_oss.c
@@ -2495,9 +2495,7 @@ static int snd_pcm_oss_open(struct inode *inode, struct file *file)
int nonblock;
wait_queue_entry_t wait;
- err = nonseekable_open(inode, file);
- if (err < 0)
- return err;
+ nonseekable_open(inode, file);
pcm = snd_lookup_oss_minor_data(iminor(inode),
SNDRV_OSS_DEVICE_TYPE_PCM);
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 4/7] ALSA: pcm: Drop redundant nonseekable_open() return check
2026-07-02 8:44 [PATCH v2 0/7] ALSA: Remove redundant open helper return checks phucduc.bui
` (2 preceding siblings ...)
2026-07-02 8:44 ` [PATCH v2 3/7] ALSA: pcm: " phucduc.bui
@ 2026-07-02 8:44 ` phucduc.bui
2026-07-02 8:44 ` [PATCH v2 5/7] ALSA: rawmidi: Drop redundant stream_open() " phucduc.bui
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: phucduc.bui @ 2026-07-02 8:44 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: cassiogabrielcontato, Cezary Rojewski, Kees Cook, Ziqing Chen,
HariKrishna Sagala, Dan Carpenter, Cen Zhang, Len Bao, HanQuan,
Kyle Zeng, Dewei Meng, Maoyi Xie, Mehul Rao,
Sebastian Andrzej Siewior, Nathan Chancellor, linux-sound,
linux-kernel, bui duc phuc
From: bui duc phuc <phucduc.bui@gmail.com>
nonseekable_open() always returns 0, so the error check is unnecessary.
Remove the dead error handling path.
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
sound/core/pcm_native.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 7dc0060617f1..7032f329e827 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -2873,9 +2873,10 @@ static int snd_pcm_open_file(struct file *file,
static int snd_pcm_playback_open(struct inode *inode, struct file *file)
{
struct snd_pcm *pcm;
- int err = nonseekable_open(inode, file);
- if (err < 0)
- return err;
+ int err;
+
+ nonseekable_open(inode, file);
+
pcm = snd_lookup_minor_data(iminor(inode),
SNDRV_DEVICE_TYPE_PCM_PLAYBACK);
err = snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_PLAYBACK);
@@ -2887,9 +2888,10 @@ static int snd_pcm_playback_open(struct inode *inode, struct file *file)
static int snd_pcm_capture_open(struct inode *inode, struct file *file)
{
struct snd_pcm *pcm;
- int err = nonseekable_open(inode, file);
- if (err < 0)
- return err;
+ int err;
+
+ nonseekable_open(inode, file);
+
pcm = snd_lookup_minor_data(iminor(inode),
SNDRV_DEVICE_TYPE_PCM_CAPTURE);
err = snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_CAPTURE);
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 5/7] ALSA: rawmidi: Drop redundant stream_open() return check
2026-07-02 8:44 [PATCH v2 0/7] ALSA: Remove redundant open helper return checks phucduc.bui
` (3 preceding siblings ...)
2026-07-02 8:44 ` [PATCH v2 4/7] ALSA: pcm: " phucduc.bui
@ 2026-07-02 8:44 ` phucduc.bui
2026-07-02 8:44 ` [PATCH v2 6/7] ALSA: seq: " phucduc.bui
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: phucduc.bui @ 2026-07-02 8:44 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: cassiogabrielcontato, Cezary Rojewski, Kees Cook, Ziqing Chen,
HariKrishna Sagala, Dan Carpenter, Cen Zhang, Len Bao, HanQuan,
Kyle Zeng, Dewei Meng, Maoyi Xie, Mehul Rao,
Sebastian Andrzej Siewior, Nathan Chancellor, linux-sound,
linux-kernel, bui duc phuc
From: bui duc phuc <phucduc.bui@gmail.com>
The previous conversion from nonseekable_open() to stream_open() retained
the existing error check.
Since stream_open() always returns 0, remove the dead error handling path.
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
sound/core/rawmidi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c
index 4dfd9d53e6d3..789254a88e53 100644
--- a/sound/core/rawmidi.c
+++ b/sound/core/rawmidi.c
@@ -441,9 +441,7 @@ static int snd_rawmidi_open(struct inode *inode, struct file *file)
if ((file->f_flags & O_APPEND) && !(file->f_flags & O_NONBLOCK))
return -EINVAL; /* invalid combination */
- err = stream_open(inode, file);
- if (err < 0)
- return err;
+ stream_open(inode, file);
if (maj == snd_major) {
rmidi = snd_lookup_minor_data(iminor(inode),
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 6/7] ALSA: seq: Drop redundant stream_open() return check
2026-07-02 8:44 [PATCH v2 0/7] ALSA: Remove redundant open helper return checks phucduc.bui
` (4 preceding siblings ...)
2026-07-02 8:44 ` [PATCH v2 5/7] ALSA: rawmidi: Drop redundant stream_open() " phucduc.bui
@ 2026-07-02 8:44 ` phucduc.bui
2026-07-02 8:44 ` [PATCH v2 7/7] ALSA: timer: " phucduc.bui
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: phucduc.bui @ 2026-07-02 8:44 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: cassiogabrielcontato, Cezary Rojewski, Kees Cook, Ziqing Chen,
HariKrishna Sagala, Dan Carpenter, Cen Zhang, Len Bao, HanQuan,
Kyle Zeng, Dewei Meng, Maoyi Xie, Mehul Rao,
Sebastian Andrzej Siewior, Nathan Chancellor, linux-sound,
linux-kernel, bui duc phuc
From: bui duc phuc <phucduc.bui@gmail.com>
The previous conversion from nonseekable_open() to stream_open() retained
the existing error check.
Since stream_open() always returns 0, remove the dead error handling path.
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
sound/core/seq/seq_clientmgr.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c
index 28782e1776fa..8fe872367568 100644
--- a/sound/core/seq/seq_clientmgr.c
+++ b/sound/core/seq/seq_clientmgr.c
@@ -296,11 +296,8 @@ static int snd_seq_open(struct inode *inode, struct file *file)
int c, mode; /* client id */
struct snd_seq_client *client;
struct snd_seq_user_client *user;
- int err;
- err = stream_open(inode, file);
- if (err < 0)
- return err;
+ stream_open(inode, file);
scoped_guard(mutex, ®ister_mutex) {
client = seq_create_client1(-1, SNDRV_SEQ_DEFAULT_EVENTS);
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v2 7/7] ALSA: timer: Drop redundant stream_open() return check
2026-07-02 8:44 [PATCH v2 0/7] ALSA: Remove redundant open helper return checks phucduc.bui
` (5 preceding siblings ...)
2026-07-02 8:44 ` [PATCH v2 6/7] ALSA: seq: " phucduc.bui
@ 2026-07-02 8:44 ` phucduc.bui
2026-07-02 9:31 ` [PATCH v2 0/7] ALSA: Remove redundant open helper return checks Cezary Rojewski
2026-07-03 11:06 ` Takashi Iwai
8 siblings, 0 replies; 10+ messages in thread
From: phucduc.bui @ 2026-07-02 8:44 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: cassiogabrielcontato, Cezary Rojewski, Kees Cook, Ziqing Chen,
HariKrishna Sagala, Dan Carpenter, Cen Zhang, Len Bao, HanQuan,
Kyle Zeng, Dewei Meng, Maoyi Xie, Mehul Rao,
Sebastian Andrzej Siewior, Nathan Chancellor, linux-sound,
linux-kernel, bui duc phuc
From: bui duc phuc <phucduc.bui@gmail.com>
The previous conversion from nonseekable_open() to stream_open() retained
the existing error check.
Since stream_open() always returns 0, remove the dead error handling path.
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
---
sound/core/timer.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/sound/core/timer.c b/sound/core/timer.c
index 51c6ac4df9f4..937d7996f7ab 100644
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -1531,11 +1531,8 @@ static int realloc_user_queue(struct snd_timer_user *tu, int size)
static int snd_timer_user_open(struct inode *inode, struct file *file)
{
struct snd_timer_user *tu;
- int err;
- err = stream_open(inode, file);
- if (err < 0)
- return err;
+ stream_open(inode, file);
tu = kzalloc_obj(*tu);
if (tu == NULL)
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v2 0/7] ALSA: Remove redundant open helper return checks
2026-07-02 8:44 [PATCH v2 0/7] ALSA: Remove redundant open helper return checks phucduc.bui
` (6 preceding siblings ...)
2026-07-02 8:44 ` [PATCH v2 7/7] ALSA: timer: " phucduc.bui
@ 2026-07-02 9:31 ` Cezary Rojewski
2026-07-03 11:06 ` Takashi Iwai
8 siblings, 0 replies; 10+ messages in thread
From: Cezary Rojewski @ 2026-07-02 9:31 UTC (permalink / raw)
To: phucduc.bui
Cc: cassiogabrielcontato, Kees Cook, Ziqing Chen, HariKrishna Sagala,
Dan Carpenter, Cen Zhang, Len Bao, HanQuan, Kyle Zeng, Dewei Meng,
Maoyi Xie, Mehul Rao, Sebastian Andrzej Siewior,
Nathan Chancellor, linux-sound, linux-kernel, Jaroslav Kysela,
Takashi Iwai
On 7/2/2026 10:44 AM, phucduc.bui@gmail.com wrote:
> From: bui duc phuc <phucduc.bui@gmail.com>
>
> Hi all,
>
> This series removes redundant error checks after calls to
> nonseekable_open() and stream_open() in the ALSA core.
>
> nonseekable_open() always returns 0, so checking its return value is
> unnecessary.
>
> Several users were later converted from nonseekable_open() to
> stream_open(), but the original error checks were retained.
> Since stream_open() also always returns 0, those checks are likewise
> unnecessary.
>
> As a result, all patches simply remove dead error handling paths with no
> functional change.
>
> Change in v2 :
> - Drop the unnecessary assignment of the return value from
> nonseekable_open()/stream_open(), as suggested by Takashi.
> - Merge the individual patches into a single patch series.
Hi Phuc,
Now I released you've sent v2 within few hours of sending v1. The
comments I've provided for v1 are already addressed in v2 so:
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Kinds regards,
Czarek
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v2 0/7] ALSA: Remove redundant open helper return checks
2026-07-02 8:44 [PATCH v2 0/7] ALSA: Remove redundant open helper return checks phucduc.bui
` (7 preceding siblings ...)
2026-07-02 9:31 ` [PATCH v2 0/7] ALSA: Remove redundant open helper return checks Cezary Rojewski
@ 2026-07-03 11:06 ` Takashi Iwai
8 siblings, 0 replies; 10+ messages in thread
From: Takashi Iwai @ 2026-07-03 11:06 UTC (permalink / raw)
To: phucduc.bui
Cc: Jaroslav Kysela, Takashi Iwai, cassiogabrielcontato,
Cezary Rojewski, Kees Cook, Ziqing Chen, HariKrishna Sagala,
Dan Carpenter, Cen Zhang, Len Bao, HanQuan, Kyle Zeng, Dewei Meng,
Maoyi Xie, Mehul Rao, Sebastian Andrzej Siewior,
Nathan Chancellor, linux-sound, linux-kernel
On Thu, 02 Jul 2026 10:44:37 +0200,
phucduc.bui@gmail.com wrote:
>
> From: bui duc phuc <phucduc.bui@gmail.com>
>
> Hi all,
>
> This series removes redundant error checks after calls to
> nonseekable_open() and stream_open() in the ALSA core.
>
> nonseekable_open() always returns 0, so checking its return value is
> unnecessary.
>
> Several users were later converted from nonseekable_open() to
> stream_open(), but the original error checks were retained.
> Since stream_open() also always returns 0, those checks are likewise
> unnecessary.
>
> As a result, all patches simply remove dead error handling paths with no
> functional change.
>
> Change in v2 :
> - Drop the unnecessary assignment of the return value from
> nonseekable_open()/stream_open(), as suggested by Takashi.
> - Merge the individual patches into a single patch series.
>
> Best regards,
> Phuc
>
> bui duc phuc (7):
> ALSA: control: Drop redundant stream_open() return check
> ALSA: mixer: oss: Drop redundant nonseekable_open() return check
> ALSA: pcm: oss: Drop redundant nonseekable_open() return check
> ALSA: pcm: Drop redundant nonseekable_open() return check
> ALSA: rawmidi: Drop redundant stream_open() return check
> ALSA: seq: Drop redundant stream_open() return check
> ALSA: timer: Drop redundant stream_open() return check
Applied all patches to for-next branch now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2026-07-03 11:06 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-02 8:44 [PATCH v2 0/7] ALSA: Remove redundant open helper return checks phucduc.bui
2026-07-02 8:44 ` [PATCH v2 1/7] ALSA: control: Drop redundant stream_open() return check phucduc.bui
2026-07-02 8:44 ` [PATCH v2 2/7] ALSA: mixer: oss: Drop redundant nonseekable_open() " phucduc.bui
2026-07-02 8:44 ` [PATCH v2 3/7] ALSA: pcm: " phucduc.bui
2026-07-02 8:44 ` [PATCH v2 4/7] ALSA: pcm: " phucduc.bui
2026-07-02 8:44 ` [PATCH v2 5/7] ALSA: rawmidi: Drop redundant stream_open() " phucduc.bui
2026-07-02 8:44 ` [PATCH v2 6/7] ALSA: seq: " phucduc.bui
2026-07-02 8:44 ` [PATCH v2 7/7] ALSA: timer: " phucduc.bui
2026-07-02 9:31 ` [PATCH v2 0/7] ALSA: Remove redundant open helper return checks Cezary Rojewski
2026-07-03 11:06 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox